PDA

View Full Version : Ext.Direct retuning HTML code or something else



mask_hot
22 Feb 2010, 7:54 AM
Currently I have a php page which displays a SVG Graph (generated through a Graphviz binding) .
I'd like to embed this functionnality into a Panel to add some nice features (save to, maybe zooming).

So my question is :
Is it possible to have something like that :


var panel = new Ext.Panel({
html:Graph.genSVG
})


Or the Ext.Direct stuff is currently only usable in data transfert (forms and grids, using stores)?

crp_spaeth
22 Feb 2010, 2:30 PM
The Declaration you wrote down will not work since a Ext.Direct function is asynchron.

A Direct function Call will never return a value received from the server it will just call a callback function when the data is available.

Btw there are ways to do what you described but you have to keep in mind that you do it in a asynchron way!