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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT !! Search Script Help

Status
Not open for further replies.
Dec 6, 1999
24
CA
Hi all --

I have a problem with my JS search script. It works fine in MSIE (both 4+ and 5+), but not in Netscape (fails in 4.7 as well as NS6). It is supposed to substitute the same search query value into multiple <FORM>s and submit them depending on the status of the searchboxes assigned to each <FORM> -- if the checkbox is checked, its respective form should be submitted, whereas if it's unchecked, the form should not be submitted.

Please see the code in question for yourself at . There's also a slightly changed version at (this one doesn't work either).

Thanks in advance for any help your provide.

Sincerely,
Andriy Mishchenko
Webmaster,
 
So the value is taken from the text box and sent to each diferent form right? I can't see right off where the problem is, have you debugged it with NS? If you could find out exactly what it trips up on, then give the error message too - I know NS4.x is pretty crap at this!

It must be something to do with the multiple form submissions, does it even submit any of them? What happens exactly?
b[sup]2[/sup] - benbiddington@surf4nix.com
 
It seems like it is working - no errors or anything - but it's like it needs a time delay or something? I don't know, it's a mystery.
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Hey, guys --

Thanks for your help. I have one question, though. How would I go about debugging something in NS 4.7 ?? I've never heard of this before.

Sincerely,
Andriy.
 
read the status bar !! when it's written &quot;type javascript: &quot; then type &quot;javascript:&quot; in the url bar !!
you'll get the javascript console telling you exactly WHERE and what the errors are
 
Hey all --

Thanks for all your help. Debugging in NS4.7 didn't produce any results. Someone on another forum suggested modifying my script to split it into several different functions and to introduce timeouts. This doesn't seem to work >> see it at .

Pls. feel free to throw any other ideas / suggestions out. Thanks in advance.

Sincerely,
Andriy (&quot;mishchenko&quot;)
 
THIS IS REVISION 9 OF THIS SCRIPT:

It works great in IE and also works in NS4.7.
The only problem with it is that the timeouts are too long as they are now. If they are decreased, the script starts acting erratically (not opening all of the new search windows or even none at all).

ANY IDEAS ?? ANYONE ??

More details posted @ Original problem posted @
Sincerely,
Andriy Mishchenko
Webmaster,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top