Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

conflict with 2 contrib jquery


moulte

Recommended Posts

hello,

I installed3contrib:

 

 

 

 

 

images zoomer for oscommerce 2.3

 

 

Categories Accordion Box

 

 

PIM-oscSlideshow 1.0

 

 

but since I put a slider on both product_info.php page reference any of the three functioned and I have several error

 

 

Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]and[/size][/font][/color]

[color=#333333][font=arial, sans-serif][size=4]950event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.

 

 

thank youfor your help

 

ps: sorry for my english i'm french

Link to comment
Share on other sites

Sorry i can't edit

 

<script type="text/javascript" src="javascript/ddpowerzoomer.js">
/***********************************************
* Image Power Zoomer- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
jQuery(document).ready(function($){ //fire on DOM ready
$('#myimage').addpowerzoom({
defaultpower: 7,
powerrange: [10,15],
largeimage: null,
magnifiersize: [250,250] //<--no comma following last option!
})
})
</script>

 

here is the code that bug other contrib

Link to comment
Share on other sites

<script type="text/javascript">
$(document).ready(function() { //fire on DOM ready
$('#myimage').addpowerzoom({
defaultpower: 7,
powerrange: [10,15],
largeimage: null,
magnifiersize: [250,250] //<--no comma following last option!
})
})
</script>

 

Maybe try the above.

Link to comment
Share on other sites

Hi Max,

 

I have not downloaded the other contributions you mentioned. However, I do know that jquery will confilict with other Javascript libraries. In my case it was scriptlious.js and prototype.js.

 

The solution I found which I have posted in another thread was to go through each library file and change the $() functions to $$() functions. Be careful not to just do a find an replace you have to manually look at the library files.

 

I'm not 100% sure if your confilict is caused by library collosions but it is a thought.

 

Hope it helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...