attaches the specified URL to a cell
url | string | URL to attach |
ajax | boolean | (optional) if set to true, the URL will be loaded by AJAX (async GET), false by default |
postData | boolean|object | (optional) performs POST request (true for a simple post or an object with params) |
/* iframe */
// GET
dhxComponent.cells(id).attachURL("page.html");
// POST
dhxComponent.cells(id).attachURL("page.html", null, true);
// POST with params
dhxComponent.cells(id).attachURL("page.html", null, {fname: "Mike", hobby: "fishing"});
/* by ajax */
// GET
dhxComponent.cells(id).attachURL("page.html", true);
// POST
dhxComponent.cells(id).attachURL("page.html", true, true);
// POST with params
dhxComponent.cells(id).attachURL("page.html", true, {fname: "Mike", hobby: "fishing"});
important notes:
postData param and the ability to perform POST request are added in version 4.0
Back to top