ExtJS Grid Store HTML

Purdue_Pete
Purdue_Pete used Ask the Experts™
on
Hi,
I would like to get 3rd party html and load it into a store. Is this possible? If so, kindly post sample code.
If not, what workarounds are possible? Data cannot be returned in XML or JSON.

Here are some ways I tried, but failed:
Way #1:
Ext.Ajax.request({
method:'GET',
url: 'http://wwww.gooogl.com',
success: function(response, request){
alert(response.responseText);
this.store = response.responseText;
}
});

Way #2:
this.store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'http://wwww.gooogl.com'
})

});
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hi there! There's a limitation in all of the browser that wont let you do this directly, the reason is: Security.

Take a look at this link bro.

http://www.sencha.com/deploy/dev/docs/?class=Ext.data.ScriptTagProxy

That will work =)
sosamy,
Ah, yes - XSS!
Unfortunately, ScriptTagProxy requires result returned to be in specific format, which I do not have control over.

I guess ServerSide Proxy or IFrame could be used. If ServerSide Proxy, kindly refer the following problem I posted as well and post your suggestions, if any:
http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_26310828.html#a33162241

Thanks,
P

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial