• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error in javascript when doing form.action

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic