Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    May 6th, 2008
    Posts
    29
    Javascript Question
    I'm trying to build a new webpage and there is three separate javascript functions I want to use. One for the menu, another for enlarging photos and a third for a contact form. I can get them all to work on their own but as soon as I try to run all three on a single page, I lose the enlarging photos script. Is there a limit to how many scripts you can run? I can post the source code if needed. Thanks for help in advance

  2. #2
    Full Member
    Join Date
    October 22nd, 2006
    Posts
    200
    You can (within reason) have as many scripts as you like running on a webpage.

    You will find that using scripts from different authors may introduce problems of creatiing duplicate variable names or function names in the scripts thus causing one of the scripts to fail.

    I have found that using a library like jquery you don't get that conflict. The jquery website lists many of the functions available.


    Regards

    Bob

  3. #3
    Newbie
    Join Date
    May 6th, 2008
    Posts
    29
    They are all jquery, but i'll double check the naming of the functions. Thanks Bob

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Javascript Code Question
    By Cheesehead in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: September 25th, 2007, 06:05 PM
  2. Another Javascript Question
    By apex-auctions in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: April 23rd, 2006, 11:56 PM
  3. JavaScript Help
    By FunPortal in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: August 9th, 2003, 02:14 PM
  4. Javascript question
    By tmd5 in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: March 30th, 2002, 08:38 PM

Posting Permissions

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