XMLHttpRequest object, how do I know whether or not I can use this, do I need to enable anything special, or will my server most likely already have this available.
Sorry if this is a stupid question, I'm honestly just begining an Ajax book, and finally figured out how it all works, for the most part at least.
Question with AJAX
Moderator: General Moderators
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Re: Question with AJAX
Your server shouldn't need anything but the browser client needs Javascript enabled. Server side it pretty much looks like any other request and all the normal security consideration are still there. HTTP_X_REQUESTED_WITH is usually set to something like "XMLHttpRequest" to distinguish it as such a request.akimm wrote:XMLHttpRequest object, how do I know whether or not I can use this, do I need to enable anything special, or will my server most likely already have this available.
Which book?akimm wrote:Sorry if this is a stupid question, I'm honestly just begining an Ajax book, and finally figured out how it all works, for the most part at least.
- akimm
- Forum Contributor
- Posts: 460
- Joined: Thu Apr 27, 2006 10:50 am
- Location: Ypsilanti Michigan, formally Clipsburgh
Foundations of Ajax currently.
At my university they have subscription to something called books24/7 which basically is a server with tons of full text books, one of the most popular of these is technology based books. So I am juggling a few currently, but the aforementioned is my best source thus far.
At my university they have subscription to something called books24/7 which basically is a server with tons of full text books, one of the most popular of these is technology based books. So I am juggling a few currently, but the aforementioned is my best source thus far.
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Re: Question with AJAX
XMLHttpRequest is a Javascript object, and resides on the client side. There are, however, differences in how you access the object depending on the client (namely Mozilla/Safari and IE). Check out http://developer.apple.com/internet/web ... tpreq.html -- the differences are outlined under "Creating the Object".akimm wrote:XMLHttpRequest object, how do I know whether or not I can use this, do I need to enable anything special, or will my server most likely already have this available.
Very true although many sources would try to have people think otherwise. The XMLHttpRequest object has nothing to do with PHP and does not even require any knowledge whatsoever of a server side language. It is just very basic Javascript; anything else is just padding.freefall wrote:You only need the basic construct of the object and you're done. There is nothing else to Ajax.