Results 1 to 4 of 4

Thread: Conflicting Java Scripts [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562

    Conflicting Java Scripts [RESOLVED]

    Hi, I downloaded two scripts from dynamicdrive.com to use in a website. I hence needed to include three .js javascript files in my HTML one. They are...

    <SCRIPT language=JavaScript src="gm.js" type=text/javascript></SCRIPT>
    ...for a game script

    <SCRIPT language=JavaScript src="inc/browser.js" type=text/javascript></SCRIPT>
    <SCRIPT language=JavaScript src="cfg.js" type=text/javascript></SCRIPT>
    ...for a horizontal menu


    However, when both are included at the same time, the game does not work and gives errors. In some placements the menu doesn't appear.



    So I figured this would be due to duplicate functions, possibly the init(). Hence I renamed the init() of the menu script and am on the look out for other duplicates. However I cannot find anymore and the problem persists. What can be the problem.

    Any help is appreciated.
    Last edited by 007shahid; May 1st, 2005 at 01:54 AM.
    THE TIME/WEATHER IS
    Don't know how to use APIs or have problem with them,
    Download API-Guide & API-Viewer from http://www.allapi.net

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Conflicting Java Scripts

    Comment them out and add them one by one, how about that?

  3. #3

    Thread Starter
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562

    Re: Conflicting Java Scripts

    I guess I forgot this thread. I got the solution. In one of the scripts, the init() was called within the .js file. I moved the statement to the body tag
    THE TIME/WEATHER IS
    Don't know how to use APIs or have problem with them,
    Download API-Guide & API-Viewer from http://www.allapi.net

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Conflicting Java Scripts

    Ah, well... that was my next suggestion.

    Add [Resolved] to the thread title.

Posting Permissions

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



Click Here to Expand Forum to Full Width