It's a fact jquerys have plenty advantages, and more and more contributions use them, the problem appears when you have more then one jquery in the same page and they start conflicting, since they are triggered concurrently.
I have scrutinized the problem i had in my shopping cart, and i'm most certain the Error! Unable to determine page link is due to jQuery conflicts.
I would like to know the solution for this... i have found a somewhat generall remedy, in here http://addons.oscommerce.com/info/7230 and i quote:
steps to sort severall jquerys breaking your eshopping:
A - change document definition
find this
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">replace with
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
B - If you have another js framefork such us jQuery and conflicted that module please read following
write this code to every page before </head> tag
<script>
var $j = jQuery.noConflict();
// Use jQuery via $j(...)
$j(document).ready(function(){
});
</script>
and change all jQuery's $ to $j , this should work now.
Example: AJAX shopping cart contrib
jQuery API: jquery-1.4.2.min.js <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
jQuery contribution: jquery-oscart.js <script type="text/javascript" src="js/jquery-oscart.js"></script>
Observation:
order of code must be
<head> <metatags> <css> <jquery> <js> </head>
I will test this in my site, and i thought i should post this, since someone can encounter the same problems i did and this helps.
If you think you can add something to this please do thanks.
Edited by Francys, 19 July 2010, 05:56.















