Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Calling a jQuery plugin

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37415
    dschneid
    Member

    Hello,

    I have a website acoupletravelers.com that I have been working on and would like to include an interactive map, specifically this one: http://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=262179&av=390986#jQuerySVGPlugin

    I have a basic understanding of jQuery but given that this is many files/code I want to put it in a library and call it from there upon loading the page. So I have stored it here: public_html/wp-content/themes/journey/World Map

    (journey is my theme)

    This is a folder that has all of the files (in two more sub folders) from the article.

    I do not understand how to then call these in my wordpress .php files. I also do not understand where the css/html is so that I can additionally style the map…

    help?

    Thanks!

    #100265
    dschneid
    Member

    also, will the fact that this seems to include a library (jquery-1.6.2) conflict with my already present jquery library from wordpress/the theme?

    #100268
    TheDoc
    Member

    You are trying to load three different versions of jQuery, that’s certainly going to cause some problems! Try narrowing that down, first.

    #100270
    dschneid
    Member

    sound advice – can you please call out where these three are?

    #100271
    TheDoc
    Member

    Line 17

    Line 902 (though it’s getting a 404 error)

    Can’t see the third one anymore, must’ve been a glitch in my brain!

    You were getting a few other 404 errors before, but looks like you’ve cleaned those up.

    Also, I can’t see your nav until I hover over the items: http://cl.ly/0x3g2W461S05151F1a22

    I would recommend simply updating the jQuery that you have running to the latest version. But make sure to have everything backed up in case it breaks some super old scripts that you might have running (thinking of old WordPress plugins here).

    #100324
    dschneid
    Member

    Thanks again!

    As for the NAV, it looks like the background displays much darker on your computer…how do you account for things like that? What browser are you using?

    I removed the 3rd one and then I added jquery 1.2.6.min to the appropriate folder. I believe that it gets called as part of wp_footer() which I don’t want to touch. Also the line 17 googleapis.com one I believe that gets called possible by wp_header(). I don’t really know, just that it isn’t hard coded anywhere in header.php or footer.php.

    I guess that leaves me with two. At least no more 404 errors, I think?

    How am I doing with these two libraries?

    Also any thoughts on the pluggin issue (see OP)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.