i'm new to cakephp, but i believe the $html helper is your problem. i think it appends your site to the beginning of the link. just remove the helper bit and put the direct link in.
On Mar 25, 11:06 am, "skyblueink" <[EMAIL PROTECTED]> wrote: > The following index.thtml gives a Google link > ofhttp://www.mydomain.com/tests/http://www.google.cominstead > ofhttp://www.google.com. What shoud I do to get get the correct link? > > -index.thtml- > <html> > <script> > function insertScript(){ > var sHTML="<a href='<? echo $html->url("http://www.google.com"); ?>' > >Google</a>"; > > scriptDiv.innerHTML = "<br/>" + sHTML;} > > </script> > > <body onload="insertScript();"> > <div id="scriptDiv"></div> > </body> > </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
