• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

jonnyGURU

Moderator <BR> Power Supplies
Moderator
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
IE using a different langauge than javascript. It uses jscript. Somethings are different.
 
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.

 
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...
 
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. 🙁
 
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.

 
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.
 
Forums aren't doing to well tonight.

I'm on like, what? forums18.anandtech.com???? 😛
 
Back
Top