runnerjp Posted September 14, 2008 Share Posted September 14, 2008 im trying to add my buttons like the ones on starting a new topic so a user can use bbcode currently i have <a href="javascript:void(0);" onclick="surroundText('', ''); return false;"><img style="border: none;" src="url.gif" alt="enterurl" /></a> i think there is something wrong here onclick="surroundText('', ''); Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted September 14, 2008 Share Posted September 14, 2008 I testing your code with the following <script type="text/javascript"> function surroundText(param1,param2){ alert(" param1: "+param1+" param2: "+param2); } </script> <a href="javascript:void(0);" onclick="surroundText('value1', 'value2'); return false;"><img style="border: none;" src="url.gif" alt="enterurl" /></a> this seems to work properly and doesnt produce any errors. so I'm guessing something is wrong with your function " surroundText" Quote Link to comment Share on other sites More sharing options...
runnerjp Posted September 14, 2008 Author Share Posted September 14, 2008 would it need to be something like onclick="surroundText('', '', something here?? like page.php ?) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.