So I tried noConflict but it didn't work.
<script src="http://code.jquery.com/jquery-1.8.2.min.js"
type="text/javascript"></script>
<script type="text/javascript">
var jq183 = $.noConflict(true);
</script>
<script src="/assets/jquery.inlineedit.js"
type="text/javascript"></script>
Then inside* jquery.inlineedit.js*:
(function($) {
// define inlineEdit method
$.fn.inlineEdit = function(options) {
...
}
})(jq183);
Not sure why it doesn't work! Can't do inline edit where it used to work!
On Tuesday, March 18, 2014 10:39:07 PM UTC+8, Brandon wrote:
>
> I see.. what about jQuery UI and jQuery Ujs which depends on those
> specific jQuery Core? How would I adapt those versions with noConflict?
>
> On Tuesday, March 18, 2014 9:43:55 PM UTC+8, Abdulsattar Mohammed wrote:
>>
>> You might want to use $.noConflict() as shown in this stackoverflow
>> answer:
>> http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same-page
>>
>>
>> On Tue, Mar 18, 2014 at 6:44 PM, Walter Lee Davis <[email protected]>wrote:
>>
>>> Like this: http://youmightnotneedjquery.com/
>>>
>>> Walter
>>>
>>> On Mar 18, 2014, at 4:45 AM, Brandon wrote:
>>>
>>> > How do you manage different scripts that need different versions of
>>> jQuery to work properly?
>>> >
>>> > I used to be able to use No Conflict even though it was kinda messy
>>> too. But at least I could get all the scripts working without one breaking
>>> the other due to different jQuery Core dependencies.
>>> >
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> > To post to this group, send email to [email protected].
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/f5b222a7-afef-40dc-9df9-f85622e3d55b%40googlegroups.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/8901EE3B-7663-48AA-AB61-3FE019BC8658%40wdstudio.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Regards,
>> Abdulsattar Mohammed
>> http://codingtales.com
>>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/2bebd016-dfb4-47e6-92be-e0e8f13c4a6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.