/    Sign up×
Community /Pin to ProfileBookmark

Simple ajax function for GET & POST

Hello all,

We are looking for a simple js function/object that allows performing an ajax request of GET or POST.

Can someone direct us to one?

thank you,

Rami

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJan 10.2007 — developer.apple.com has a good article on it: http://developer.apple.com/internet/webcontent/xmlhttpreq.html

Some notes from Microsoft: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_xmlhttprequest.asp

And finally, there are oodles of javascript frameworks to choose from. Some I've worked with:

Mootools: http://mootools.net/

Scriptaculous: http://script.aculo.us/
Copy linkTweet thisAlerts:
@ramiab1authorJan 10.2007 — Thank you for your reply. Just forgot to mention that we are looking for a simple js funtion, not a framework like scriptaculous/dojo.

Any ideas?

-Rami
Copy linkTweet thisAlerts:
@toicontienJan 10.2007 — The first two links are what you're looking for then.
Copy linkTweet thisAlerts:
@ramiab1authorJan 11.2007 — Also found that Prototype can be used:

http://prototype.conio.net/

Thank you,

Rami
Copy linkTweet thisAlerts:
@toicontienJan 11.2007 — Prototype is pretty good. Scriptaculous is built on top of Prototype. It's a bit bloated if you ask me. I really do prefer mootools. You can custom build your own javascript library. We use it on [url=http://www.motortopia.com/]Motortopia.com[/url] and if all you want is AJAX functionality, you can probably get away from the mootools site with a 10 to 12 KB javascript file. Still bloated in my opinion, but much smaller than the 35KB that Prototype is after you compress it.
×

Success!

Help @ramiab1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...