• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

JS Error ACCESS IS DENIED when submitting the form in jsp file through javascript

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i have written a jsp page which has a form element in it.
i'm submitting the form through javascript function by calling form.submit();method in js file.
on submitting the form i am getting ACCESS IS DENIED error in js file.

The error is coming for IE6,IE-7.
the same code is working fine for Firefox, Chrome and Ie-8.
can somebody please help me out with this error.
 
Ranch Hand
Posts: 46
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I ask you why you want to do it like this (IE?? )? If I were you, I would provide more info.

If you want to do some javascript processing before submitting the form, I would suggest using a submit button and then calling the javscript function using the attribute onsubmit for the form.

But again. It depends on what you want.

-edit- And of course, Welcome to JavaRanch

Max
 
kamlendra kami
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have created customized buttons in my project.on click of the button we want some validation,error message clearing and then submit the form.
all this is done by a javascript function which is in a .js file included in jsp page.
after doing all the validation and message clearing we call form.submit();
at the point of submission we get ACCESS DENIED error.
form gets submit for firefox,IE-7 and chrome.The issue is only with IE7 IE6
please help
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly where does the "ACCESS IS DENIED" message appear?

Bill
 
kamlendra kami
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i am clicking the button, the form is not getting submitted and my action class's execute method is not getting called.
at the line where i have written form.submit(); i am getting ACCESS DENIED error message.

On IE this message comes on JS Error console whose icon gets appear on bottom-left corner of browser in case of any JS error.
 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic