Click to See Complete Forum and Search --> : SUBMIT failure question
PittsburghRed
01-15-2004, 05:03 PM
I have written a series of working scripts to process data received from a lenghtly form survey. When I added a new window (via JavaScript) to include some explanatory info on the page, the script which was formerly processing the data from the html page, no longer seems to be invoked when the SUBMIT button is pressed. The page just sits there. Is this "new window" the cause? Why? What to do? When I removed the code that produced the new window, script is called and everthing works again. Thanks for any help.
Jeff Mott
01-15-2004, 05:18 PM
Can't tell anything without seeing the page.
PittsburghRed
01-15-2004, 05:33 PM
Is the reply from Jeff Mott: Can't tell without seeing the page ....my reply?
Here is the situation. Everyting was (is) working fine. HTML page has form and sumbit button. Perl program reads data and all is well. THEN I added JavaScript ... five lines... that produces a new window with info on it. Has nothing to do with the form or the perl script. But the submit button no longer seems to work.??? Has anyone heard of such a thing? Is the new window somehow "active" preventing the orig button on the page from working?
Jeff Mott
01-15-2004, 08:22 PM
From your description, we know only what you already know: that your JavaScript code is in some way hindering the form's submission. Debugging code is extremely difficult (if not impossible) when you don't even have the code available to be debugged. Thus...Originally posted by Jeff Mott
Can't tell anything without seeing the page.
PittsburghRed
01-16-2004, 05:02 PM
I have decided to forget the new window, and provide the necessary info with a simple A HREF button to another page target =_blank. That worked fine.Thank you for giving me your time ... I am amazed at the quick and valuable responses on this forum.