XML Help needed - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: XML Help needed (/showthread.php?tid=63400) XML Help needed by Mothuim on 07-16-2006 at 10:20 PM
I've been working on my statistics script and have i've been trying to change it so that the data it collects is stored in XML rather than a text file. This has been going fine and it works perfectly if you only have one user using the script. If i signed on to WLM with another account it goes wrong. code: And when a new User signs on it it will create some more elements like this: code: The problem comes when it tries to write the data to the file, it will still write to the first users part. I could get around this by making separate files for each user but thats not ideal. After googling for hours i think i need to use the getelementbyid method but i try and it doesn't work! Sadly i've been fiddling with this so long i can't remember how i got that far and now it doesn't do much and says the object doesn't support this method. This is a snippet from my code: code: RE: XML Help needed by Silentdragon on 07-16-2006 at 11:24 PM
Shouldn't code:be code: MSDN says jscript for GetElementById should be capitalized like that. And most things when you check for null aren't in quotes. Your checking against the string null not null itself. RE: XML Help needed by Mothuim on 07-16-2006 at 11:29 PM
Thanks for the reply but that isn't the problem, i still get the same error: quote: This is what xmlDoc is defined as btw, is it right? code: RE: XML Help needed by cooldude_i06 on 07-16-2006 at 11:46 PM
try this: code: RE: XML Help needed by Mothuim on 07-17-2006 at 12:21 AM
Thanks but that wasn't right either, however it did help me to get it right. code: This is the first half the problem, i can detect if it is a new user, now i need to make it right to the new user's tags/elements/thing (i don't really the know the correct term!). I'll try it myself I think i have a good idea how to do it, but i may be back if i get very stuck. Thanks UPDATE: Second problem solved a few minutes after the first. Expect a new version soon! |