Zen Cart Logo
Forums / General Questions / this js only works in IE

this js only works in IE

Views: 617

Results 1 to 6 of 6
18 Apr 2011, 5:44 PM
#1
wolf111 avatar

wolf111

New Zenner

Join Date:
Apr 2011
Posts:
7
Plugin Contributions:
0

this js only works in IE

to make certain dropdown attributes not display on shopping cart, i add the code Form.elements['attrib-3'].value="";

it works in IE, but it doesn't work in Firefox
what do i modify the code to make it work both in IE and Firefox?

18 Apr 2011, 9:37 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: this js only works in IE

i add the code Form.elements['attrib-3'].value="";
Where are you adding this and where is your site?
What version of ZenCart? etc etc

18 Apr 2011, 9:54 PM
#3
wolf111 avatar

wolf111

New Zenner

Join Date:
Apr 2011
Posts:
7
Plugin Contributions:
0

Re: this js only works in IE

kobra:

Where are you adding this and where is your site?
What version of ZenCart? etc etc

tpl product info localhost 1.39h

attrib-3 is id of the select box

18 Apr 2011, 10:02 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: this js only works in IE

attrib-3 is dropdown id
A drodown is not part of the default code

If you have added a module for a drop menu you might need to visit the contributed add ons area and not the general area that is for default code issues

18 Apr 2011, 10:10 PM
#5
wolf111 avatar

wolf111

New Zenner

Join Date:
Apr 2011
Posts:
7
Plugin Contributions:
0

Re: this js only works in IE

kobra:

A drodown is not part of the default code

If you have added a module for a drop menu you might need to visit the contributed add ons area and not the general area that is for default code issues

it s custom code that i add to product info page, will this thread be moved to contributed addons area or posted again to that area?

19 Apr 2011, 10:03 AM
#6
wolf111 avatar

wolf111

New Zenner

Join Date:
Apr 2011
Posts:
7
Plugin Contributions:
0

Re: this js only works in IE

i add to tpl product info display file the code Form.elements['attrib-3'].value=""; to make certain dropdown attributes not display in shopping cart if adding products to cart.
the source of this dropdown:
<select id="attrib-3" name="id[3]">

<option value="9">a</option> <option value="10">b</option> <option value="11">c</option> </select> when i add products to cart from IE, the js works, this dropdown wont show on shopping cart page. but if i add products from Firefox, this dropdown still shows on shopping cart page

i'm not sure where should i post this problem, what do i modify the js to make it work in Firefox? any help would be appreciated