Search the web
Sign In
New User? Sign Up
FLASHmacromedia · Moderated Flash discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Super quick xml question   Message List  
Reply | Forward Message #59711 of 59817 |
Re: Super quick xml question

Yep, I can just concentrate them together. But I tried using your example and it
doesn't seem
to work. For some strange reason it outputs "NaN" in my text box (which is odd
considering
there's only one capital N in my text).

--- In FLASHmacromedia@yahoogroups.com, "Michael Hudak" <hudey123@...> wrote:
>
> Can you just concatenate them together, or are you trying to do something
> more complex?
>
> text1.text = this.firstChild.childNodes[0] + this.firstChild.childNodes[1] +
> this.firstChild.childNodes[4];






Tue Dec 23, 2008 2:45 am

tactics2337
Offline Offline
Send Email Send Email

Forward
Message #59711 of 59817 |
Expand Messages Author Sort by Date

Still new to this xml thing and trying to figure out the lingo a bit. Got an xml doc containing 5 sections. I know the following will load the first one into...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
1:32 am

Can you just concatenate them together, or are you trying to do something more complex? text1.text = this.firstChild.childNodes[0] +...
Michael Hudak
hudey123
Offline Send Email
Dec 23, 2008
2:28 am

Yep, I can just concentrate them together. But I tried using your example and it doesn't seem to work. For some strange reason it outputs "NaN" in my text box...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
2:45 am

NaN stands for "Not a Number" and it might mean that you have a variable scope problem. At the very least it means that it's looking for a Number type variable...
Michael Hudak
hudey123
Offline Send Email
Dec 23, 2008
3:13 am

Ah, that explains it. Well, the "+" method doesn't work for including more than one child. I was able to load all of the text in and then just hide the nodes I...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
7:10 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help