Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-29-2009, 04:28 AM   PM User | #1
TheTot
New Coder

 
Join Date: Dec 2008
Posts: 58
Thanks: 18
Thanked 1 Time in 1 Post
TheTot is an unknown quantity at this point
Works in IE, Not in FireFox

*Sigh*

I yet again turn to you, experts. In order to help me with this, you will probably need both Internet Explorer and FireFox on your computer.

The page in question: http://lawlocaust.freezoka.com/rpg/
( Note: All the javascript is externally linked in four seperate .js files, simple for my own organization purposes, so you will have to download them to help me )

If you're running that page in Internet Explorer, everything works fine. No problems. Great.

However, if you're running it in Firefox, it gets stuck at one point. When you load up the page, just click "Submit info". Then press "CONTINUE" about three times, you don't have to actually read the stuff in the box. Eventually, pushing "CONTINUE" will no longer work. It won't do anything. What I think is even stranger, it doesn't even say there has been an error on the page. It simply doesn't do anything.

Like I said, works fine in IE, but gets stuck there in Firefox everytime.

I have been over the script so many times. I couldn't find any spelling errors, syntax errors, or anything of the like. PLEASE if you know why it's doing this, let me know!
TheTot is offline   Reply With Quote
Old 01-29-2009, 05:45 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Go to your rpgbattle.js file, and remove highlighted:
Code:
function turncheck() {
	if ( hpmob <= 0 ) {
		postfight();
	};
	else if ( hpchar <= 0 ) {
		gameover();
	};
	else {
		showturn();
	};
};
Those are unnecessary and thus creates premature break on FF.

Hope that helps.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Users who have thanked rangana for this post:
TheTot (01-29-2009)
Old 01-29-2009, 07:18 AM   PM User | #3
TheTot
New Coder

 
Join Date: Dec 2008
Posts: 58
Thanks: 18
Thanked 1 Time in 1 Post
TheTot is an unknown quantity at this point
Brilliant! Oh man thanks so much, works fine now! I'll have to keep that in mind for future reference, thanks a bunch!
TheTot is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:01 AM.


Advertisement
Log in to turn off these ads.