I hope you all enjoy it. I’d be happy to get some feedback from the readership.
Developing Webapps with Ajax, Pt. 2
Newsvine |
Del.icio.us |
Digg
In Web, JavaScript, XML on October 11th, 2005 |
10 Remarks
50,095 spam comments caught.
I hope you all enjoy it. I’d be happy to get some feedback from the readership.
Newsvine |
Del.icio.us |
Digg
In Web, JavaScript, XML on October 11th, 2005 |
10 Remarks
Cool. I’ve got to learn Ajax…
October 11th, 2005 at 6:38 pm
look
November 1st, 2005 at 10:17 pm
Can we find the code online ?
Same question for pt. 3 ?
November 30th, 2005 at 10:15 am
Hi Philippe,
Yes, I put part 2 online.
November 30th, 2005 at 1:47 pm
I’m trying to get part 3 to work with an .asp file instead of an .php, but I can’t get any value for obj.getElementsByTagName(’users’)[0] the value is null, is the users value correct ?
I changed it to ‘data’ in this example of an xml file :
-
This is data
This is the code that generates the xml :
” & vbNewLine
Response.Write “” & vbNewLine
Response.Write “This is data” & vbNewLine
Response.Write “” & vbNewLine
%>
December 1st, 2005 at 4:58 am
Again :
Dit is de data
and the code
response.write “” & vbNewLine
Response.Write “” & vbNewLine
Response.Write “This is data” & vbNewLine
Response.Write “” & vbNewLine
December 1st, 2005 at 5:03 am
Philippe, look at the output of your .asp file. Is the XML well-formed? Everything is inside some sort of <tag>? All the tags are opened and closed properly, and nothing is improperly nested? Check those things on the output of the .asp script. Your problem is most likely there.
December 1st, 2005 at 5:24 am
When I use the xml file it works fine, I then copy the xml file and add response.write before each line, adding quotes where needed, but when I replace data.xml with data.asp the code stops working.
This is the code :
response.write " <?xml version=""1.0"" encoding=""UTF-8""?>"
response.write "<root>"
response.write "<data>"
response.write "This is some sample data. It is stored in an XML file and retrieved by JavaScript."
response.write "</data>"
response.write "</root><quot
December 1st, 2005 at 7:42 am
I’m not an ASP developer, but I believe you’ll need this line at the very beginning of your .asp file to specify the XML MIME settings for JavaScript to be able to read the output properly.
<% Response.ContentType = "text/xml" %>December 1st, 2005 at 9:14 am
YES !!!!!
Pffffew, now it works !!
So hard to find that info online !
Thanks, now I can start using Ajax !
Hoping to switch to php soon when our new servers are installed.
Finding your articles very interesting !
No reference to part 3 yet on this site ?
Thanks !
December 1st, 2005 at 9:39 am