How can I by using the FormHelper ,or some other method, render an image link that runs javascript w

Posted by chiggsy on Stack Overflow See other posts from Stack Overflow or by chiggsy
Published on 2010-05-10T22:52:30Z Indexed on 2010/05/10 22:54 UTC
Read the original article Hit count: 225

Filed under:

Background:

I want to render this:

<a href="javascript:myfunction('Somevar')"><img src="some.png" width="20" height="20" border="0" /></a>  

in a cakephp app. Note: this link is not associated with a model at all, it's just part of a form going off-site.

I'm unsure of how to proceed: I've seen this on the cakephp site, but with all that goes on in cake, I'm not sure about the whole javascript calling business. What's the best way to create such a thing?

© Stack Overflow or respective owner

Related posts about cakephp