You need to pass FULL_BASE_URL as parameter and build your link with
it ...
You could set in the head section a js var and set it to
FULL_BASE_URL. Use this var and concatenate your location from combo.
hth

On Jan 6, 7:20 pm, cinias <[EMAIL PROTECTED]> wrote:
> 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 tohttp://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