Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

javacript popup buttons not working in firefox/chrom

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-04-2012, 05:22 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default javacript popup buttons not working in firefox/chrom

Hi There,

Using x-cart gold version: 4.4.3 and for some reason the javascript popup buttons only work in IE and not in FF/Chrome.

Buttons in particular are
Ask a question about this product on product detail - rollover shows "javascript:void(0);" as the link but when you click it nothing happens.

Change (address in one page checkout)
Change (address in Address Book)
probably more...

I have configured custom Wish List and Buy Now image buttons which work fine.
Replacing the entire customer/buttons folder from the package also did not fix the issue... HELP PLEASE!!!

Thanks!
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #2  
Old 04-10-2012, 01:32 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: javacript popup buttons not working in firefox/chrom

Use Error Console (or Firebug) in Firefox to see what errors are appearing, or post a link to the page so we can check it out.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 04-10-2012, 07:00 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default Re: javacript popup buttons not working in firefox/chrom

Hi, Thanks for your reply.

I just tried updating all my jquery.min.js to the latest. no joy.

The 'change' button on the one-step-checkout page gives:

$(this.profile).block is not a function
anonymous()_f7eb5...4348.js (line 284)
anonymous()_f7eb5...4348.js (line 9
N()jquery....min.js (line 16)
anonymous()jquery....min.js (line 17)
anonymous()jquery....min.js (line 16)


[IMG]chrome://firebug/content/blank.gif[/IMG]$(this.profile).block();

The Ask a question link on the Product Detail page gives:
$(".popup-dialog").dialog is not a function
popupOpen()popup_open.js (line 341)src = "/popup_ask.php?productid=1"
title = undefined
params = undefined



onclick()onclick (line 3)event = click clientX=829, clientY=412





[IMG]chrome://firebug/content/blank.gif[/IMG]$('.popup-dialog').dialog('destroy').remove();Any ideas are greatly appreciated. The same issue has presented on two different servers.

__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #4  
Old 04-10-2012, 07:17 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: javacript popup buttons not working in firefox/chrom

It almost sounds like jquery is not loaded or you are loading 2-3 different versions of it at the same time
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 04-10-2012, 07:30 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default Re: javacript popup buttons not working in firefox/chrom

It loads at lot of .js files but definitely onlu one jquery. I've checked that a few times now... almost stumped...
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #6  
Old 04-10-2012, 07:44 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: javacript popup buttons not working in firefox/chrom

post a link to the site
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 04-10-2012, 08:22 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default Re: javacript popup buttons not working in firefox/chrom

It's ok, there has been too many developers working on this site. I think the quickest/easiest approach (which I've now started) will be to rebuild the template with original copies and isolate the mod that way.

Thanks heaps for your help, I still learnt something new today
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #8  
Old 04-10-2012, 08:53 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: javacript popup buttons not working in firefox/chrom

good luck
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
shaz (04-10-2012)
  #9  
Old 04-10-2012, 11:34 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default Re: javacript popup buttons not working in firefox/chrom

Working like a charm now Thanks again and enjoy the rest of your day everyone.
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:03 AM.

   

 
X-Cart forums © 2001-2020