sasa211
Status: New User - Welcome
Joined: 10 Feb 2008
Posts: 1
Back to top
Posted: Feb 10, 08, 18:50    1 button to call 2 functions
Hi,

Can anyone help me? I'm new in Java programming. I'm using Dreamweaver. I have this form where this one button is suppose to call 2 functions.

1 function to insert data :
eg. document.search.action.value = "insertsuccess";

2nd function to view iReport :
eg. document.pdf;

Is this possible to do? How do I define the form action because to view a report I have to define as below :
<form action="<%=request.getContextPath()%>/servlets/pdf" method="post" name="pdf" target="_blank" >

and a normal form would be to define as below:
<form action="<%=request.getContextPath()%>/servlets/pdf" method="post" name="pdf" target="_blank" >


Need help urgently!!
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 2538
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Feb 10, 08, 19:31    
Please read the HTML forum rules. No dreamweaver support, sorry.

The rules recommend other forums to try for wysiwyg support.
Display posts from previous:   

All times are GMT - 8 Hours