williwaw Posted October 28, 2008 Share Posted October 28, 2008 Hi All, Is there any way to turn the 'cancel_reply' link into a 'cancel_reply' button instead? echo '<div id="cancel_reply" style="display:none;"><a href="javascript:void(0)" onclick="movecfm(null,0,1,null);" style="color: #996633;">' . $this->options['cancel_reply'] . '</a></div>'; Thanks for your time in checking this out. Cheers, Williwaw Quote Link to comment Share on other sites More sharing options...
BoltZ Posted October 28, 2008 Share Posted October 28, 2008 Instead of <input type="text" ...> do <input type="button" or "submit" Quote Link to comment Share on other sites More sharing options...
dropfaith Posted October 28, 2008 Share Posted October 28, 2008 i would leave it as a link and just style it to look like a button http://www.456bereastreet.com/lab/bulletproof-shrinkwrapping-buttons/ http://sophie-g.net/jobs/css/e_buttons.htm either works fine uhm boltz its currently an link so i assume this isnt in a form and avoided using inputs Quote Link to comment Share on other sites More sharing options...
BoltZ Posted October 29, 2008 Share Posted October 29, 2008 Mine would be easier. Or you could make your image and use it as a link O.o Quote Link to comment Share on other sites More sharing options...
xtopolis Posted October 29, 2008 Share Posted October 29, 2008 Why not make it a button like he said? Change <a> to <button>... Is there more to it that I'm not seeing? Quote Link to comment Share on other sites More sharing options...
BoltZ Posted October 29, 2008 Share Posted October 29, 2008 I don't know. It seems like a pretty simple answer... Quote Link to comment Share on other sites More sharing options...
williwaw Posted October 30, 2008 Author Share Posted October 30, 2008 I tried a couple different ways with the <button> tag to no avail. echo '<button href="javascript:void(0)" onclick="movecfm(null,0,1,null);" id="cancel_reply">' . $this->options['cancel_reply'] . '</button>'; and this echo '<div id="cancel_reply" style="display:none;"><code href="javascript:void(0)" onclick="movecfm(null,0,1,null);">' . $this->options['cancel_reply'] . '</code></div>'; I used to be so much better at this before web2.0 with plugins and other peoples code(OPC)....when I used to have to do it all myself. Now my brain has just gone to plugin lala land:) Thanks for the help everyone. Cheers, Williwaw Quote Link to comment Share on other sites More sharing options...
BoltZ Posted October 30, 2008 Share Posted October 30, 2008 So you are done with this problem? Quote Link to comment Share on other sites More sharing options...
williwaw Posted November 7, 2008 Author Share Posted November 7, 2008 No, sorry I was at work for the past week. I am going delve back into it, but I am still open to suggestions. Cheers, Williwaw Quote Link to comment Share on other sites More sharing options...
williwaw Posted November 8, 2008 Author Share Posted November 8, 2008 BoltZ, Can you elaborate on this a bit. The part that I am getting stumped on is where to put the href, onclick and the $this. Instead of <input type="text" ...> do <input type="button" or "submit" Thanks for your help. Cheers, Williwaw Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 8, 2008 Share Posted November 8, 2008 Do what dropfaith suggested and use <button Quote Link to comment Share on other sites More sharing options...
williwaw Posted November 9, 2008 Author Share Posted November 9, 2008 Do what dropfaith suggested and use <button I did do that as in thread: I tried a couple different ways with the <button> tag to no avail. echo '<button href="javascript:void(0)" onclick="movecfm(null,0,1,null);" id="cancel_reply">' . $this->options['cancel_reply'] . '</button>'; and this echo '<div id="cancel_reply" style="display:none;"><code href="javascript:void(0)" onclick="movecfm(null,0,1,null);">' . $this->options['cancel_reply'] . '</code></div>'; I used to be so much better at this before web2.0 with plugins and other peoples code(OPC)....when I used to have to do it all myself. Now my brain has just gone to plugin lala land:) Thanks for the help everyone. Cheers, Williwaw Do you have any suggestions on the <button> tag BoltZ? Cheers, Williwaw Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 9, 2008 Share Posted November 9, 2008 I noticed in your first code that you have echo ' ... then another ' without escaping it. 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.