Show javascript window after closing

Hi,
how to show the "javascript window" with my custom buttons again after it has been closed? I have a submenu with menu item (supposed "Show Buttons"), which calls a function for generating of buttons. After this window has been closed, the customer would select again "Show Buttons" in order to see it again. It is not possible, as the buttons are actually initialized and cannot not be initialized again with the same name. How can solve this issue?
regards,
Alex

There's nothing wrong with creating a document-only toolbar, you just have to add some error processing code if you ever need to display the toolbar after the user closes it. For example:
try {
    // app.addToolButton code goes here
} catch (e) {
   // app.removeToolButton code goes here
   // app.addToolButton code goes here
It's easiest if you make the code that adds and removes the tool buttons into a function.

Similar Messages

  • How to Direct control to application's window after closing the popup?

    Hi,
    I am using 10.1.3. In my application I am unable to direct control to application's window after closing the popup, if I open any other window at the same time.
    For more info see the below step:-
    -> Open any popup in my application.
    -> Open any new window (lets say Google.com).
    -> Now restore popup on Google window.
    -> Now close popup
              - control goes to Google window but not the parent application window.
    How to direct control to the parent window?
    Can anybody help me regarding this?
    Thanx...Abhijit

    Hi Abhijit,
    You can do this using Javascript alone. Below are the two sample files I created.
    main.html_
    <html>
    <head>
      <title>Testing popup</title>
      <script type="text/javascript">
      function openPopup() {
        window.open("popup.html");
      </script>
    </head>
    <body>
      <a hr_ef="javascript:openPopup()">Open popup</a>
      <input id="something" name="something" type="text" value="something">
    </body>
    </html>
    Note: hr_ef should be href. The code tags are messing with the link.
    popup.html_
    <html>
    <head>
      <title>This is the popup window</title>
      <script type="text/javascript">
      function goToMain() {
        window.opener.something.focus();
      </script>
    </head>
    <body onunload="goToMain()">
      This is the popup window. Close this window to return to main window.
    </body>
    </html>The idea is to call a javascript function in the popup window that tries to focus on an object (eg. InputText) in the main html.
    Although, one point to take note is the naming of html objects by by these ADF UI Components. If you named your form id as "*form1*" and input text id as "*something*", your input text id will end up as "*form1:something*".
    Therefore, you will have to tweak the code above to the following:
    <script type="text/javascript">
    function goToMain() {
      window.opener.form1['form1:something'].focus();
    </script>Regards,
    Chan Kelwin

  • Error window after closing Firefox!

    Hi,
    After closing Firefox an error window appears. And after closing that window another smaller one appears.
    Please help me.
    Best Wishes,
    Nick

    What errors are you having appear?
    Try to start Firefox in [[Safe mode|Safe mode]]. This mode disables all extensions, user customizations, hardware acceleration, etc. temporarily for diagnostic and troubleshooting. If Firefox works fine in Safe Mode, then this is likely an add-on issue. Restart Firefox in normal mode, then type "About:addons" (without the quotes) in the address bar. Disable your extensions one by one, restarting Firefox between each one, until you find the trouble maker. Once you do, you can disable that add-on and report the issue to that add-on's developer.
    A few other basic trouble shooting things you can try is this:
    Run all Windows Updates, install all needed service packs, etc.
    Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
    Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. You can uninstall this program after you clean off any infections.

  • Trying to locate "downloads" window after closing window.

    While I am on my online banking websites I often download a statement. Doing so automatically saves a copy of the downloaded item in a window that pops up labeled downloads along with saving a copy on the desk top. Since I do not like me desk top cluttered I often delete the short cut on the desk top right after viewing the statement. If I close the actual window labeled downloads with out clearing the downloaded items when I download another statement at a later date the previous downloads are still there. What I what to know is how I can access the downloads window for viewing a previous downloaded statement once the window is closed with out downloading another statement to gain access to that window.

    You have things just slightly backwards: the version that pops up on your desktop is the actual file, not a shortcut, as you called it. So when you delete it afterward, you're deleting the only copy you downloaded.
    The downloads window to which you referred is actually a part of your web browser, not the Finder. You can reopen that at any time by hitting either:
    If using Safari, hit: Command-Option-L
    If using Firefox, hit: Command-J
    But again, once you've deleted the original file, this browser window serves only as an historical list of everything you've downloaded. It won't help you get to the original file, since you deleted it.
    The solution is simple: change your browser's default downloads location from the desktop to a dedicated downloads folder, one from which you won't feel compelled to delete items. You do that by either:
    If using Safari, go to "Safari -> Preferences -> General" and change the pop-up called "Save downloaded files to"
    If using Firefox, go to "Firefox -> Preferences -> Main" and click the "Choose" button to the right of "Save files to"
    The other option is to upgrade to Leopard, which handles downloads a bit differently than Mac OS X 10.4.x.
    Hope this helps!

  • Application crash on showing alert message after closing document in CS5

    My application crashes when I show alert message after  standard close using IDocFileHandler's close method i.e
    Close( doc, uiFlags, allowCancel, cmdMode );
    Before calling this method there is no crash on showing alert messages.
    i.e just one line before Close() method is called I am able to show alert message. And just one line after close method call , after showing alert message when I  click on OK button of alert message  my application crashes.
    I tried to use errorcode but returned value was fine i.e no error.(Checked GlobalErrorCode and GlobalErrorString before and after close).
    I also tried CanClose method to check but it worked fine.
    I also used IDocumentCommand methods but application crashed without showing  alert message.

    I used PMSetGlobalErrorCode(kCancel) after closing document and it worked.

  • MacBook Pro late 2013 does not show login window after waking from sleep

    MacBook Pro late 2013 does not always prompt for login, but opens directly to desktop, even though security settings are setup to prompt for password after 5 minutes. Up to now, this only has happened on battery, machine goes to sleep or lid is closed, 10 minutes pass, lid is opened and desktop is shown instead of lock screen. Console shows, that the machine was actually sleeping (10 min no log entries) and also does not show any error in regards to login window.
    This behaviour occurs randomly and I could not track down any root cause/behaviour, yet. Sometimes everything behaves as it should.
    Any ideas?
    Thanks
    marcus

    Count me in, I have the same issue, and from what I read here, it looks like a Yosemite/SSD related issue ?
    I'm not 100% sure if it started when I put a SSD in my old iMac 2009 (as a fusion drive) or if that's after that when I upgraded to Yosemite...
    I did disable auto poweroff like suggested in another thread : Mac freeze during the night sleep.
    sudo pmset -a autopoweroff 0
    We'll see if it helps.
    It happens toughly a couple of times a week.

  • Satellite L500 - How to show external display after closing lid?

    Hi,
    i`m using the Satellite L500-120 Notebook, and before installing Windows 7 the laptop had a very comfortable function, when i applied an external display.
    When i closed the lid of my notebook, the desktop was shown on my external display (with the native resolution of the external display), so i didn`t have to
    switch anything at the Control Panel. In Windows 7, i`m missing this function. I already tried to use the Control Panel, but there are no settings, which fits
    with the earlier ones. I can duplicate the display, in order to see my desktop screen at my external display, but with the notebook resolution of 1366 x 768.
    If i extend the displays, then there is only the background image at the external display, but this time with the native resolution.
    So my question is, how to conifgure Windows to recognize that i closed the lid, and that the desktop screen has to be shown on my external display?
    Or do i have to install one of the Toshiba applications, which i had before, that realized this function?
    Thanks for any help!

    Hi
    Im not a Windows 7 user because I will wait until it will be released offical but I hope I can help you a little bit:
    First of all in Power Management you can choose the action what happens if you close the Lid (e. g. sleep, turn off, etc.). This action should be disabled because otherwise the notebook will shut down or something else.
    Then I think you have to install the display driver for your notebook. You can try the Vista driver because the most of them are work on Windows 7.
    Then you should be able to set the correct screen resolution for external monitor.
    A working display driver is important for clone or extends monitors so check this!!

  • Links no longer showing as visited after closing and reopening tab in Firefox, or closing and reopening Firefox browser.

    <p>(Edited to make easier to read)</p>
    <p>Also, if I click on a link and it turns purple then I refresh the page, the link turns back to blue (unvisited / unread).</p>
    <p>Is this something new with version 7?</p>
    <p>I'm using Firefox 7.0.1 (when did it update to this version?)</p>
    <p>In >Options >Privacy tab
    For 'history' I have selected:
    <br>
    Use custom settings for history
    <br>
    Remember my browsing history: (Checked)
    <br>
    Remember download history: (Checked)
    <br>
    Remember search and form history: (Not checked)
    <br>
    Accept cookies from sites: (Checked)
    <br>
    Accept third-party cookies: (unchecked)
    <br>
    Keep until: 'I close Firefox'
    <br>
    Clear history when firefox closes:</p>
    <p>Only selections checked are:
    <br>
    Cookies
    <br>
    Active logins
    <br>
    Cache</p>
    <p>Also, I always have NoScript enabled and only 'allow' on a case by case basis (even for sites I visit regularly) and even this seems to have some sites already allowed when I revisit them (mainly login URLs) when this didn't used to happen.</p>
    <p>My main issue right now though is the visited links not staying coloured purple (read / visited).</p>
    <p>I love Firefox and don't want to change to another browser if I don't have to (Linus / Ubuntu would be my next choice).</p>
    <p>Thank you in advance for any information you can offer.</p>

    <p>Thanks for the reply cor-el!</p>
    <p><b>Make sure that the History is enabled: Tools > Options > Privacy > History: Remember my browsing history</b>
    <br>
    I have selected:
    <br>
    'Use custom settings for history' with only the following options checked:
    <br>
    Remember my browsing history: (Checked)
    <br>
    Remember download history: (Checked)
    <br>
    Accept cookies from sites: (Checked)</p>
    <p>Keep until: 'I close Firefox'</p>
    <p>Then I have this selection:
    'Clear history when firefox closes'</p>
    <p>And the only 'settings' selected / checked are:
    <br>
    Cookies (CORRECTION: I don't have cookies selected because I always manually delete all cookies whenever I close the browser)
    <br>
    Active logins
    <br>
    Cache</p>
    <p><b>Make sure that you do not run Firefox in permanent Private Browsing mode.</b>
    <br>
    Yes, I've made sure that option is not selected.</p>
    <p>My NoScript settings keeps changing to 'allow' sites when I have it set to be always on (to not allow scripts from any sites) and only allow on a case by case basis even with sites I visit regularly. Could this be correlated?</p>
    <p>Why do I have to use html in order for the text separated into sentences and paragraphs, rather than being bunched all together?</p>

  • I use private browsing and passowords not remembered. yet after closing all firefox windows, i can access facebook and hotmail w/o my login info being requested

    it used to ask me for them when i re-opened a window after closing all the previous ones!

    Are you automatically reopening windows from the previous session via session restore?
    *Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    You can set the <b>browser.sessionstore.privacy_level</b> pref to 2 (never) or 1 (non-HTTPS) on the <b>about:config</b> page to disable saving cookies via session restore.
    The browser.sessionstore.privacy_level_deferred pref is used when you do not reopen the previous session automatically via "Show my windows and tabs from last time" and uses the same values
    * http://kb.mozillazine.org/browser.sessionstore.privacy_level
    *http://kb.mozillazine.org/about:config

  • Can i retain my app tabs & tab groups in new firefox window after i close one ??

    Just upgraded to Firefox 5 and used the awesome features of app tabs and tab groups, but ah ! i closed my browser and when i opened it again, everything was lost. :(
    How can i retain my app tabs and tab groups when i open a new browser window after closing the one in which these were created ?
    Will be a great help if we can do it.

    Thx for your answer.
    But when I select the option to empty everything when I close Firefox I can chose what is deleted
    - Cookies
    - Download history
    - Cache
    etc...
    There should be an option for pinned tabs. Especially because this tabs are not simple tabs but tabs you want to keep.
    The only solution I have found so far is to keep emptying everything and to ask to Firefox to start a folder of bookmarks as my homepage (homepage <=> several URLs separated with | )
    But it opens wide tabs and not small pinned ones :/
    We should have the option !

  • I want to have all my tabs return after closing. In Tools/Options/General/ I have' Show my Windows and Tabs from last time' checked, but it does not work. When I open FF again none of my formerly open Tabs show... FF v.4.

    When I open FF up again after I have closed it, I want all tabs to return. In Tools/Options/General/ I have' Show my Windows and Tabs from last time' checked-does not work. In addition, the feedback window fails to 'Submit...!'

    Some things to check:
    #'''Browsing history must be saved'''
    #*Firefox button: Firefox button > Options > Options > Privacy > [X] Remember my browsing history
    #*Menu Bar: Tools > Options > Privacy > [X] Remember my browsing history
    #'''Also make sure you do not clear "Browsing History" when using Clear Recent History or when closing Firefox'''
    #*Using Clear Recent History
    #**Firefox button: Firefox button > History >Clear Recent History
    #**Menu Bar: Tools > Clear Recent History
    #*When closing Firefox
    #**Firefox button: Firefox button > Options > Options > Privacy (checked) > Settings
    #**Menu Bar: Tools > Options > Privacy (checked) > Settings
    #**See: https://support.mozilla.com/en-US/kb/Clear%20Recent%20History
    #'''Make sure you are not in Private Browsing mode''' or '''in permanent Private Browsing mode''':
    #*See: https://support.mozilla.com/en-US/kb/Private%20Browsing
    #'''If you have the'''Tab Mix Plus'''extension''', then disable the built-in session restore.

  • "show my windows and tabs from last time" does not work after upgrade to 8.01

    After I upgraded to the latest v8.01 I have lost all my tabbed sites and even when trying to add them and save them with the Tools>Options>General>Start up>when Firefox starts selected feature "show my windows and tabs from last time" it does not hold the saved sites and when browser is restarted it always loses all the tabs and only shows one tab with Firefox home webpage. I need to have several sites open to work and the only way to do that now is to make sure I click the "Use current pages" under General Option in Tools. It is getting very annoying because I keep changing my tabs to different websites during a session and I am used to just closing the browser, relying on having them all back in when restarting Firefox.

    Make sure that you do not use Clear Recent History to clear the <i>Browsing History</i> when you close Firefox.
    *https://support.mozilla.com/kb/Clear+Recent+History
    *https://support.mozilla.com/kb/Firefox+does+not+ask+to+save+tabs+and+windows+on+exit
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Multiple_profile_files_created

  • Firefox suddenly began asking if I wanted to close all tabs when I closed it, and although my setting is set to "Show my Windows and Tabs from last time" I open up to Google instead of my old tabs. Any solutions?

    I can still recover my old tabs by going History> Recently Closed Windows but I'm worried about when I restart my computer.
    Edit: While trying a reinstall I found out there was another firefox "running" even though it didn't show up in my taskbar. I went into task manager and ended the process. When I next opened firefox three windows opened up to the start page but froze (nothing but a white screen). After closing those from the task manager and trying again I got the "Well this is embarrassing" message and could no longer restore my old tabs. (I'd bookmarked them expecting this to happen eventually) For now everything seems to be back to normal, but this is still a pretty worrisome problem.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"
    * http://kb.mozillazine.org/Session_Restore
    * https://support.mozilla.com/kb/Session+Restore

  • Window Memory usage even after closing windows

    I've included links to a test app that does nothing but
    launch a window, play a sound, close window / repeat.
    When application launches it uses about 20mb of memory. When
    you click on the only button, it will launch a secondary window
    that will simply play a wav file. (I set the volume low but you may
    want to mute it :D)
    After launching and closing the window several times the
    memory usage goes up considerably and *never* falls back a
    significant %. (I got it to about 100MB before I decided to quit
    trying to increase the memory usage. Right now it's been running
    w/o any user interaction since opening about 10 windows and it's
    fairly stable at around 61MB (although that appears to be
    increasing w/o user interaction).
    Does anyone know of any methods I can use to ensure that the
    memory consumed by secondary windows does not just persist forever
    even after closing the window? Is there something I'm doing wrong
    here?
    Example Code:
    http://www.vf-server.com/air/memorytest.air
    (AIR)
    http://www.vf-server.com/air/memorytest.zip
    (source ZIP)
    Note: When I *minimize* the window it looks like garbage
    collection is forced and app drops back to 11MB (on restore back to
    19mb).
    Edit: note in your task manager, application appears as
    JBTest.exe

    You can call System.gc() to force the garbage collector to
    run.
    Try removing the event listeners when they aren't needed
    anymore. I think it is more difficult for the gc to cleanup objects
    when there are host objects (like Sound) refering to JavaScript
    objects and JavaScript objects refering to host objects, so you
    need to be especially careful about those. It SHOULD clean them up
    eventually, but it may take longer for it to figure out that those
    objects are no longer in use.
    You might also clear the secondaryWindow reference in the
    parent document when the window closes. That reference might retard
    garbage collection, too.

  • Dynamic Action on "Get Focus" After Closing a Popup Window

    Hi,
    From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
    How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
    Any pointers will be greatly appreciated.
    Thanks & Regards,
    Ashish Agarwal
    http://www.asagarwal.com

    Assuming that you have a dynamic action in the parent page which refreshes the region
    <li> Make a note of the event which triggers your dynamic action, lets call this event A.
    <li> Create a JS function in parent page which triggers event A when called.
    For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
    Your JS function could be
    function Trigger_refreshRegion()
      $('#P100_REFRESH').click();
    The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
    <li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
    just call the parent page's refresh JS function there using the
      opener.Trigger_refreshRegion(); //whatever was the name of the function that you created.

Maybe you are looking for

  • Weird Behavior in V7, Creating FlashHelp

    Hi All, I am not quite sure how to classify this problem, it could be a RoboHelp issue, or a FlashHelp issue - I don't know, but here goes. Scenario 1      I make changes to the sytelsheet. Changes are saved.      Generate Help.      I can see my cha

  • Upload / download gui-status/dynpro when function group

    Hi All, I'm coding a program where I can download and upload reports and module pools but I tried to do the same with function groups and I found It is different to upload dynpro and gui staus when the objet to generate is a function group. Could any

  • Partitioning of tables  in oracle 1og

    I want to do the partitioning of tables due to increasing their size.Can anyone guide me cn I do it? Is it possible to do it?If possible then how can i do it.plz guide mme with al qeuries. thanks.

  • Problems with signing in

    one day i went to go get on Photoshop Elements 13 and it said i had to pay for it all over again or do a 30 day free trial, i also forgot what my serial number is, so is there a way i can find out what my serial number is by signing in to my adobe Id

  • HT1689 +how can I shut off mail

    I would like to de activate mail temporaily, how can I do that