Welcome Guest, Not a member yet? Register   Sign In
Anchor and Javascript
#1

[eluser]SDSL[/eluser]
How would you add javascript action to your anchor helper?
since the anchor helper insert the full url path in-front of the javascript it becomes useless
For example
Code:
anchor("#",img(), "onclick='select_all();'");
becomes
Code:
< a href="http://localhost/index.php/#">< / a >

and
Code:
anchor("[removed]select_all()",img());
becomes
Code:
< a  href="http://localhost/index.php/[removed]select_all();"> < / a >

Thank you


Messages In This Thread
Anchor and Javascript - by El Forum - 08-16-2010, 01:14 AM
Anchor and Javascript - by El Forum - 08-16-2010, 01:17 AM
Anchor and Javascript - by El Forum - 08-16-2010, 01:23 AM
Anchor and Javascript - by El Forum - 08-16-2010, 01:29 AM
Anchor and Javascript - by El Forum - 08-16-2010, 01:36 AM
Anchor and Javascript - by El Forum - 08-18-2010, 07:48 AM
Anchor and Javascript - by El Forum - 08-18-2010, 07:52 AM
Anchor and Javascript - by El Forum - 08-18-2010, 08:13 AM
Anchor and Javascript - by El Forum - 08-18-2010, 08:16 AM
Anchor and Javascript - by El Forum - 08-18-2010, 11:41 AM
Anchor and Javascript - by El Forum - 08-19-2010, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB