WarMad Posted November 8, 2016 Share Posted November 8, 2016 hi i am trying to make it where i have a link say like <a href="mailbox.php?action=compose"></a> and when i click it the gets entered into my mailbox textbox but i cant figure it out or even get close Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted November 9, 2016 Share Posted November 9, 2016 You'll need a little JavaScript for this. <script type="text/javascript"> function insertBBCode(val, ele) { document.getElementByName(ele).innerHTML += val; } </script> Then, for your BBCode click entry.. <a href="javascript:insertBBCode('[img][/img]', 'message');" onclick="void(0)">Insert image</a> The secondary argument "message" may need updating to match your system - whatever the textarea on mail_compose() is called.. Quote Link to comment Share on other sites More sharing options...
WarMad Posted November 11, 2016 Author Share Posted November 11, 2016 ok thank you mtg Quote Link to comment Share on other sites More sharing options...
WarMad Posted November 11, 2016 Author Share Posted November 11, 2016 that did not work Quote Link to comment Share on other sites More sharing options...
WarMad Posted November 11, 2016 Author Share Posted November 11, 2016 it does not do anything when i click it Quote Link to comment Share on other sites More sharing options...
Lithium Posted November 16, 2016 Share Posted November 16, 2016 most likely because you already have something similar and you need to define the image somewhere 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.