/    Sign up×
Community /Pin to ProfileBookmark

Jquery/raw Javascript compatibility issue

I am a php developer and relatively new to javascript. But I am doing both front and backend for a project and having an issue with a jquery slider which, when inserted, is breaking 2 other js scripts in the page, including my main menu.

Can anyone point me to a resource that outlines best practices for working with more than one js library and/or raw js … ???

I’m doing some tests on the order of the scripts right now, but wanted to put a feeler out there to see if someone has dealt with this before.

Thx

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@DanInMAApr 06.2011 — common problem when dealing with more than one framework, see this documentation - http://api.jquery.com/jQuery.noConflict/ . This should point you in thee right direction perhaps
Copy linkTweet thisAlerts:
@shotdsherrifauthorApr 06.2011 — I figured it out. It was a CSS issue with the style attached to the script, never to do with the script itself. As is often the case, the solution was to not overthink it.
×

Success!

Help @shotdsherrif spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...