This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes error in javascript when doing form.action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "error in javascript when doing form.action" Watch "error in javascript when doing form.action" New topic
Author

error in javascript when doing form.action

Sophia Choi
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
I use resin as my web server.When I do update and delete function in javascript, I get error.
---------
function DEL(){
alert("Ready to delete.");
document.prdfrm3.action="proddelresp.jsp";-error
document.prdfrm3.submit();
return true;
}
function checkUpd(){
if (prdfrm3.title.value==""){
alert("Please input title !");
document.prdfrm3.title.focus();
return false;
}
if(prdfrm3.mediatype.checked == false){
alert("Please input media type!");
document.prdfrm3.mediatype.focus();
return false;
}
alert("Ready to Update.");
document.prdfrm3.action="produpdresp.jsp"; error
document.prdfrm3.submit();
return true;
}

---
I deploy this program in XP professional. The error states that the object does not support this.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

im not a js expert, but maybe using a variable would help. name it response say. then in html set action=response. then in js change value of response to proper jsp page. hope that helps.


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in javascript when doing form.action
 
Similar Threads
help me with this javascript code
error in javascript when doing form.action
How to cancel submit action?
Check if an email-adress is valid with javascript
call Action from javascript