SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .js file is not responding

    While i include 2 .js file one is not working..
    Anybody is there to help me out this...

    <html xmlns:mml="http://www.w3.org/1998/Math/MathML">
    <head>
    <script type="text/javascript" src="ASCII.js"></script>(if i inlcude this below script is not working)

    ....
    ....
    <script language="javascript" src="./painter/htmlgui/controls1.js"></script>
    </head>

  2. #2
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    You need to chance the second to <script type="text/javascript" src="./painter/htmlgui/controls.js"></script>.

    There might be some collissions in the two scripts, such as them using the same variable names.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  3. #3
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's not working

  4. #4
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    And you checked both scripts against collisions?
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  5. #5
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to check it?

  6. #6
    SitePoint Enthusiast
    Join Date
    Jul 2011
    Location
    South Africa
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to check it?
    notepad comes to mind

  7. #7
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    If you don't know how to check your scripts for variable name collisions, then you should seriously reconsider using Javascript before you've learned more about the language.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  8. #8
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,804
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    There's a simple way to check for collisions.

    Temporarily remove one script and see if the other works. If it does then put the second script back and temporarily remove the first. If that also works then there is a collision between the two scripts that needs to be fixed in order to use them both on the same page.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  9. #9
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I checked like that only..
    If i include both script it's not working .
    Quote Originally Posted by felgall View Post
    There's a simple way to check for collisions.

    Temporarily remove one script and see if the other works. If it does then put the second script back and temporarily remove the first. If that also works then there is a collision between the two scripts that needs to be fixed in order to use them both on the same page.

  10. #10
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem solved ..
    there was an error in one script.
    Just now i solved it.
    thank you friend for your response...


Tags for this Thread

Bookmarks

Posting Permissions

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