Home › Forums › JavaScript › Calling a jQuery plugin
- This topic is empty.
-
AuthorPosts
-
March 30, 2012 at 12:42 am #37415
dschneid
MemberHello,
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!
March 30, 2012 at 12:44 am #100265dschneid
Memberalso, 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?
March 30, 2012 at 1:13 am #100268TheDoc
MemberYou are trying to load three different versions of jQuery, that’s certainly going to cause some problems! Try narrowing that down, first.
March 30, 2012 at 1:32 am #100270dschneid
Membersound advice – can you please call out where these three are?
March 30, 2012 at 2:16 am #100271TheDoc
MemberLine 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).
March 30, 2012 at 2:32 pm #100324dschneid
MemberThanks 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)
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.