[ic] Run javascript with country_select.widget

Josh Lavin josh-ic at att.net
Mon Sep 14 19:59:36 UTC 2009


On Sep 14, 2009, at 2:10 PM, Jon Jensen wrote:

> On Mon, 14 Sep 2009, Josh Lavin wrote:
>
>> I made a change to the country_select widget, so you can run  
>> Javascript,
>> like the check_tax routine:
>>
>> Adds state_js option, so Javascript can be passed to the onChange  
>> event.
>> Rewrites "this.form" with "$v_formv" so it will work when passed.  
>> Useful
>> for calling check_tax like so: state_js="check_tax(this.form)".
>>
>> http://github.com/jlavin/interchange/commit/76eda3c78f384bf36108e0a39fa1729ddc3d53b6
>
> That sounds useful.
>
> Substituting JavaScript code will always be inexact, but I wonder if  
> we
> could somewhat improve this:


Changes made; plus I added id capability for state select.

http://github.com/jlavin/interchange/commit/24630e9aeebafcdf2c43de4b6cadb920ab964145

Thanks,
Josh
--
Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/




More information about the interchange-users mailing list