![]() ![]() The string is used by AgpScriptHelper's openWindow() method. The following code shows the features() method, which returns a string that specifies the features of the window to open. ![]() The agScriptHelper methods perform tasks that are similar to JavaScript functions, saving you from having to write JavaScript code directly (such as when you need to manipulate browser windows). This example uses the agScriptHelper utility object's various openWindow() methods. See the chapter on advanced page topics in the Programmer's Guide NOTE First make sure that database is running on your localhost SilverStream Server Using openWindow(url, window, features, query, orderby)Īpplying request information to the page in the window Using openWindow(url, window, features, params) ![]() How to open a page in new browser window and specify the features of that window. If so, use the window’s name stored on the form.Opening and Closing Windows Using JavaScript html, I added a text field (could be a hidden field), removed the closeMe() function since that was an epic fail! and modified the closeChild() function to look and see if the reference was lost. If we store that on the page, we can use it to get a reference again!īelow, in. You will notice I had a variable called “childname”. If the parent is refreshed, it loses the reference to the child and the parent cannot close the child. ![]() I hope this simple example has cleared a few thing up. Scripts may not close windows that were not opened by script. Since the child window was opened with script, window.open() it can close itself.Since the parent was not opened with window.open() it cannot be closed using window.close() or self.close().Since we opened the child using a script, and had a reference handle to that child (in the variable “child”), by the MDN statement, we were able to close it using the handle to the window.close() ( child.close() ).A child window opens as separate window as a tab, just as before. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |