Created
March 30, 2009 11:06
-
-
Save BlackMac/87739 to your computer and use it in GitHub Desktop.
Ganz einfacher Ajax Request 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Ajax('url',{ | |
'sgjson':true, // soll res bei onComplete json sein? | |
'windowspinner':true, // großen spinner auf dem Fenster anzeigen? | |
'data':{ // Diese Daten werden der Action als post übergeben | |
'x':'y', | |
'z':'a' | |
}, | |
'onComplete':function(res) { | |
// res ist bereits als json geparsed! | |
} | |
}).request(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment