/    Sign up×
Community /Pin to ProfileBookmark

Aid with JQuery possible conflict.

I’ve got a plugin for a wordpress, wp-ecommerce, I’ve already posted on their forums and not gotten a response.

The issue is the plugin is giving ‘Done but with errors’ in IE, so I ran IE’s debugging tool. What it doesn’t like is the following:

[code=php]jQuery(“form.product_form”).livequery(function(){
product_id = jQuery(‘input[name=product_id]’,this).val();
image_element_id = ‘product_image_’+product_id;
jQuery(“#”+image_element_id).data(“product_id”, product_id);
parent_container = jQuery(this).parents(‘div.product_view_’+product_id);
jQuery(“div.item_no_image”, parent_container).data(“product_id”, product_id);
});[/code]

The error states: Object doesn’t support this property or method wp-e-commerce.js?ver=3.7.58, line 143 character 2

which is the line: jQuery(“form.product_form”).livequery(function(){

However, when I close the debugger / run the script … it works fine, infact it works even with the error coming up on the page!

The plugin works completely I don’t see why forcing IE to run the script gets rid of the ‘done but with errors’ message?

Ive read around and found it maybe a jQuery conflict but I don’t know how to sort that, if several files call jQuery how can I fix it ?

Regards,

Aravona

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Aravona 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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