Hi,
try
<?php echo link_to('Click', '#', array("onclick"=>"document.location= 
$('service')")) ?>

Wait!
Use:
<a onclick="document.location = $('service')" href="#">Click</a>

Why do you want to use the helper at all?
.: Fabian

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Tom Haskins-Vaughan
Sent: Donnerstag, 15. Mai 2008 21:33
To: [email protected]
Subject: [symfony-users] Javascript Bug


Hi Guys,

I'm trying to do get this:

<a onclick="document.location = $('service')" href="#">Click</a>

By doing this:

<?php echo link_to('Click', '#', "onclick=document.location = 
$('service')") ?>

But actually I'm getting this:

<a onclick="document." location="$(&#039;service&#039;)" href="#">Click</a>

Any ideas?

TIA

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to