Codeman05
05-06-2006, 03:32 PM
Hey guys,
One of my users requested a feature that would allow them to simitaniously submit a quick reply...and subscribe to the thread.
I was able to do this by making a new button like so:
<input type="submit" class="button" value="Post Reply & Subscribe" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="document.location = 'subscription.php?$session[sessionurl]do=addsubscription&t=$threadid';">
However, this required that I remove the
onclick="clickedelm = this.value"
value...as I can't get it to work with multiple "onclicks" on the button.
Will that cause a problem? It works fine, but I'm not sure what that attribute does and was unable to find out online
One of my users requested a feature that would allow them to simitaniously submit a quick reply...and subscribe to the thread.
I was able to do this by making a new button like so:
<input type="submit" class="button" value="Post Reply & Subscribe" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="document.location = 'subscription.php?$session[sessionurl]do=addsubscription&t=$threadid';">
However, this required that I remove the
onclick="clickedelm = this.value"
value...as I can't get it to work with multiple "onclicks" on the button.
Will that cause a problem? It works fine, but I'm not sure what that attribute does and was unable to find out online