MyBB Community Forums
myCode to trigger event? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: myCode to trigger event? (/thread-102968.html)



myCode to trigger event? - Dannymh - 2011-09-02

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


RE: myCode to trigger event? - Nathan Malcolm - 2011-09-02

Something like this?

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

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





RE: myCode to trigger event? - carter - 2011-09-13

(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