Interesting idea to do that. And I can just use CSS to make it look and act
like a link to. Thanks for the idea Fabian.

On Fri, May 29, 2009 at 2:13 PM, Fabian Lange <
[email protected]> wrote:

> Hi,
>
> <div onClick="javascriptFunction()">Link Text</div>
> the link_to is a helper specifically designed to work with links using
> routes. You actually neither want a link nor a route. so you shouldn't
> bother using the link _to helper
> Fabian
>
> On May 29, 2009, at 2:08 PM, Gareth McCumskey wrote:
>
> Hi there all,
>
> Without going into the specifics I am looking for a way to use:
>
> <?php echo link_to("Link Text", "#",
> array("onClick"=>"javascriptFunction()") ?>
>
> in symfony without the page scrolling back up when the link is clicked. I
> did find that you can use "javascript:" to do this but symfony complains
> with this:
>
> An internal URI must contain a module and an action (module/action)
> ("javascript:" given)., referer:
>
> I was wondering if anyone knows another way to do this to prevent the page
> from scrolling back everytime a link is clicked. The reason for this is that
> someone may have scrolled all teh way down a rather long page, clicked a
> link and then has to re-scroll down again to find where they were ... not
> that nice from a useability point of view.
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
>
>
>
>
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

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