attaches the specified URL to a window
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
myWins.window(id).attachURL("page.html");
// POST
myWins.window(id).attachURL("page.html", null, true);
// POST with params
myWins.window(id).attachURL("page.html", null, {fname: "Mike", hobby: "fishing"});
/* by ajax */
// GET
myWins.window(id).attachURL("page.html", true);
// POST
myWins.window(id).attachURL("page.html", true, true);
// POST with params
myWins.window(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