Welcome Guest, Not a member yet? Register   Sign In
wanna leran ajax
#1

[eluser]A.M.F[/eluser]
i want to start and modify my works with ajax. (i am using YATS for the templates btw)

i downloaded jQuery and red about it a little bit but i can't figure it out...
can someone show me some live exmaples of it?

thank u!
#2

[eluser]Craig A Rodway[/eluser]
Any good?
#3

[eluser]sandwormusmc[/eluser]
I'm a big fan of MooTools, myself ... there are a lot of examples and sample code out there, and the user community is on par with CI's as far as I've seen.

Check it out: http://MooTools.net.

Sample AJAX call in MooTools:

Code:
var url = 'http://changeme.plz/your/ajax/handler.php';
    var callMeWhatYouWant = new Ajax(url, {
        method: 'post',
        update: $('<replace this with the class name of the element you want updated with results>'),
        onComplete: function(response) {
            <add other javascript functions or whatever here>
        }
    }).request();

...and that's really it. Try it out, it's pretty easy. I'll be glad to answer any questions you have about it; I've been using it with CI lately so at least we can keep it on topic, also. Tongue




Theme © iAndrew 2016 - Forum software by © MyBB