Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript to cgi quit working correctly

Status
Not open for further replies.

suprtiger

Instructor
Oct 23, 2001
5
US
I have a javascript that picks up data on a form on a web page and passes it to a cgi script. The script has stopped working correctly and doesn't send the data to the e-mail address as it should.
Is there any way that I can watch the javascript as it works with the cgi script?
I cannot determine why it has stopped working. I have one of the combinations working for a couple of years and the other was working for a year. Both stopped working a couple of weeks back. I cannot determine if the error is with the cgi or the mail server.
 
Have you tried debugging your JS - either with something like Firebug, or even the old-fashioned way with 'alert' statements?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
I cannot determine if the error is with the cgi or the mail server.
The problem is most likely with either... but it is not going to be the javascript part (which runs on the client browser).

Given everything stopped a couple weeks back, I would look at what changed in your environment at that point (power failure leading to server reboots, hard disk replaced, upgraded OS on the server, service pack patch, etc).

Maybe it's time you started putting some unit tests together for your code. It's the best way to identify problems early on, and to ensure code changes don't break existing functionality.

Cheers,
Jeff

[tt]Visit my blog [!]@[/!] Visit Code Couch [!]@[/!] [/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top