School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,354 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,811 people online right now. Registration is fast and FREE... Join Now!




XML and AS

 

XML and AS, hi, hepl me, look

sattua

11 Jun, 2009 - 03:06 PM
Post #1

New D.I.C Head
*

Joined: 20 Mar, 2008
Posts: 49


My Contributions
Hi

I need to enter data in xml, so, I use this code:

CODE

               var Mixml = new XML();
        Mixml.ignoreWhite = true;
        Mixml.onLoad = function(success) {
            if (success) {
                elemento = this.createElement(nom);
                trace(this.firstChild.childNodes[0].firstChild.nodeValue);
                this.firstChild.appendChild(elemento);
                trace(this);                
            }
        };
        
        Mixml.load('prueba.xml');


the trace shows that in fact the node was entered....but when I open the xml with textpad or notepad or something like that....The data are not there.

Am I forgetting something?

thanks in advance =)

User is offlineProfile CardPM
+Quote Post


ahmad_511

RE: XML And AS

11 Jun, 2009 - 03:48 PM
Post #2

MSX
Group Icon

Joined: 28 Apr, 2007
Posts: 509



Thanked: 36 times
Dream Kudos: 500
My Contributions
hello,
are you trying to save the new updates to the xml file?

well,the code you have will not not do that.
you just updated the xml file in the client's computer memory.

you need a server-side script to accomplish this
and the idea is to push the new xml file back to a server-side script which will take it from there and save the file you updated
User is offlineProfile CardPM
+Quote Post

sattua

RE: XML And AS

11 Jun, 2009 - 04:18 PM
Post #3

New D.I.C Head
*

Joined: 20 Mar, 2008
Posts: 49


My Contributions

thanks for answering.....

yeah u right....Im just updated the xml file in the client's computer memory.

but well,
I am new in this, and I do not have a server o client...I only programming an small aplication, u know....so without a server, is it posible, to updated???

I need an instruction so that they actually saved in xml

=) thanks
User is offlineProfile CardPM
+Quote Post

ahmad_511

RE: XML And AS

11 Jun, 2009 - 05:51 PM
Post #4

MSX
Group Icon

Joined: 28 Apr, 2007
Posts: 509



Thanked: 36 times
Dream Kudos: 500
My Contributions
hello again,
so, is it for local use or you tend to share your project with others?
if it's for local use you can set up your machine to act just like a server, and from there you can use server-side languages.

if you're thinking to distribute it to others, of course you'll not gonna tell them to configure their machines just to run your project.

so in this case you have to use a third-party application which will host your project and will give you the accessibility to the hard drives.
of course most of these apps are not for free.

just in case you're targeting windows user only (I don't know about any equivalent on the other OSs) you can try HTA applications which will let you access the hard drive using JScript / VBScript

This post has been edited by ahmad_511: 11 Jun, 2009 - 05:53 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 07:00PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month