PDA

View Full Version : How do i read XML???


barkermn01
04-11-2008, 07:47 PM
I need to know how to Build AJAX to read a XML
and then if ther is certain tags there react buy calling functions

Functions i have and what they do

all in Javascript

New_msg(Sender, When, Msg);
// Checks for a open window with name from var Sender
// if open sends msg to function add_msg(msg, when) in side open windows named from var Sender
// if not open opens a windows loading a script

new_frd(name);
// open a windows to a php page called add_mate.php
// then calls function rl_mates();

rl_mates();
// re build the freinds list allowing user to chat to them

Then XML Reader check for more then what is currently loaded from the tags <friends/>
if there is a new one add it to the list of users currently working

A1ien51
04-12-2008, 03:36 PM
Have you tried any tutorials on Ajax and XML? There are plenty out there that should get you started.

Eric

wonko
04-12-2008, 09:54 PM
I just found this link: http://developer.mozilla.org/en/docs/AJAX:Getting_Started

Check out step 4, it explains using XML.

barkermn01
06-08-2008, 09:51 PM
I just found this link: http://developer.mozilla.org/en/docs/AJAX:Getting_Started

Check out step 4, it explains using XML.

i am starting this a differnt why if i can get javascript just to read the file and get the values i found a few tutorial but dont understand how to make them work properly

malfist
06-09-2008, 09:09 PM
AJAX does not require XML, it can actually retrieve any file type.