Hello,
I'm trying to build UI dynamically calling XML files. I transfer Qooxdoo
objects through XML files and using qx.client.Builder().buildFromUrl()
method. Find hereafter a sample of my code :
*** Application.js ***
qx.OO.defineClass("custom.Application",
qx.component.AbstractApplication,function ()
{qx.component.AbstractApplication.call(this);});
qx.Proto.main = function(e){
new
qx.client.Builder().buildFromUrl(qx.ui.core.ClientDocument.getInstance(),
"http://127.0.0.1/ui.xml");
};
*** ui.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<qx.client.builder.Container>
<qx.client.builder.Script>
var doc = qx.ui.core.ClientDocument.getInstance();var bs=new
qx.ui.form.Button("hello");doc.add(bs);
</qx.client.builder.Script>
</qx.client.builder.Container>
This code working fine, but I haven't any idea how to debug javascript in my
ui.xml.
For example, if I update the ui.xml with errors (missing quote in the last
javascript line):
<?xml version="1.0" encoding="UTF-8"?>
<qx.client.builder.Container>
<qx.client.builder.Script>
var doc = qx.ui.core.ClientDocument.getInstance();var bs=new
qx.ui.form.Button("hello");doc.add(bs);
alert(i am an error)
</qx.client.builder.Script>
</qx.client.builder.Container>
... this code is invalid but neither Firebug nor Javascript console shows
error. It is very difficult to debug. Have you an idea how to catch error or
debug javascript code in qx.client.builder.Script ?
FYI, I'm using qx.client.builder.Script and not directly call qooxdoo
objects because it is impossible IMHO for example to build tabpanes with XML
tag... i.e.
http://www.nabble.com/Builder%28%29-and-TabPanes--tf2393510.html#a6709833
cheers,
frederic
--
View this message in context:
http://www.nabble.com/Catch-error-in-qx.client.builder.Script-tf2442359.html#a6810040
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel