MyBB Community Forums

Full Version: myCode to trigger event?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible for myCodes to trigger any events?

I want to use a myCode and have this update a database table with a counter.

Dan
Something like this?

function update() {
new Ajax.Request('/update.php, { method:'get' });
}

<a href="javascript:void(0);" onclick="javascript:update();">Update</a>


(2011-09-02, 05:59 AM)Malcolm. Wrote: [ -> ]Something like this?

function update() {
new Ajax.Request('/update.php, { method:'get' });
}

<a href="javascript:void(0);" onclick="javascript:update();">Update</a>
OffTopic:Malcolm what can't you do?
OnTopic:His code would be exactly right lol