dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: CDATA Annoyance

  1. #1
    Member
    Join Date
    Jan 2004
    Location
    Carlisle, UK
    Posts
    94

    CDATA Annoyance

    Hi all

    I have created a plugin for Electro Server with the following code:

    Code:
    	var roomVars = getRoomVariables(zoneName, roomName);
    	var returnString = "";
    	
    	for (var i = 0; i<roomVars.length; ++i) {
    		var roomVar = roomVars[i];
    		var value = roomVar.value;
    		
    		var name = roomVar.name;
    		returnString += name + ":" + value + "%";
    	}
    	returnString = returnString.substr(0, returnString.length-1);
          trace(returnString);
    	return returnString;
    The problem is I need to return the string as a string and it contains some [CDATA] stuff, particularly the roomVar.value.

    Is there any way I can convert roomVar.value to a string, I assume from a CDATA value of some sort?

    I've tried roomVar.value.toString() and it isn't having it!

    Any help would be appreciated.

    JT
    It is confirmed that I am quite sad. I told the wife I was 'loading' the pizza into the oven!

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Carlisle, UK
    Posts
    94
    Anybody?
    It is confirmed that I am quite sad. I told the wife I was 'loading' the pizza into the oven!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center