Simon Bull schrieb:
Hi List Users,

I am migrating an existing dhtml based web-app to Qx.  One of my app's features
is a complex javascript Object that appends - and continually updates - a large
amount of HTML to an existing <DIV> element.

I thought I might be able to migrate this feature to Qx by:

var window = new QxWindow(...);
var viewport = new QxHtml("<DIV id='viewport' class='viewport' ></DIV>");
window.add(viewport);
myComplexJavascriptObject.bindToElement(getElementById('viewport'));

However, I was surprised to find that there was no <DIV id='viewport'> in the
DOM.  In fact - according to the Firefox DOM inspector - there was almost
nothing in the DOM at all! Can somebody explain roughly how Qx renders its widgets?
And also, is it possible to use the HTML output of existing (non-Qx) javascript
classes as the contents of a QxWindow?

QxHtml can handle all HTML content. Wherever it comes from.

You must be sure that you add your windows to a parent widget (eg. the QxClientDocument)

This should be clear as all the examples do it the same way.

You can also use QxNode instead of QxHtml if you want to use an existing node which has an html node ID.

Sebastian



Thanks,

Simon






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to