Problem window.opener.doSubmit

Hello,
We have one application, say with URL
http://localhost/some_app
This is not an APEX application.
On this application on click of a button we popup an APEX page (with public access) and when user clicks on "Ok" button of this APEX page we pop the page down and want
to refresh the original application page. We do this by following javascript function from the APEX page
function close(url) {
window.opener.location.href = decodeBIURL(url);
window.opener.doSubmit('REFRESH');
window.close();
We pass the url of the original application to this APEX page as one of the parameters.
This works fine as long as APEX page has URL of the form http://localhost:8085/apex/f?p=101:3, i.e. original application URL and APEX URL both have same hostname part (in the example above localhost ), but moment they are differnet IE pops up another window for original URL.
does anyone know fix to this problem?
regards, Yora

It is impossible to set the value of the file input thing. But if they realy want it in a popup, then you can try something like this:
-1. Put the attatchement list in a iframe
0. Open the parent file with some with somewhere a unique id (like a session id or something
1. Open your child page in a popup, give that uniqueid as parameter ("like child.jsp?id=<uniqueId>")
2. Use regular file input things in that popup, and replace the 'close' button by a submit button
3. Track the submit of the form, show a 'now uploading to server, please wait' message
4. The child page sends the attatchements to the server, stored in a tempory folder named <uniqueId> (store it in the form as a hidden input thing)
5. When the upload is ready, display some message 'files uploaded, close this window to return to your mail'.
6. When the user clicks that 'close' button, close the popup and then reload the attachment-frame
7. The attachment-frame just lists the files stored in that <sessionid> folder, and it seems like the user has added those files to it
If you want i can create an example of it
koentjepoppe
note: if you add the date to that unique id, you know when that folder is created and then you know wich folders you have to delete if the user aborts his mail for example (then those files are still in that folder wasting space)

Similar Messages

  • Problem with Sessions and window.open

    Hi,
    Hi everyone,
    Help Please!!!
    I am working with Sevlet session objects and HTML forms and windows. I have an HTML form for the user to supply a username and password. Once the user clicks submit I need to open another browser window that has no toolbar, no location, no status bar, etc. The user should also be able to go back to that login screen and login again and open a 2nd, 3rd, etc. instance of the application. My problem is that each application is being asigned the same sessionId. I believe it is being asigned to the main login window and thus to the other child windows it opens. Is there a way to work around this? Do I need to make the user open another browser window to login? I need to be able to let the user open multiple instances of the application with unique session ids for each.
    Any insight is GREATLY appreciated on this topic. Anything you can tell me about sessions (Java), IE, window.open would help greatly!
    THANK YOU IN ADVANCE!!!
    MA

    To achieve this, you must introduce another level of
    abstraction to the Servlet specifications. When you
    work with JSP/Servlets you use mostly the HttpSession
    to handle user related tasks, and the aplication
    context, for things that are common to all users. But
    inside the HttpSession scope, you want to create
    containers that have 'smaller' scope and are uniquely
    identified.
    A ipothetical scenario :Let's say that you must have
    multiple connections to several databases, on each
    database user rights beeing diferrent, and you must be
    able to track user actions globaly, and eventualy
    capture a 'Close Application event' and close all db.
    connections.
    1. when the user first accesses the login frame create
    the HttpSession. In the HttpSession object, store a
    Hastable (let's call it 'ConnectionTable'). Each
    object in the Hashtable must identify uniqely a
    database connection. Now, to create unique identifiers
    ids, make the keys in the hashtable java.lang.Long
    objects, created using System.getCurrentTimeMillis().
    This guaranties there will be no possible confusion.
    From each new open window, on each request to the
    server, along with the usefull parameters, send the
    connection identifier. When proccessing the request,
    select the object from the Hastable wich corresponds
    to the ID.
    2. Now, the values in the ConnectionTable, must act as
    the containers that I mentioned in the first
    paragraph. The simplest way to do this is to have
    again a Hashtable derived class to do the job, wich
    exploses methods similar to HttpSession: setAttibute (
    Object key, Object value) and getAttibute ( Object
    key, Object value). This container may use internally
    a Hashtable to store object, and explose only the
    getAttribute and setAttribute methods for clarity. Any
    way, this is a problem of implementation. Let's call
    this class CustomSession.
    Now, a textual activity diagram:
    1 user accesses the main page, you start a new
    HttpSession; In the HttpSession object, store the
    ConnectionTable object.
    2. the user enters the userID and pwd and adatabase
    name, and a new window is opened. Let's supose the
    data entered is valid.
    3. when you process the login data, you create a new
    CustomSession object. you put in it whatever you would
    put in your HttpSession. You generate a unique
    identifier using System.CurrentTimeMillis(). Put the
    CustomSession object in the ConnectionTable, using the
    generated id as key. Send the response.
    ..... later on .....
    100. the user asks for a particular action to be
    performed - e.g. a row deletion. The page contains a
    form with text field where the user introduces the
    row number, a submit button and a hidden input with
    the ID.
    101. you process the data. Get the ID from the request
    object, get the ConnectionTable from the session, get
    the CustomSession using the ID as key, do whatever
    your logic was doing, but obtaining the objects from
    the CustomSession instead of HttpSession
    NicNic,
    Very slick idea. I think that it could work and it seems that there would be not security issues because the id that you would store on the client side is the Unique Identifier and not the actual Session Id. Do you forsee any security issues for this implementation?

  • Problem with window.close and window.open

    I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later.
    BACKGROUND:
    I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector).  These files were created a few years ago using Actionscript 1 & 2 code and everything has worked perfectly until now.
    Here is the setup:
    First, an autorun file on the root of the CD runs and writes a 'trust file' to the 'Macromed' directory.  The autorun next launches 'index.htm' which is simply an html page containing a series of links (topic1.htm; topic2.htm; and so on). Next, let's assume the student clicks the 'topic1.htm' link from the 'index.htm' page.  The 'topic1.htm' link launches a web page (also located on the CD) which contains and displays 'topic1.swf'.  So far, everything works fine.
    Here is where the two problems happen.
    Problem 1:
    I have an 'Exit' button within each swf (remember each swf is contained inside an html page).  The 'Exit' button has always worked properly, but suddenly does not work in Flash player 9.  I am using the following Actionscript 2 code on the 'Exit' button:
    on (release) {
    getURL("javascript:window.close()");
    The 'Exit' button has always worked using this code (and still works in Flash player 8 and lower).  However, it does nothing when played using Flash player 9.
    Problem 2:
    There are links to html popup windows within the 'topic1.swf' file (remember 'topic1.swf' is contained inside 'topic1.htm').  Each popup window contains a swf file that is used to present a demonstration.  When the student clicks the 'demo1.htm' link from 'topic1.swf', an html popup window SHOULD load and display 'demo1.swf' inside the 'demo1.htm' window.  The main ('topic1.htm') window stays open so that the student can return to the topic after completing the demo.  This has always worked properly until Flash player 9.  Here is the Actionscript 2 code
    which I am using on the button inside 'topic1.swf' to launch 'demo1.htm':
    on (release) {
                getURL("javascript:launchWin2('webpage2.html');");
    ADDITIONAL INFO:
    'topic1.htm' contains the following code which is used to support the Actionscript code listed under 'Problem 2' above.
    <SCRIPT LANGUAGE=JavaScript>
    <!--
    var padvar="";
    var childwind;
    function launchWin2(arg) {
    openWin2(arg);
    function openWin2(arg) {
    childwind = window.open(arg,"padwind2","menubar=no,location=no,status=no,scrollbars=no,width=750px,he ight=500px,left=0,top=0");
    //-->
    </SCRIPT>
    I would appreciate any help anyone can offer.  I am wondering if the problem has to do with a need to use ONLY Actionscript 3 code from Flash player 9 onwards.
    Thanks!
    Terry

    You may have '''Switched ON Caret Browsing'''. press '''F7 (on Mac: fn + F7)''' to toggle '''Caret Browsing ON/OFF'''
    * click '''Firefox''' button and click '''Options''' -> Advanced -> General -> remove
    Checkmark from '''Always use the cursor keys to navigate within pages'''
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox
    Check and tell if its working.

  • Session problem in a new window created by window.open()

    hello,
    I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection);
    there is a link on this jsp which will call a javascript to open a new window .
    here is the javascript to open another new window:
    function openReportWindow()
    window.open("/drug/Report.jsp","report", "toolbar,scrollbars,width=800,height=800,left=100,top=10");
    but in the Report.jsp, I won't be able to get the same session object as in the calling jsp ( drugsearch.jsp) by calling session.getAttribute("drugCollection").
    if I change the link on drugsearch.jsp to link to the Report.jsp directly instead of opening a new window, then I can get the same session object from the Report.jsp.
    what's the problem? can someone give me an advice?
    thanks

    A session is assosiated with one client(browser).
    when you open a new browser, a new session is created. In order to have common place for both the browsers, try storing the data in the 'Servlet Context'

  • I purchased an in-app component but it has not downloaded and I cannot seem to contact the seller. I've tried to report a problem but no window opens in which to report the problem. Any ideas?

    I purchased in in-app component for an email program but it has not shown up in the app on my ipad. I tried to report a problem, but no window opens in which to explain my situation. How do I get a message to the seller or to itunes? I am reluctant to re-purchase the component.

    Can you download large files from other places apart from the App store, wondering if it is the App store or your internet connection.
    If it just the app store check this url http://www.apple.com/support/mac/app-store/contact/

  • I am having (2) problems, 1. When I open Firefox, why do 6 to 8 multiple windows open? 2. I tried to update Flash, and now that window opens every time I launch Firefox with a drop menu asking me to install.

    Problem 1: I launch Firefox and 6 to 8 windows open.
    Problem 2: Every since I tried to update Flash this happens. I have done this 12 times, but it still keeps trying to open.

    I'm having difficulty visualizing what is wrong but try some basic steps first:
    Launch Safari while holding a Shift key - this will start Safari with just your Home page
    If you can see Reset Safari from the Safari menu, try that.
    In addition to downloading and installing Safari again, try reapplying just the Snow Leopard Combo Update: http://support.apple.com/kb/DL1399 There is no need to uninstall Safari first.
    Lastly try deleting Safari's Preferences file: ~/Library/Preferences/com.apple.Safari.plist

  • How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please

    how to solve the problem when opening program illustrator cs6
    ERROR: 16
    It is WINDOWS 8.1 / 64 BIT
    help please

    Thanks, Jeff! The file Adobe Setup Error.log contains the following information:
    02/14/14 07:20:26:474 | [INFO] |  | OOBE | DE |  |  |  | 8860 | DEVersion: 5.0.0.0
    02/14/14 07:20:26:475 | [INFO] |  | OOBE | DE |  |  |  | 8860 | Loading library from C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\DECore\DE5\Setup.dll
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    ::START TIMER:: [Total Timer]
    CHECK: Single instance running
    CHECK : Credentials
    Load Deployment File
    CHECK : Another Native OS installer already running
    Create Required Folders
    Assuming uninstall mode
    Lookup for master payload
    [    8860] Fri Feb 14 07:20:26 2014 ERROR
    DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    :: END TIMER :: [Total Timer] took 6.90443 milliseconds (0.00690443 seconds) DTR = 579.338 KBPS (0.56576 MBPS)
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 33 - The product is not installed, cannot uninstall.
    Please see specific errors and warnings for troubleshooting. For example, ERROR: DW040 ...

  • Problem in opening excel file in different window

    hi
    i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
    it give error that file has already used or path not exist OR requisted site either unavailable
    how can i rectified

    Hi.
    I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
    The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
    The file name or path name does not exist.
    The file you are trying to open is being used by another progrtam . close the document in other program and try again
    The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
    Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
    Thanks
    Hitesh

  • I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" I would be thankful if you could help me?

    I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" then I tried to open it but nothing happened.... I would be thankful if you could help me..
    Process:         Numbers [1021]
    Path:            /Applications/Numbers.app/Contents/MacOS/Numbers
    Identifier:      com.apple.iWork.Numbers
    Version:         3.0 (1470)
    Date/Time:       2014-06-27 16:13:23.405 +0100
    OS Version:      Mac OS X 10.9.3 (13D65)
    Report Version:  11
    Anonymous UUID:  243D9264-54B7-E9AE-2F83-D11098965D14

    I have a problem to open my Number Program. this message appear when i try to open"The last time you opened Numbers, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again" then I tried to open it but nothing happened.... I would be thankful if you could help me..
    Process:         Numbers [1021]
    Path:            /Applications/Numbers.app/Contents/MacOS/Numbers
    Identifier:      com.apple.iWork.Numbers
    Version:         3.0 (1470)
    Date/Time:       2014-06-27 16:13:23.405 +0100
    OS Version:      Mac OS X 10.9.3 (13D65)
    Report Version:  11
    Anonymous UUID:  243D9264-54B7-E9AE-2F83-D11098965D14

  • Upon firefox update this morning, every window opens with error: CaptureMovieFox could not be initialized. Some files of the extension may be missing or there is a problem with the Firefox.

    upon firefox update this morning, every window opens with this error in a popup: ''CaptureMovieFox could not be initialized. Some files of the extension may be missing or there is a problem with the Firefox.''
    when I close the popup, the original window opens seemingly without issue.

    http://getfirebug.com/releases/firebug/1.8/
    visit this and find the compatible version of this f***ing firebug. which certainly has nothing to do with us (not-programmers). i have been having this problem for months but now the last link worked for my firefox 6. Find yours here.

  • Window.opener problem in javascript

    Hi,
    I'm using a code for opening a clild window from the parent window. The child window contains some <input type="file"> elements. After setting the values of these file elements I'm closing the child window. But before closing I want to set the values of file elements to the file elements on my parent window.
    The code I'm using is as follows:
    "parent.jsp"
    =========
    function createWindow() {
    window.open("child.jsp");
    return false;
    <form method="post" action="display.jsp" enctype="multipart/form-data">
    <input type="button" value="Add Attachments" onClick="return createWindow()"><br>
    <input type="file" name="file1"><br>
    <input type="file" name="file2"><br>
    <input type="file" name="file3"><br>
    <input type="submit" value="Submit Form"><br>
    </center>
    </form>
    "child.jsp"
    ========
    function returnToMainWindow() {
    window.opener.document.forms[0].file1.value = document.forms[0].filex.value;
    window.close();
    <form method="post">
    <center>
    <input type="file" name="filex"><br>
    <input type="file" name="filey"><br>
    <input type="file" name="filez"><br>
    <input type="button" onClick="returnToMainWindow()" value="Done">
    </center>
    </form> The problem is when I'm setting the values of file control of child window to the file control of parent window using window.opener, it's unable to set up the values. Can someone rectify the problem in the code.

    It is impossible to set the value of the file input thing. But if they realy want it in a popup, then you can try something like this:
    -1. Put the attatchement list in a iframe
    0. Open the parent file with some with somewhere a unique id (like a session id or something
    1. Open your child page in a popup, give that uniqueid as parameter ("like child.jsp?id=<uniqueId>")
    2. Use regular file input things in that popup, and replace the 'close' button by a submit button
    3. Track the submit of the form, show a 'now uploading to server, please wait' message
    4. The child page sends the attatchements to the server, stored in a tempory folder named <uniqueId> (store it in the form as a hidden input thing)
    5. When the upload is ready, display some message 'files uploaded, close this window to return to your mail'.
    6. When the user clicks that 'close' button, close the popup and then reload the attachment-frame
    7. The attachment-frame just lists the files stored in that <sessionid> folder, and it seems like the user has added those files to it
    If you want i can create an example of it
    koentjepoppe
    note: if you add the date to that unique id, you know when that folder is created and then you know wich folders you have to delete if the user aborts his mail for example (then those files are still in that folder wasting space)

  • Window.open problem

    Good Morning,
    I am having problems with the window.open() syntax. My application has 14 pages and is in 3.2. I need the whole application open in a new browser window. I have tested the code with a blank screen on page 101 and it opens correctly. When I put in the actual URL, the window will open multiple windows, where I have to go into task manager and end all processes. Will I have have this code on each page?
    Code below:
    header
    function fullscreen_fun()
    window.opener=self;
    window.open=("f?p=&APP_ID.:101:&SESSION.","","height=350,width=350");
    window.close;
    </script>
    onload="javascript:fullscreen_fun()"I need the entire application open in a new browser window.
    Thanks,
    Mary

    I'm assuming you're talking about Solution 1 in that blog post. The reason that he opens the application's window from a temporary HTML page is to avoid the exact problem that you described initially. By having that code within your application, you're opening a new window to your application which then opens a new window to your application which then opens a new window to your application, etc. etc. Using Solution 1, you'd define a HTML page which opens a new full-screen window to your application, then the HTML page closes itself. You give only the URL to the HTML page to your users.
    If you don't want to use an intermediary temporary page, then Solution 3 is probably the next best - at least it doesn't rely on IE-only. It's simply telling the browser window to resize itself.
    I haven't tested these so I can't speak to any of their applicability. I strictly avoid tinkering with browser behavior via code anyway - it always, always, always leads to trouble. My only recommendation on that besides "don't do it" is to comment liberally, because I guarantee you'll be back in that code someday.
    But please, take a look at the database design too. Nothing you're attempting to do here is going to stop incomplete transactions from being created - only a good database design with solid referential integrity and constraints is going to do that.
    Hope this helps,
    John
    If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.*

  • The last time you opened OpenOffice, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again? i have a problem with open office, if I press reopen, nothing happened  ans i see always this information on my mac? what ca

    The last time you opened OpenOffice, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again? i have a problem with open office, if I press reopen, nothing happened  ans i see always this information on my mac? what can I do?

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • When I try to read a PDF file, the window opens and then disappears after a second or two. This began after the last Adobe update. I tried accepting the Adobe terms using Eula.exe but that disn't solve the problem. What do I do?

    I can no longer read PDF files. The window opens and then disappears after a second or two. This began after the last Adobe update. I tried accepting the Adobe terms using Eula.exe but that disn't solve the problem. What do I do?

    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • I just buy an Ipad2, and I am not able to use my Apple ID to download Apps. Each time, a window open and ask me to fill my billing informations (my Security Code). The problem is every time I put this number and click ''done''...say contact Itunes support

    I just buy an Ipad2, and I am not able to use my Apple ID to download Apps. Each time, a window open and ask me to fill my billing informations (my Security Code). The problem is every time I put this number and click ''done''...say contact Itunes support

    Contact iTunes:
    Apple - Support - iTunes - Contact Us

Maybe you are looking for

  • Photoshop CS3 Program Error

    Since upgrading to Leopard I run Photoshop CS3 and I get a programming error message. I say OK and continue working. It also happens when I use the text tool. Anyone else? Solutions?

  • How do I change the 'Sent' folder to display the persons name I sent to and NOT my name?

    Today BT Mail told me my BT Internet account had been migrated from the old Yahoo (defunct) account to their own new BT Mail.  So I am using IMAP and therefore had to delete my account on my devices and set up again in order to continue to receive my

  • Why is my available SSD space so low on a new install?

    I am building a new system for premiere 5.5.  For my OS drive I chose the new Intel 520 120GB SSD.  After doing a fresh install I noticed my available space on this drive was around 50GB (I can't remember exactly how many GB. I'm away and unable to c

  • Can't open control centre

    I have a Griffin survivor cover on my iPhone 4S and have just installed iOS 7. I can't open the control centre because of the case covering the edge of the screen. It seems strange because I can open the camera from the locked screen which is the sam

  • I want to Prevent a specific URL through My Computer

    I want to Prevent a specific URL through My Computer.No one can access any specific URL which i Block. e.g http://www.yahoo.com i want to block this specific site.Plz help me to block this site.