Jump to content

[SOLVED] Button/Link Help


williwaw

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.