•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 429,747 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,081 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 946 | Replies: 7
![]() |
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I want to write the below javascript code into my JSP page directly...Can you please help?
JSP code...
JavaScript code...
I want to write the function submit_form_with_parameters directly into JSP page.
Please help.
I want to write the below javascript code into my JSP page directly...Can you please help?
JSP code...
JSP Syntax (Toggle Plain Text)
<span class="mini"> <html:link href="#" styleClass="bouton" onclick="return submit_form_with_parameters('delegationForm', 'delegation', 'noInit=Y');"> <bean:message key="rh2u.deleg.label.etape0.label.chercher" /> </html:link> </span>
JavaScript code...
function submit_form_with_parameters(strFormName, strAction, parameters){
objForm = eval("document." + strFormName);
objForm.action = strAction + ".do?" + parameters;
objForm.submit();I want to write the function submit_form_with_parameters directly into JSP page.
Please help.
Last edited by peter_budo : Jun 19th, 2008 at 4:39 pm. Reason: Keep It Organized - please use [code]tags
•
•
Join Date: Aug 2006
Location: Noida, India
Posts: 158
Reputation:
Rep Power: 3
Solved Threads: 17
put this in in your JSP page:
OR
<%=
"function submit_form_with_parameters(strFormName, strAction, parameters){
objForm = eval(\"document.\" + strFormName);
objForm.action = strAction + \".do?\" + parameters;
objForm.submit();
"
%>
<%
String jsCode = "function submit_form_with_parameters(strFormName, strAction, parameters){
objForm = eval(\"document.\" + strFormName);
objForm.action = strAction + \".do?\" + parameters;
objForm.submit();
";
%>
<%=jsCode%>
Last edited by Luckychap : Jun 19th, 2008 at 8:27 am.
When you think you have done a lot, then be ready for YOUR downfall.
•
•
Join Date: Jun 2008
Posts: 16
Reputation:
Rep Power: 0
Solved Threads: 3
what would prevent you from just using html, as in
???
html Syntax (Toggle Plain Text)
<script type="text/javascript"> ...js code... </script>
???
•
•
Join Date: Aug 2006
Location: Noida, India
Posts: 158
Reputation:
Rep Power: 3
Solved Threads: 17
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks guys...I did as icorey said.....now the problem is .....when i click on the submit button...I can not see the internet explorer progress bar...but when I execute the same in Mozilla firefox, I can see the progress bar. and process is getting completed in both the cases.
My users are using internet explorer and can not see the progress.....
Is there any change required to be done?
thanks for your help.
My users are using internet explorer and can not see the progress.....
Is there any change required to be done?
thanks for your help.
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks guys...I did as icorey said.....now the problem is .....when i click on the submit button...I can not see the internet explorer progress bar...but when I execute the same in Mozilla firefox, I can see the progress bar. and process is getting completed in both the cases.
My users are using internet explorer and can not see the progress.....
Is there any change required to be done?
thanks for your help.
My users are using internet explorer and can not see the progress.....
Is there any change required to be done?
thanks for your help.
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 18
Solved Threads: 199
no. that's defined by the browser. Most likely IE is just faster than is FF (wouldn't surprise me, it is faster in my experience) so it's getting a response and processing it before it gets a chance to display the bar.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access activation api blogger blogging blogs code code injection combo dani daniweb data debugging development dreamweaver dropdownlist epilepsy firefox gdata google gpl griefers hackers html innovation javascript key linux microsoft module net news openbsd product programming reuse rss serial source tags vista web wysiwyg xml
- file handling in html and jsp (HTML and CSS)
- Javascript help (JavaScript / DHTML / AJAX)
Other Threads in the JSP Forum
- Previous Thread: Problem: right mouse click Un-Highlights my selected text. Why?
- Next Thread: how to send email from jsp page



Linear Mode