jQWidgets Forums
Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
Author
-
October 17, 2013 at 9:35 am in reply to: Why call database tree time? Why call database tree time? #30899
Hi Peter Stoev,
Thank you, I check PHP Script good working and i will trail jQWidgets 3.0.3 your guide.
May i use jQWidgets ver. 2.9.3October 17, 2013 at 6:20 am in reply to: Why call database tree time? Why call database tree time? #30881I’am sorry example first it old. yes, initialized in the document.ready function.
It’s working but page start combobox call database tree time line. I’am view from “Chrome” -> “Network”The new sample is here:
<!DOCTYPE html><html> <head> <meta charset="tis-620" /> <title></title> <link rel="stylesheet" href="styles/jqx.base.css"/> <script type="text/javascript" src="scripts/jquery-1.10.2.min.js"> </script> <script type="text/javascript" src="scripts/jqx-all.js"> </script> <script> $(document).ready(function(){ var dataSource = { datatype: "json", url: "/_base/phpHelpers/CRUD.php", data: { sFunctionName: "selectTable", sFrom: "AccessControlDeviceModel", sSelect: "ACDM_ID,ACDM_Name", sWhere: "ACDM_ID is not null" }, async: false }; var dataAdapter = new $.jqx.dataAdapter(dataSource); $('#fdbACDM_ID').jqxComboBox({source: dataAdapter, displayMember: "ACDM_Name", valueMember: "ACDM_ID"}); }); </script> <body> <fieldset id="fsForm"> <legend>Device Information</legend> <div id="fdbACD_ID" data-type="hidden"></div> <table> <tr> <td class="fieldLabel" style="width: 80px;">Name</td> <td> <div id="fdbACD_Name" data-type="text" width="150"></div> </td> <td class="fieldLabel" style="width: 80px;">Description</td> <td> <div id="fdbACD_Description" data-type="text" width="300"></div> </td> </tr> </table> <table> <tr> <td class="fieldLabel" style="width: 80px;">Location Type</td> <td> <div id="fdbACDLT_ID" data-type="selector" width="150"></div> </td> <td class="fieldLabel" style="width: 45px;">Type</td> <td> <div id="fdbACDT_ID" data-type="selector" width="150" ></div> </td> <td class="fieldLabel" style="width: 88px;">IsActive</td> <td> <div id="fdbACD_IsActive" data-type="check" width="90" ></div> </td> </tr> </table> <table> <tr> <td class="fieldLabel" style="width: 80px;">Model</td> <td> <div id="fdbACDM_ID" data-type="combo" width="151" ></div> </td> <td class="fieldLabel" style="width: 83px;">IP Address</td> <td> <div id="fdbACD_IP" data-type="text" width="150" ></div> </td> <td class="fieldLabel" style="width:55px;">Port</td> <td> <div id="fdbACD_Port" data-type="text" width="80" ></div> </td> </tr> </table> <table> <tr> <td class="fieldLabel" style="width: 80px;">Setting</td> <td> <div id="fdbACD_Settings" data-type="text" width="542" height="20" ></div> </td> </tr> </table> <table> </table> </fieldset> </body></html>
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)