Help with JavaScript PLEEEEEEEEEEEEEEEEEEEEEEEEEASE!!!! I'M DESPERATE! My wife is screaming at me!!!!

jonnyGURU

Moderator <BR> Power Supplies
Moderator
Oct 30, 1999
11,815
104
106
I told my wife I could EASILY make this script that would take in data on one page, output it on another and allow the user to print it out.

I made a page, tested it in Netscape and said, cool. Done.

She then reported back to me that every teacher that had AOL or IE couldn't use the form!

WHAT?!?!?

The page is at http://webhelp.org/cec194 and I deperately need to figure out why it doesn't work in IE.

I've tried adding and subtracting quotes and rearranging it. I can't figure it out.

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

jonnyGURU

Moderator <BR> Power Supplies
Moderator
Oct 30, 1999
11,815
104
106
I know that IE uses jscript. But it's &quot;supposed&quot; to work with javascript scripts. It still doesn't explain my problem.

Also, it doesn't work in Netscape 6, so it's not a Javascript vs. Jscript thing.

 

Ornery

Lifer
Oct 9, 1999
20,022
17
81
It works for me using Netscape, but not IE5 online. When I copy the cec194 html file and output1.html locally both Netscape and IE5 work. Maybe that will give you a head start, but I know zilch about Java.

Edit: Just tried it again and instead of a 404 Error, it comes up with a page missing all the data that asks to proceed to the next page. Netscape still works fine...
 

jonnyGURU

Moderator <BR> Power Supplies
Moderator
Oct 30, 1999
11,815
104
106
Yeah.

It's weird.

I've removed all quotes. Added all quotes. Same thing.

I've made the destination file name absolute and relative. Same thing.

I've changed from form type=&quot;get&quot; to form method=&quot;get&quot;. Same thing.

I'm now clenching fist fulls of hair.

Thanks for checking Ornery. :(
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
In your function print_word(), IE is bombing on the extra closing brace (for the function). The reason it's not bombing during the initial compilation, is that the run-time inspection of the JScript engine only caught it when it was called... which is line 91.

So, try that... if it doesn't work, repost, and we'll look further.

 

jonnyGURU

Moderator <BR> Power Supplies
Moderator
Oct 30, 1999
11,815
104
106
Frost wins the booby prize!!!!

It was a typo. A simple extra &quot;}&quot;.

What's really stupid is that IE allows typos like open ended tags and stupid stuff like that, but WON'T allow an extra &quot;}&quot; in a SCRIPT. :| :| :|

UnFREAKINGbelievable!

Thanks Frost.
 

jonnyGURU

Moderator <BR> Power Supplies
Moderator
Oct 30, 1999
11,815
104
106
Forums aren't doing to well tonight.

I'm on like, what? forums18.anandtech.com???? :p