ajax and xml

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
howardr
Forum Newbie
Posts: 17
Joined: Mon Oct 31, 2005 1:33 pm

ajax and xml

Post by howardr »

i have to make a small photo gallery thing for work. i was curious to know if many ajax webapps actual return XML? i says this because right now with my development version i just return:

Code: Select all

24||imageurl||johndoe||a description of the image
then i use a javascript .split('||') to get an array of the info

in theory i know i should do this:

Code: Select all

<image>
    <id>id</id>
    <src>http://...</src>
    <user>johndoe</user>
    <description>a description of the image</desctiption>
</image>
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I would say XML is pretty much how most people do it. Although, if it ain't broke.. don't fix it :-P
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

scottayy wrote:I would say XML is pretty much how most people do it. Although, if it ain't broke.. don't fix it :-P
From what I've seen, the X in Ajax if often ignored.

People should definitely try using it though, it definitely helps to return cleaner, more usable results.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

scottayy wrote:I would say XML is pretty much how most people do it. Although, if it ain't broke.. don't fix it :-P
I generally would not follow this advise, unless of course maintainabiltiy, readability and standardization isn't important to you. :wink:
Post Reply