PDA

View Full Version : unescape and the XMLReader



crpatrick
22 Feb 2008, 12:55 PM
Hi all-

I am using a ComboBox which dynamically retrieves option data from the server as the user types input. This is all working fine, and the data received is XML, so I use the XMLReader.

The data I am getting from the server though needs to be unescape'd. The server send back the control characters to create the html to bold the letters that the user has input and such. Is there a way to unescape data from the XmlReader? Here is how the code looks now:



...

store: new Ext.data.Store({
proxy: new Ext.data.HttpProxy({

method: 'GET',
url: 'http://'+ajaxServerName+':'+ajaxServerPort+'/SSA/servlet/DataLookup?type=company&&'

}),
reader: new Ext.data.XmlReader(
{record: 'result'},
['id','name']
)

}) ,
...


The name field, which is displayed, displays like:

%3cb%3eMOT%3c%2fb%3eOROLA MOT