Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
jQuery Extensions Causing Premature DOMReady event with J25 Plugin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
SonarEclipse  
View profile  
 More options Jul 15 2012, 4:39 am
From: SonarEclipse <seango...@gmail.com>
Date: Sun, 15 Jul 2012 01:39:26 -0700 (PDT)
Local: Sun, Jul 15 2012 4:39 am
Subject: jQuery Extensions Causing Premature DOMReady event with J25 Plugin

Hello,

I am building a plugin which loads in several 3rd-party libraries including
jQuery 1.7 (and then executing some scripts with those 3rd-party
libraries), and I am encountering an issue where any extensions which
already use jQuery will cause the DOMReady event to fire prematurely, thus
causing numerous errors.

Is there a way to avoid this, such that the documentready event can be
fired as per normally?

Thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SonarEclipse  
View profile  
 More options Jul 15 2012, 4:58 am
From: SonarEclipse <seango...@gmail.com>
Date: Sun, 15 Jul 2012 01:58:22 -0700 (PDT)
Local: Sun, Jul 15 2012 4:58 am
Subject: Re: jQuery Extensions Causing Premature DOMReady event with J25 Plugin

Just to be a little more specific (as it appears I still may not have
correctly diagnosed the problem), the 3rd-party libraries' methods are
returning 'undefined' when called.

For example, I have loaded in the chosen.js libarary.  When calling via
console, this:

$("select").not("#editor_selection, #lang").chosen()

yields:

TypeError: Object [object Object] has no method 'chosen'

   1. arguments: Array[2]
   2. get message: function () { [native code] }
   3. get stack: function () { [native code] }
   4. set message: function () { [native code] }
   5. set stack: function () { [native code] }
   6. type: "undefined_method"
   7. __proto__: Error

Once again, this problem only occurs when in the view of a component which
uses jQuery.

Thanks for any help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amit Nigam  
View profile  
 More options Jul 16 2012, 1:28 am
From: Amit Nigam <eluminous_ss...@eluminoustechnologies.com>
Date: Sun, 15 Jul 2012 22:28:36 -0700 (PDT)
Local: Mon, Jul 16 2012 1:28 am
Subject: Re: jQuery Extensions Causing Premature DOMReady event with J25 Plugin

Hi There, why dont you try this and let me know
instead of using '$' directly use this like following

var $_ = jQuery;

$_("select").not("#editor_selection, #lang").chosen()

Thanks and Regards,
Amit.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
subtextproductions  
View profile  
 More options Jul 19 2012, 10:59 am
From: subtextproductions <alonzo.tur...@subtextproductions.com>
Date: Thu, 19 Jul 2012 07:59:44 -0700 (PDT)
Local: Thurs, Jul 19 2012 10:59 am
Subject: Re: jQuery Extensions Causing Premature DOMReady event with J25 Plugin

Are you loading jQuery in noConflict mode? If not, are you allowing the CMS
to load the MooTools library? If more than one javascript framework is
loaded then they are both trying to use the $ function in different ways. I
have a plugin at https://github.com/subtext/plg_filterjavascript which
attempts to filter all the loaded javascript and only allow one framework
to be run at a time. I use it to substitute the default MooTools library
with Prototype.js.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »