1 button to call 2 functions
sasa211
Status: New User - Welcome
Joined: 10 Feb 2008
Posts: 1
Reply Quote
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!!
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4124
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Please read the HTML forum rules. No dreamweaver support, sorry.

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

All times are GMT - 8 Hours