• 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

submit disables in form causes problem in iFrame

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help asap!
I have a form whose target is iframe which shows all the messages coming from the servlet. all was working fine till I disabled the submit botton with "form.submit.disabled=true" .. i guess it is overwriting the submit functionality and thus no messages in iframe are coming up. please suggest what to do ..
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello darkestsky,

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.

Now to your problem...

Are you disabling the button as

document.FormName.ButtonName.disabled = true;

I am assuming you are doing this to stop a form from being submitted more then once?

Eric
 
Priya Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes i am disabling the button as form.subName.disabled=true. i tried it from onCLick becasue onSubmit was not working . My form target is an iFrame, I also tried with _blank but the output messages from my action=servlet are somehow not getting displayed if i add the disable functionality.
pls suggest !
 
reply
    Bookmark Topic Watch Topic
  • New Topic