From: Christopher C. <cc...@ch...> - 2006-10-13 15:23:15
|
Hi All I've been converting all my stuff to use spyce active tags Everything is fine so far except i have some selects which run javascript stuff onchange events Most of them work fine except for one (Note i have no trouble passing data to my tags) My "static" version works <f:select name='calendar' data="sel_cal" onChange=changeDates(this,date_selector,2001-01-01,2005-10-01) /> and spyce bulids the select box however i tried <f:select name='calendar' data="sel_cal" onChange=changeDates(this,date_selector,[[=start]],[[=end]] /> It prints out the dates but the rest of the spyce does not compile the tag to html I've also tried <f:select name='calendar' data="sel_cal" onChange=changeDates(this,date_selector,"=start","=end" /> but if course this does not work also I've "solved" the problem by creating a dynamic wrapper function which only thakes date and date_selector which makes the call to changeDates Is there a better way to do this ??? Regards Chris |