Are you using cake1.2 ? If your href is linked to a combo choice, why
not make a property on the combo (ie : 'onChange' =>
'gotoUrl(\'this.selected\')') ? I do not see why the your js function
will be executed as it is now ... You have to set the event in the
combo itself, or add a js event "catcher".
Something like :
echo $form->input("model.field", array('onClick' => 'jsfunction')); ?

hth

On Jan 6, 8:59 pm, cinias <[EMAIL PROTECTED]> wrote:
> I have it, I forgot this line link=window.location.href;
> so when I make alert I havehttp://localhost/myprojet/index.php/myusers/4
> but still nothing :(, I even try to do 
> window.location.href="http://www.google.com";; - nothing I also try 
> window.location="http://www.google.com";; with out result
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to