Hello,

I have a problem with CakePhp and window.location.  On view
index.thtml I have a js function and code
 function goToUrl(link)
 {
        var id;
        var cb1;  --this is combobox/select
        cb1=document.getElementById(''combo_id');
        id=cb1.options[cb1.selectedIndex].value;
        link=link+"/"+id.toString();
        window.location.href=link;
 }

$secLink = '/myusers/';
echo $html->link('', '', array('onclick'=>"goToUrl('$secLink')"));

So, on site I want to choose value from combo and after click on link
I want to go to http://localhost/myprojet/index.php/myusers/value_from_combo

Problem is that nothing is doing. Redirect doesn't work

--~--~---------~--~----~------------~-------~--~----~
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