icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » All Things Techy » Web Standards Design » XML with <textformat> load into htmlText

Web Standards Design Discuss accessibility, CSS, XHTML and more.

Reply
 
LinkBack Thread Tools Search this Thread
Old July 10th, 2007, 9:16 AM   #1 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2005
Lives in Singapore
Hosted on Pass15
120 posts
Gave thanks: 2
Thanked 0 times
XML with <textformat> load into htmlText

I'm desperate looking for a solution to this:

i have XML snippet

<career>
<![CDATA[please send in by email your cover letter and resume to:
<textformat tabstops="50, 100">
Address\tPerson\tnumber
Address2\tPerson2\tnumber2
</textformat>]]>
</career>

then in flash i use

textField.htmlText = career.firstChild.nodeValue

but it doesn't work. the \t is not formatted and appears as it is: \t

Anyone knows how to get around?
__________________
Regards,
Jake See
Pass15:
http://www.vuox.com
JakeSee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 10th, 2007, 9:25 AM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,058 posts
Gave thanks: 48
Thanked 129 times
Well, CDATA is typically not parsed. Try taking it out of the CDATA and see if that allows Flash to parse it.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 10th, 2007, 11:48 AM   #3 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2005
Lives in Singapore
Hosted on Pass15
120 posts
Gave thanks: 2
Thanked 0 times
I'm so stupid!

I finally managed to fix it.... and I can go bang the wall and die. It's just as simple as press the TAB key on the keyboard!!! Why didn't I think of that earlier.

Thanks H for the clue about not parsing CDATA.

I think I'll just leave it here hopefully it helps another that comes by.
__________________
Regards,
Jake See
Pass15:
http://www.vuox.com
JakeSee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 11th, 2007, 4:09 PM   #4 (permalink)
I love Spicy!
Excelling Contributor
 
Alex's Avatar
 
Joined in Jun 2007
Lives in O-t0wn, Flowda
703 posts
Gave thanks: 27
Thanked 44 times
haha thats awesome, nice to see it got resolved
__________________
Sauce 'em up Surpass Style!


<=== Meet Bonzai, my fish.
Alex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On