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 to the CF scene
    Join Date
    Jun 2010
    Location
    Oakland, CA USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple Javascripts on HTML page.

    Hello All,

    I seem to be stuck on a page for my site:

    The idea was to have a page with a google map and a java-powered custom twitter feed on the page. However, when I got the map embedded, it seems to interfere with the spry navigation menu, and the twitter feed is not working either. I've tried combining commands and tying each script to an event, but I just don't understand enough to get them all to work. I'm a comic artist by trade, so I'm a little new to coding. Any help would be greatly appreciated!

    you can find the page here./

    Thanks in advance for any help!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    I get a JS error “Invalid XML attribute value” and it’s showing me this line: <script src=”http://twitter.com/javascripts/blogger.js”
    At first sight it looks like you’re using “curly” quotes for the attribute value instead of straight quotes (which would be the correct character) that could mess up a few things. And then when I look at the code in that area I see this:

    Code:
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    <script src=”http://twitter.com/javascripts/blogger.js”
    type=”text/javascript”></script>
    <script
    src=”http://twitter.com/statuses/user_timeline/NPCComics.json?
    callback=twitterCallback2&count=5″
    type=”text/javascript”></script>
    
    </body>
    It looks like you forgot to close the first script element (the Spry script). Maybe fixing these errors will get rid of the issue?

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Location
    Oakland, CA USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Hi VIPStephan!

    Thank you so much for you help; I closed the script tag, and that enabled my dropdown to work again! I'm still having a little trouble with the twitter feed, but i think it has to do with my css, not the java. hopefully, I'll figure it out it a but. thanks again!


  •  

    Posting Permissions

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