GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   anyone use the prototype js framework? (https://gfy.com/showthread.php?t=1087638)

fris 11-01-2012 11:22 AM

anyone use the prototype js framework?
 
Curious how to set an action through the ajax call

Code:

function vote(id, rate, img, event) {
    new Ajax.Request(MyAjax.ajaxurl, {
        method: "post",
        parameters: "rate=" + rate + "&id=" + id,
        onSuccess: function(transport) {}
    });
}

need something along the lines of jquery way of doing data: {action: my_action},

mce 11-01-2012 10:27 PM

Bumping this is the least I can do to help a GFY wp uberpimp! Thanks for all the quality WP posts, fris.

fris 11-02-2012 06:32 AM

Quote:

Originally Posted by mce (Post 19290158)
Bumping this is the least I can do to help a GFY wp uberpimp! Thanks for all the quality WP posts, fris.

thanks figured it out, you need to pass the action in params.


All times are GMT -7. The time now is 02:41 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123