[ic] Putting javascript in a select with item-options

Chris Wenham interchange-users@icdevgroup.org
Wed Apr 23 23:14:00 2003


 I need to have an onUpdate javascript function placed in the <select> tag 
generated by [item-options], perhaps like this:

 [item-options td=1 label=1 bold=1 price=1 js=| onUpdate="jsfunction()"; |]

 However, the value of the js parameter is omitted by the time it gets to 
Vend::Options::tag_options(). 

 I'm using Matrix options in the CVS development branch. Each option is a 
separate SKU. What I want is to update the product picture whenever a 
different variant is chosen from the select widget. I've already added 
"image" fields to the Options database.

-- 
Regards,

Chris Wenham
Synesmedia