[Javascript] Ajax - New Page

(Margaret) Michele Waldman mmwaldman at optonline.net
Tue Aug 19 19:01:07 CDT 2008



-----Original Message-----
From: javascript-bounces at lists.evolt.org
[mailto:javascript-bounces at lists.evolt.org] On Behalf Of David Dorward
Sent: Tuesday, August 19, 2008 7:10 PM
To: JavaScript List
Subject: Re: [Javascript] Ajax - New Page

 

 McAfee SiteAdvisor Warning
 This e-mail message contains potentially unsafe links to these sites:
	evolt.org  
	 


On 19 Aug 2008, at 23:50, (Margaret) Michele Waldman wrote:

> It would be a general thing.
>
> Ajax in the classic form creates an xml object and calls a php script.
>
> When the server finishes with the php script, it returns xml.

Not quite. In the classic form, it creates an XMLHttpRequest object  
and makes a request to the server, which returns XML. XML doesn't need  
to be passed, and PHP doesn't need to be used to generate the response.

..........>> Right, I was being lazy in the summary.

These days (i.e. the non-classic form), its generally accepted that  
Ajax means any use of JavaScript to make an HTTP request and update  
the page based on the response.

> However, if the page that originally called the php script is no  
> longer in
> the client's browser and error is generated by the xml.

The XMLHttpRequest object should have been destroyed when the browser  
discarded the page. The response from the server should be ignored.

........>> The xml response seemed to be returned.

> You can look at the website: http://www.wantedgaming.com/shop.
>
> Click the right box alternating breaking/game news over repeatedly.   
> They
> are both ajax pages.  Eventually, the xml error will occur because the
> client is switching out the pages faster than the server is  
> returning the
> xml object.

I can't reproduce the problem. The only complaints my debugger gives  
are warnings that you are using document.all.

........>> I haven't been able to reproduce it lately either.

http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages:U
sing_the_W3C_DOM

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


_______________________________________________
Javascript mailing list
Javascript at lists.evolt.org
http://lists.evolt.org/mailman/listinfo/javascript




More information about the Javascript mailing list