[qooxdoo-devel] Using Xhr object in Desktop application

2014-03-13 Thread jarous92
Hello, I try to write desktop application, which needed to communicate with database. But if I send a xhr request to php file, message error will occurs. Here is the code: forward.addListener("execute", function() { var termin_od = datum_od.getValue().getFullYear() + "-" + (datum_od.getV

Re: [qooxdoo-devel] Using Xhr object in Desktop application

2014-03-13 Thread jarous92
Thank you so much for advice, it works! Can I have another question? How do I read data in php file under specific variable? For example: from JS file goes to PHP 2 variables: date_from and date_to -- and I need use these variables into db query and return result (array of strings) back to JS f

Re: [qooxdoo-devel] Using Xhr object in Desktop application

2014-03-14 Thread jarous92
Hi Richard, thank you for your advice. But I don´t know how exactly save a json format from js file to php array. Example: JS File: xmlhttp.send({test: "someData", test2: "someOtherData"}); PHP File: $array = json_decode($_POST); // I want e.g. $array['test'] or $_POST['test'] or something like

[qooxdoo-devel] Convert JSON string to array

2014-04-05 Thread jarous92
Hello, I have JSON string: var Jstring = "{"1":1,"2":2}"; I need to convert the Jstring to JavaScript array like this: var array = [1,2]; I try this, but unsuccessfully: var array = JSON.parse(Jstring); Best regards, Jaromír. -- View this message in context: http://qooxdoo.678.n2.nabble.c

[qooxdoo-devel] Method to get selected ListItem

2014-04-07 Thread jarous92
Hello, I try to get the one selected item from List. var list = new qx.ui.form.List(false); for(var i=0; i < arrayData.length; i++){ item = new qx.ui.form.ListItem("No. " + arrayData[i], null, arrayData[i]); list.add(item); And this code return "qx.ui.form.ListItem[695-0]": if(list.isSelection

Re: [qooxdoo-devel] Method to get selected ListItem

2014-04-07 Thread jarous92
Hi Christian, thank you very much for advice. Cheers, Jaromír. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Method-to-get-selected-ListItem-tp7585508p7585510.html Sent from the qooxdoo mailing list archive at Nabble.com. ---