Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use the WP native function wp_enqueue_script() for all my JavaScripts loading both in WP front and back-end so it can handle duplicated calls to the same script and so on.

One of the issues is that others programmers don't use this function and load their scripts directly from their code, which causes jQuery or jQuery-UI being loaded twice, leading to a bunch of errors.

The other issue is that code not owned by my triggers an error and stops the execution of the JavaScript beyond this point.

EDIT:

In short:

  1. A javascript error occurs in code not owned by me.
  2. My code don't executes due to that f*%@ error.
  3. I want that my code bypass that error and still executes.

There is a way to handle these issues?

share|improve this question
1  
Use jQuery and jQuery ui in no conflict mode api.jquery.com/jQuery.noConflict – Benjamin Gruenbaum Feb 1 at 5:43
Your question is rather broad. Perhaps you could narrow it down to a single WordPress-specific issue? – bungeshea Feb 1 at 6:38
@all: Thanks for taking time to answer, I appreciate your help. – diosney Feb 2 at 16:39
@BenjaminGruenbaum: I'm already using jQuery in the noConflict mode and the issue still remains. – diosney Feb 2 at 16:42
@bungeshea: Sorry, but I can't narrow it more than that. The issue is: 1- a javascript error occurs in code not owned by me. 2- my code don't executes due to that f*%@ error. 3- I want that my code bypass that error and still executes. – diosney Feb 2 at 16:44
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.