Alaska Software Inc. - Ajax for newbies
Username: Password:
AuthorTopic: Ajax for newbies
Garry Allen Ajax for newbies
on Mon, 22 Aug 2005 11:22:00 -0400
You might want to check out this link if you are interested in Ajax (or 
think you should be) but just don't get it.
http://www.webreference.com/programming/javascript/jf/column12/index.html
Garry
Bruce AndersonRe: Ajax for newbies
on Sun, 28 Aug 2005 18:43:06 -0500
Several readers report that running the demo code as a local file fails with 
an "object required" error, but the same code works when run from the 
author's website "simplyremarkable.com".  The curious behavior has been 
noted by users of IE.  The same browser running the same code either works 
or fails depending on the source of the html file.  Is there something 
inherent in Ajax that requires IE be dealing with a page from a web server?

BTW, the article's author is an 11th grade student.  I am properly humbled.
James Loughner Re: Ajax for newbies
on Sun, 28 Aug 2005 22:13:45 -0400
It is probable that what is required is a web server. Running local 
means that the file is simply loaded as HTML and not served. It would 
require a server to react to and return the required responses.

Jim

Bruce Anderson wrote:
> Several readers report that running the demo code as a local file fails with 
> an "object required" error, but the same code works when run from the 
> author's website "simplyremarkable.com".  The curious behavior has been 
> noted by users of IE.  The same browser running the same code either works 
> or fails depending on the source of the html file.  Is there something 
> inherent in Ajax that requires IE be dealing with a page from a web server?
> 
> BTW, the article's author is an 11th grade student.  I am properly humbled. 
> 
>
Phil Ide
Re: Ajax for newbies
on Tue, 30 Aug 2005 12:36:53 +0100
Bruce,

> Several readers report that running the demo code as a local file fails with 
> an "object required" error, but the same code works when run from the 
> author's website "simplyremarkable.com".  The curious behavior has been 
> noted by users of IE.  The same browser running the same code either works 
> or fails depending on the source of the html file.  Is there something 
> inherent in Ajax that requires IE be dealing with a page from a web server?

The ajax function makes a request to web server to fetch information which
it then writes into the current document.  This means you require an
internet connection.  Without looking at the code, it may also just use the
URI for the data, not the complete URL, so relying on the BASE.  In a web
environment, BASE will point at the server the page was loaded from, when
loaded from disk using file-association, it will point into nothing (or
possibly localhost).

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

Do not pay any attention to this.