Window.opener question

Hello,
I understand that the windeo.opener reference the parent window. My question is, if I have a parent page and this page calls page2 and page2 calls page3, how can I reference the parent page from page3?
I am using window.opener."the applet name" but I get an error:
Something like:
The callee server is unavailable and has disappeared.
Can anyone help me solve this problem??? Please let me know if I can provide more information..

When working with javascript in multiple windows like this, it is very easy to get lost.
I think what you missed in accessing your applet was a "document" object.
There are a couple of hints for writing javascript:
1 - you can type javascript into the address bar like so:
javascript:alert(window.opener)
You then follow the path to the object you want as long as you can. Build it up slowly, so you see where the chain breaks.
javascript:alert(window.opener.opener)
javascript:alert(window.opener.opener.document)
javascript:alert(window.opener.opener.document.applets)
javascript:alert(window.opener.opener.document.applets.length)
2 - General design: Don't reference stuff on other pages - call functions on the page only.
Rather than calling window.opener.opener.document.applets[0]. (ie referring to the applet from window 3)
do this
window.opener.opener.saveApplet() (from window 3 call the saveApplet function on window1)
and on the first page have
<script>
function saveApplet(){ 
document.applets[0]. ...
</script>
This provides a sort of interface for other pages to use, so they don't have to refer to details on the page.
If you change the layout of the page, or the name of the applet etc etc, you only have this one place to modify it. It can save you a nightmare in javascript errors later on.
Good luck,
evnafets

Similar Messages

  • Open Question: question to those who comment about the lack of apps for Windows Phone 8

    We have read every Lumia review and we are listening. An open question to those who comment about the lack of apps for Windows Phone 8.Tell us which apps you miss? Nokia/MSFT Customer Care

    The major apps that are missing are Banking Apps.  There are a few, but major banks like Regions Bank, Capital One Bank, are nowhere to be found for Windows Phone.  Microsoft should be pursuing these banks to develop apps for the platform.  Maybe bribe them with free software or tech support or something.  Also some of the dating apps like Grindr for the gay community, Blender for the straight community, are lacking as well.  Perhaps Microsoft could assist them in developing the "unified" app for both Windows and Windows Phone?
    In fact, Microsoft would do well to begin a "Developer Assistance Program" where developers could (for a small fee) contact the DAP Center and get assistance with issues creating apps for the Windows Platform.  If developers know they have a source to go for assistance, they may be more inclinded to develop better apps.

  • This question is for another computer. The verizon manager window opens and says a connection exists, but Firefox spins it's connection circle, but can't seem to resolve the website on screen. What's the problem?

    I tried to upgrade my verizon manager software before with a similar problem. But, somehow by deleting the new version back then, and reinstalling the original older disk version, I had restored functionality with Firefox. This time, I accepted firmware updates to the modem as well as updated Verizon's Manager interface for broadband and I'm still having the problem and can't get Firefox to work with the Verizon manager. A broadband internet connection on these computers is my only option. But how come the Mozilla connection still works with the same modem on my netbook, while no longer working on the laptop? Please help trouble shoot. Thanks. - Ted Rickles

    HI,
    Back up all your important data on all accounts and perform either an Archive & Install or Erase and Install, instructions here.
    http://support.apple.com/kb/HT1545
    First, boot from your install disc and run Disk Utility in case there are errors on the startup disk.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    *(Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)*
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your start up disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. *Make sure there is always 10% to 15% free disk space*
    Carolyn

  • Installed Adobe dlm add-on and now Firfox will not open. I see the process starting in Task Manager but no window opens. Unistalled Firefox then re-installed but still no luck. HELP ME!

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/793259]''
    I installed Adobe dlm add-on and now Firefox will not open. I see the process starting in Task Manager but no window opens. Unistalled Firefox then re-installed but still no luck. HELP ME! I do not want to use IE! I presume it has something to do with Adobe DLM as ever since then it is not working.

    I had this problem for a couple weeks as well and it was extremely frustrating considering we use firefox for all our company tasks. Here is the solution:
    First of all if you have no bookmarks you want to save, then go directly to step 7. If you want to save your bookmarks first, then follow these steps.
    1. Shut down the computer
    2. Reboot and open firefox
    3. Go to Task Manager, right click firefox.exe, and click END PROCESS TREE
    4. WAIT 30 SECONDS! Then Double-click the shortcut to try and open firefox again
    5.Repeat steps 3 and 4 until firefox finally opens (trust me, eventually it will)
    6. Once it finally opens, backup your bookmarks,
    7. Download a copy of firefox from there website
    8. Uninstall from programs menu and make sure to check the box REMOVE ALL COMPONENTS
    9. install the new copy and BOOM! it works
    If it doesn't work, you're an idiot. If you don't want to reinstall firefox, then you're out of luck. Good Luck!

  • When I click on the - fire fox disappears from the task bar; it is still open but gone from the task bar, if I click on any icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Question
    When I click on the - to minimize fire fox, it does not close the window but the firefox icon disappears from the task bar; it is still open but gone from the task bar, if I click on any other icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Window.open function in java script used to open the BI report from APEX

    Hi,
    I have some oracle reports now which I converted to BI publisher and the reports are now in BI publisher.
    My question is
    To open the BI report from APEX using a button the following code i have written
    window.open
    ('http://bipubdvserver/xmlpserver/testreport/testreport.xdo?_xpf=&_xpt=1&p_dept_no=&deptno',"mywindow");
    I want to pass the parameter deptID dynamically to call the BI report.
    But when I click on the button it is showing the file open/save dialog box without accepting the parameter and finally showing the blank pdf.
    but I want to enter the parameter value dynamically that is when click on button it should allow me to enter the deptno eg. 10 then should show the data related to dept 10 in pdf..
    how to accomplish this could you please help me.
    thanks very much in advance.

    i got this please ignore the post.

  • When a window is open and I try to go to a new bookmark or a link in an existing site, the new window opens behind the old window.

    It isn't every time, and sometimes doesn't happen for a long time, then I'll go to a bookmark or toolbar link and the new window opens behind the one I was on. Example: I just opened a second window (CTRL N) and clicked on a bookmark. It opened a new window behind the one I'm on as I type this. I did the same steps again and it opened the new window in front of this one. It doesn't seem to make any difference which site I start from or go to or if I use CTRL N or let the bookmark do the opening.

    This can happen if you have a tab open in the main browsing window that uses the plugin-container process (e.g. Flash).
    *[[/questions/977544]]

  • [E2013] [MailApps] [JS] [Windows]: window.open from a mail app fails in Chrome and Firefox but works in IE

    I develop an Office Mail App which is used in Exchange 2013 On-Premises in my test lab. The mail app is hosted on IIS 8 (Windows Server 2012 R2) in the same LAN and ActiveDirectory domain.
    Opening popup windows from the mail app does only work in IE, not in Chrome and Firefox.
    Here are the details:
    The following server and domain names are changed to hide our internal names. I adjusted the error messages accordingly.
    Exchange 2013 is available at https://e13.some.dom/owa...
    The app content comes from https://server.some.dom/...
    Both the app and exchange server have valid SSL certicates.
    Both server URLs are listed in the popup exception lists of the browsers I use.
    The app generates html with an element which uses onclick to open another item in the same mailbox in a new browser window. Like so:
    <a onclick="window.open('https://e13.some.dom/owa/#viewmodel=ReadMessageItem&ItemID=SomeValidID', '_blank', 'width=600,height=400');">click me</a>
    Clicking that link in Internet Explorer (11.0.9600.17105; Update Versions: 11.0.7) opens a new browser window and shows the message specified with "SomeValidID". All good.
    When I use Chrome (Version 34.0.1847.131 m) the popup browser window opens. I see some progress text "Starting..." and "Almost there..." and then this error:
    something went wrong
    Sorry, we can't get that information right now. Please try again later. If the problem continues, contact your helpdesk.
    X-OWA-Error: ClientError;exMsg=Blocked a frame with origin "https://e13.some.dom" from accessing a cross-origin frame.;file=Error: Blocked a frame with origin "https://e13.some.dom" from accessing a cross-origin frame.    at Error
    (native)    at new _a.$SQ (https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91:301915)    at Function._z.$GG.$544 (https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91:662161)    at Function.Program.main
    (https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91:663563)    at invokeMain (https://e13.some.dom/owa/?bO=1:549:25)    at https://e13.some.dom/owa/?bO=1:601:15:552
    X-OWA-Version: 15.0.847.32
    X-FEServer: E13
    X-BEServer: null
    Date: 1/2/1601 2:52:00 PM
    Firefox 29.0 pops up the window as well. Shows "Starting..." and "Almost there..." and then this error (some text is german although the mailbox language is set to english, its basically the same error intro text like in Chrome):
    Da hat etwas nicht geklappt.
    Diese Informationen können wir momentan leider nicht abrufen. Bitte versuchen Sie es später noch mal. Kontaktieren Sie bitte Helpdesk, wenn das Problem weiterhin auftritt.
    X-OWA-Error: ClientError;exMsg=Permission denied to access property 'popOutManager';file=_a.$SQ@https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91_z.$GG.$544@https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91Program.main@https://e13.some.dom/owa/prem/15.0.847.32/scripts/boot.0.mouse.js:91invokeMain@https://e13.some.dom/owa/?bO=1
    X-FEServer: E13
    Date: 08.05.2014 11:58:34
    In Firefox I see the popOutManager-access with "permission denied", but the popup window itself was already opened.
    Seems like the opened popup window tries to open another window?
    When I open up a new browser window in Chrome or Firefox manually and paste the URL (https://e13.some.dom/owa/#viewmodel=ReadMessageItem&ItemID=SomeValidID) manually in the address bar the message is shown correctly, so the URL itself does not seem to be
    the problem.
    Double clicking on messages in Chrome and Firefox opens those messages in new windows as well. So it does not seem to be a general popup problem in Chrome and Firefox as well.
    Any ideas how I get the popups from my mail app working in Chrome and Firefox as well?
    SvenC
    -- SvenC

    Hi
    I face the Same issue then I found that at the end of URL we  use "ispopout=1", I just remove this query string variable ant its work fine 
    The important thing is not to stop questioning - Albert Einstein

  • Open in new tab on right click fails to open in the current window when used in a dependent window called with window.open command from original window this worked fine until ver 4.0

    i have been using this page in all versions of firefox until ver 4.0 and it has worked fine
    https://npwas.com/dummy/charts/charts.html
    when this page is loaded enter a stock symbol in the text field "AAPL"
    then click one of the lower links --"Yahoo Headlines"-- and another window is opened with this code
    - function yahoolink(sqlstring, winnum) {
    - var myurl = "http://finance.yahoo.com/";
    - var mysymbol = document.SymbolForm.symbol.value;
    - var mysrc = myurl + sqlstring + mysymbol;
    - var mywindow = "mywindow" + winnum;
    - //alert("mywindow- " + mywindow);
    - if (sqlstring == "mb/")
    - mysrc = "http://messages.finance.yahoo.com/" + -sqlstring + mysymbol;
    window.open(mysrc,mywindow,'resizable=yes,titlebar1=1,toolbar=1,scrollbars=1');
    all this works but when i right click on a message or news item and select "OPEN IN NEW TAB" - it fails to open the tab in this current window it opens it in the parent window --
    the way i have always used this is to able to select news and right click all news items to read as new tabs and have all news items or messages to be grouped in the child window
    this is now broken or do i need to recode something??
    https:\\npwas.com come is my secure server and you may load the page and see the code
    so far i really love ver 4.0 especially the sppppppeeeeeeeeed!!!!
    keep up the great work
    thanx in advance
    tojo

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Window.opener doesn't work

    I have a website that seems to have just broken with the 18 or 18.0.1 release. The specific code that is breaking is a call to window.opener.
    The error I see in the console says: TypeError: window.opener.Assignments is undefined
    I checked this with IE and FF on our test servers as well as our comparison server (runs last releases version of the code) and they all have the same problem so it's not something that changed in our codebase.
    Can anyone tell me why there are javascript errors on calls to window.opener with the latest release and how I can work around this?

    I think I found the answer to my own question. In case anyone stumbles on this and it's useful.
    I think the problem was that the code was calling window.opener.form when it appears in firefox you have to call window.opener.document.form. Since both work in FF and IE and since it seems there are only a few places in the code where we aren't calling window.opener.document I'll just update the code to do that.

  • HT2506 Hello I'm unable to open any pdf's with preview window opens up with message file couldn't be opened because you don't have permission to view it (none of the pdf's have any security thanks if you can assist

    Hello this week I'm unable to open any pdf's with preview, when I select to open a window opens up with message "file couldn't be opened because you don't have permission to view it" none of the pdf's have any security thanks if you can assist

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • How do I have two windows open side by side in Mountain Lion

    I want to open two windows side by side for comparison purposes.  Can anyone tell me how to do this please?  BUT when I input something into one window, I don't want the other window to close.  I know this can be done on my Windows laptop but I'm now using Mountain Lion on a new Mac - maybe it's something I have to learn to do without.
    Any help would most appreciated.
    Thanks Sue.

    You want to have two browser windows open at the same time?
    In Safari, just type command + n, and a new Safari window will open. You can use either window independently.
    (Trust I have understood your question.)

  • Is window.opener still supported in FF 11 and 12?

    Is the javascript function window.opener still working in FF12? I get a reference to the popup window itself instead of the window that opened the popup.
    Thanks a Bunch,
    B.

    hello, i think it should still be supported, since it's listed on MDN without caveats [https://developer.mozilla.org/en/DOM/window.opener]
    for detailed questions about web developement you can also consult the [http://forums.mozillazine.org/viewforum.php?f=25 mozillazine forum] (probably best with a sample of your code), since the folks there will probably know more about it than we do...

  • Having multiple query windows open at once.

    I wasn't sure how to phrase it so after some digging I'm resorting to asking on here.
    I've been working out of the 'Joes2Pros' series and I work within SMMS with SQL standard installed locally for playing.
    Most of the time I like to have multiple query windows open to save queries to reference later just for examples.
    My question is that is there a way to ensure a query window is not using any databases so that when I run the lab setup scripts for Joes2Pros I don't encounter any errors without having to close my other query windows?
    Any help is greatly appreciated! Thanks in advance.

    You can accomplish this multiple ways:
    1. Have your windows open with the database context set to master (select master DB in the dropdown on the toolbar) 
    2. "USE master; go" statement as the first line in all your query windows
    3. Before you run your setup scripts, issue a kill command to terminate all other query window sessions (this will still keep the query windows open but they won't be connected to any database)
    Satish Kartan http://www.sqlfood.com/

  • Window.open always opens a child window with parent window propertiesin firefox 30

    By clicking on a link my code uses window.open which should open the response in child window. I am not specifying any height and width(as per requirement). In firefox alone, the window takes up the properties of child window and opens with same size as of parent window. Is there a way to restrict Firefox from inheriting the properties of parent window?

    Hi prajulakc,
    Thank you for your question. Currently the active window selected when you create a new window that new window will take the active window's screensize.
    You can add a preference: see also [https://support.mozilla.org/en-US/questions/754273 question/754273]

Maybe you are looking for

  • Help needed in query tuning

    Hi All, I am using the following queries in formula columns of a 6i report. The query count for these queries as seen from the trc file is very high, which is causing performance issues in the report. Can anyone please help me to tune these queries.

  • How to restrict some Users from certain fund centers & commitment items....

    HI Experts I want to implement authorization in my FV60 and Fb60 tranactions, my Funds managment is active and i want to restric user in Funds Center and as well as some commitment item. I have some idea of Authorization group and after defining a Au

  • Query taking long time

    Hi I have a query in which, its a 3 table join but takes a long time to execute. I had checked with plan table.. it shows one of the table is FULL ACCESS. I have 2 clarifications. 1. Will the status checking as NULL - (it shouldn't use index) 2. Is t

  • Plug-in 1.4 Fatal Error

    I had installed the 1.4 JRE on W2K and later removed it. I had actuall removed all Java from the system and then reinstalled the 1.3.1_04 SDK with it's JRE. Every time I try to start an Applet based application I get a Plug-in 1.4 fatal Error - The J

  • Picassa Album to iphoto

    Good evening! I am trying since three weeks to download photo albums from Picassa. I succeeded to download pictures by pictures. Does anyone know how to download a photo album from Picasa to iphoto? If anyone can help me, it will be really appreciate