I've done that, this is my onchange code
onchange=\"new Ajax.Updater('rate_groups_div',
'rate_groups/getRateGroups/' + this.value, {evalScripts:true});\"
on top of the re-created element i set up this variables, which works
fine
<?
$json = new Services_JSON();
$rate_groups = $json->encode($results);
?>
and the code that should be recreated is the following
<script language='javascript' type='text/javascript'>
var rate_groups = <?=$rate_groups?>;
var rg_ids = new Array();
oldRG_row = oldRT_row = oldEdit = 'undefined';
totalrgcount = <?=count($results)?>;
</script>
however, this code is not recreated, Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---