Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    58
    Thanks
    18
    Thanked 1 Time in 1 Post

    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!

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • Users who have thanked rangana for this post:

    TheTot (01-29-2009)

  • #3
    New Coder
    Join Date
    Dec 2008
    Posts
    58
    Thanks
    18
    Thanked 1 Time in 1 Post
    Brilliant! Oh man thanks so much, works fine now! I'll have to keep that in mind for future reference, thanks a bunch!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •