I have a small conflict that causes one of my links to stop functioning in Google Chrome/Firefox when this event is triggered... The function simply doesn't work in internet explorer - however instead of fixing the problem in internet explorer, I'd like to remove the functionality so that the conflict doesn't happen in Firefox/Chrome
There is a significant portion of this code that is dependent on the rest of the moduel to work, someone said "just change the flash color to white" but it dosent fix the problem of interfearing with the links in Chrome/Firefox... So I was wondering if someone could give me an example of what I would have to rem, to prevent it from listening for and triggering the "Div Color Flash"
i'm not so great with java.... pretty bad acctually... anyone help? please...
i'll give u some FG for it
Code
/**
/**
* This function searches for all elements with the class name "vmCartModule" and
* updates them with the contents of the page "shop.basket_short" after a cart modification event
*/
function updateMiniCarts() {
var callbackCart = function(responseText) {
carts = $$( '.vmCartModule' );
if( carts ) {
try {
for (var i=0; i<carts.length; i++){
carts[i].innerHTML = responseText;
try {
color = carts[i].getStyle( 'color' );
bgcolor = carts[i].getStyle( 'background-color' );
if( bgcolor == 'transparent' ) {
// If the current element has no background color, it is transparent.
// We can't make a highlight without knowing about the real background color,
// so let's loop up to the next parent that has a BG Color
parent = carts[i].getParent();
while( parent && bgcolor == 'transparent' ) {
bgcolor = parent.getStyle( 'background-color' );
parent = parent.getParent();
}
}
var fxc = new Fx.Style(carts[i], 'color', {duration: 1000});
var fxbgc = new Fx.Style(carts[i], 'background-color', {duration: 1000});
fxc.start( '#222', color );
fxbgc.start( '#fff68f', bgcolor );
if( parent ) {
setTimeout( "carts[" + i + "].setStyle( 'background-color', 'transparent' )", 1000 );
}
} catch(e) {}
}
} catch(e) {}
}
}
var option = { method: 'post', onComplete: callbackCart, data: { only_page:1,page: "shop.basket_short", option: "com_virtuemart" } }
new Ajax( live_site + '/index2.php', option).request();
}