How to return a javascript window.open object

Hi all,
I am calling a javascript function to create a window using the External Interface from flex. The function call works and I get a popup window, but I want to return the window.open object that I just created so that I reuse the same window again. I do not want to keep an array of window objects on the javascript side and pass an index back and forth. There will be multiple popup windows that needs to be written to.Right now the return value from the External Interface call is undefined.
Thanks for any help here.
Jerry

Hmmm sound like somthing has gon wrong
if it dont even work local you may have don somthing wrong when instaling the action ??
is the action corectly placed in (GoLive Application Folder) / Modules / JScripts / Actions / ???
What version of GL are you using ??
Nate's FAQ on golive action:
http://www.mindpalette.com/actions/faq.php#Anchor-47857
"3. Why don't my third-party actions work in GoLive CS2?
Because of a bug in GoLive CS2, the JavaScript code from some third-party actions is not automatically added to GoLive's external script library when first used (usually GeneratedItems/CSScriptLib.js at the top level of your GoLive site). To fix, open your GoLive site window and right click on the GeneratedItems/CSScriptLib.js file and choose Update > Flatten Script Library from the contextual menu.
This will force GoLive to update the script library to include all used action code. Re-upload the file to your server and the action should be working again. You may need to clear your browser cache to force the new file to load if you've recently visited the page"
Mayby others have had problem with his action to Try see his forum:
http://www.mindpalette.com/forum/index.php
you may also try this:
1 Open the action as if its a normal document
2 make a small change
3 save
4 change back /remove the change
5 save
6 restart golive

Similar Messages

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

  • Unable to open a seperate java console window with javascript:window.open()

    Hi All,
    I am opening a new window using javascript:window.open() function by clicking an hyperlink in a html document. In this new windows I am trying to load an applet. Only for the first time a java console window is displayed in windows system tray . How can I open a different java console window each time I open a new window ? Basically I want to run each applet in its own JVM and it seems that each applet loaded in new window is using the same JVM and hence only one java console window is seen in my system tray.
    Please help ...
    Thanks & Regards,
    Ravi.

    Hi,
    We are currently facing this exact issue. Did you ever find a resolution?
    Any input would be appreciated.
    Thanks,

  • How do I make New window open maximized the way it used to?

    How do I make New window open maximized the way it used to?

    { Ctrl + B } opens and closes the Bookmarks Sidebar.

  • HTMLbeforeForm= SCRIPT LANGUAGE="JavaScript" window.opener = top; /SCRIPT

    I've found this line of code in my formsweb.cfg file, but to be honest I have no clue what it's doing.
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    Anyone know what this code might be responsible for?

    I have seen this sometimes used to prevent the user being asked if they want to close the window when a javascript command to close the window is issued. Not sure it always works with different browsers or versions.

  • Web.showdocument javascript:window.open

    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    syntax doesn't work on web forms on forms9i
    what could be the reason?

    This is the result of new security restrictions added to IE. This is not an issue with Forms.
    More info can be found with a Google Search. Here are additional references:
    Oracle Bug 3813722 -
    After Applying Ms Security Patch 867801 Javasript In Forms Does Not Work Anymore
    Microsoft:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;884763

  • How do I keep multiple windows open and switch back and forth?

    How do I keep multiple windows open and switch back and forth?

    billyg27,
    if you hold down a Command key and press the Tab key, it will show a set of icons representing your currently opened programs. Press Tab until you arrive at the program you’d like to switch to, and then release the Command key.

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

  • Javascript window.open needs to always open in a new window

    I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
    I have added this javascript to my page html header
    function launchAbout() {
    about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
    return false;
    I then have a html region with the source as:
    A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
    When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
    It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
    Edited by: user531645 on Sep 24, 2009 7:33 AM
    Edited by: user531645 on Sep 24, 2009 7:38 AM

    I was able to fix my problem. I had to change the java script to this:
    function launchAbout() {
    about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
    return false;
    }

  • How do I resize a window opened from a link?

    There is a link which open up a new popup window, how do I resize the browser window?
    Test

    Here is some javascript that opens a new window of size 420 x 240:
                openNewWindow( "", 'newWin',"420", "240", "scrollbars=no,resizable=no");

  • IPad 2 Safari javascript window.open bug

    I am building a web app that uses the PicUp app to upload photos.
    Part of how it works requires me to open a new tab with javascript, which fires some script to open a new url in an iframe on the previous page.
    I have named the 'windows' accordingly, and it works properly on the iPad 1 (Safari).
    But in iPad 2, the window.open function does not seem to take in a target window parameter, resulting in broken UI. The new tab opens, but the script to open a new URL in the other page's iframe does not work.
    My image still uploads, but the user would be confused, as there is no confirmation screen.
    Help!
    PS: I would also like to comment that it is fairly convoluted to have to download a 3rd party app just to handle http uploads, something every other browser can do natively. What is the reasoning behind not allowing iOS Safari to upload like normal?
    Thanks
    John

    Was able to produce a small test case. 
    To demonstrate this problem, there are three pages.  You will need to load window1.html.  That page has buttons to load the other windows.  Make sure all files are in the same directory.
    window1.html
    <html>
    <head></head>
    <body>
    <script>
    window.name='win1';
    var si = setInterval('check()', 1000);
    function check()
        var d = new Date();
        var s = d.toString() + ' hash: ' + window.location.hash + "\n";
        var log = document.getElementById('log');
        log.value += s;
        log.scrollTop = log.scrollHeight
    </script>
    <form name='myform'>
    <input type=button name='cmd' value='Start second window (no close)' onclick="window.open('window2.html', 'win2')">  
    <input type=button name='cmd' value='Start third window (with close)' onclick="window.open('window3.html', 'win2')">
    <br />
    <textarea cols=80 rows=10 id='log'></textarea>
    </form>
    </body>
    </html>
    window2.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from2','win1');
    </script>
    <p>This is window2.html</p>
    </body>
    </html>
    window3.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from3','win1');
    window.close();
    </script>
    <p>This is window3.html</p>
    </body>
    </html>
    Test scenario:
    If you run window1.html, you will see it is updating the text field with the time and displaying the current hash.  If you press the button 'Start second window (no close)', you will see another tab open up and stay there and the window1 text field will display the hash 'from2'.
    You can close the window2 tab if you want now (don't think it matters).
    If you then press the button 'Start third window (with close), the window1 tab is gone and window3 is still up there.  The title bar says it is window3 but it is not even displaying 'This is window3.html'  If I do a view source (using a javascript bookmark), it does show the window3 script but the <p> and text is not there.  Probably died in the script before parsing was finished.  This is the first problem.
    Now load the window1.html again in the browser (type on URL line).  If you press the 'Start second window (no close)", the one that worked before, and click on the window1 tab to view it and display the updating text box, you will see it did not see the hash change.  This looks like that physical tab was corrupted in Safari from the window 3 test.  I just found if you open a new tab, the new tab will be ok to run the second window (no close test).  At least until you run window3 (with the close).

  • 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.)

  • Javascript window.open in adf

    i have tried to use window.open(url, winName) to open a window in ADF,
    i set the same winName but when i call the window.open method every time,
    it always open a new window.
    the code is blow:
    A.jspx
    <script>
    function openWin() {
    var win;
    win = window.open("./B.jspx", "sampleWindow");
    </script>
    <af:commandButton text="open B">
    <af:clientListener method="openWin" type="click"/>
    </af:commandButton>
    when i click the button first time, it open a new window, keep the window opening and click the button again,
    it open a new window too.
    anybody can help me?

    try this in the backing bean of button click action....
            ExtendedRenderKitService erks =
                Service.getRenderKitService(FacesContext.getCurrentInstance(),
                                            ExtendedRenderKitService.class);
            StringBuilder script = new StringBuilder();
            script.append("window.open(\"" +
                          "/MyApp-ViewController-context-root/faces/newSearch.jspx + "\");");
            erks.addScript(FacesContext.getCurrentInstance(), script.toString());
            return null;

  • Javascript window.open always focus back to the main page

    Hi , my web ibanky.com if u click "board" button
    new windows will open when windows load finish
    the brower will bring me back to the main page. why is this the case?
    Thanks

    It seems the focus sometimes goes to the main page because your main page is getting submitted. To prevent the main page from being submitted, try using the following for your Button's onClick property:
    var f = function() {window.open('http://ibanky.com/board'); return false;}; return f();

  • How can i have to windows open at the same time

    i have to applications open and i want them on the same window at the same time but these little triangles show up and only allow me to have one open on my screen, i was able to before however. How can i change this?

    Open the first website you want and then click on "file" and then on "new window." Another window will appear so now you have 2 windows on your screen. Reduce the two windows so that they both fit on your screen. Now click on the edge of either window and then on the book mark of the website you want and that website will appear in that window, and do the same thing on the other window for a different book mark, OR type in a different website name in each of the windows and you will get those websites in the respective windows.
    I know...it seems so easy, but I had to ask someone else how to do it too !

Maybe you are looking for

  • Opening an ICS file doesn't open event in iCal

    Opening an ICS file in Apple Mail no longer opens the event in iCal. I don't recall the last time it worked but I know, in the past, double clicking an ICS file in Apple Mail would open the actual event iCal so you could see and modify it. Now, the o

  • Deduct Bank Commission at the time of F-53 on Net amount

    Hi Experts, My client who want the bank commission deduction at the time of vendor outgoing payment on the net values. the bank commission is fix of Rs. 0.07 Paise  Per Rs. 1000/- The scenario is as below: Client who deduct the deduction at the time

  • JDBC Lookup  with BPM (no operation mapping)

    HI, In my scenario i have to use  JDBC lookup to get the data ,but  here i do not have operation mapping  ( this part i am doing  in BPM).. to select JDBC Look  up communication channel. In BPM i am facing  issue to select  lookup  parameters. -->In

  • Has anyone seen the quirk with iphones, yahoomail and outlook?

    Here's the situation - and not really documented that I can find - I am interested in anyone's solution and if it spills over to apple computers with outlook as well.. I have a friend with a Dell desktop, Outlook 2007, and an iphone. She has att.net

  • How to retrieve appoinments from outlook calendar efficiently

    I can now successfully retrieve different appointments/meetings from different outlook calendars thanks to the documentation provided online. The only issue I have with is its efficiency. The application could handle 100 users and I believe that the