What if you replace your line by :
'onClick'=>'new Ajax.Updater(\'tasktable\',"' . $html->url('/
controller/'tasktable') . '",
{asynchronous:true, valScripts:true});',
?
by the way, asynchronous is default, no need to specify it.
On 1 avr, 13:22, da_student <[EMAIL PROTECTED]> wrote:
> hey,
> I'm having kind of a problem here. ok, first the things I've done:
> I have a controller, in which I have an action called tasklist, which
> just sets some variables, nothing interesting. Then I have a a view to
> this action, called tasklist.ctp, looking like this (just the
> important stuff):
> -------tasklist.ctp---------
> <? echo $form->input('showtasks',
> array( 'label'=>false,
> 'value'=>'0',
> 'empty'=>true,
> 'type'=>'radio',
> 'onClick'=>'new
> Ajax.Updater(\'tasktable\',\'tasktable/\',
> {asynchronous:true, valScripts:true});',
> 'options'=> array(0 => 'all tasks<br>', 1 => 'my
> tasks<br>',
> 2=>'tasks belonging to project: ')
> ));?>
>
> <div id="tasktable">
> <table>
> //here comes my table, filled with data
> </table>
> </div>
>
> //here comes another div, also filled with data ;)
>
> As you can see in the line with the ajax-Updater, I should also have
> an action called tasktable, which I have, and I also have a view for
> tasktable. But somehow always action tasklist gets called, and not
> tasktable. It updates the right div, but with the wrong content. Am I
> missing something?! whereever I looked, they make it the same way I
> do.
> any help appreciated!
> thanx
> da_student
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---