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.*

Similar Messages

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

  • Windows opening problem.

    i bought a nootbook, from italy by the name of compaq. VISION AMD, WINDOWS 7,  HP PREMIER EXPERIENCE, DUAL CORE AND AMD RADEONtm GRAPHICS. BUT problem is when i m trying to on my laptop. is showing is opening but few seccend later is coming blank. no respons. then i shutdown the leptop by holding switch, and agian i turn it on . and is showing two option 1. windows recommend and solving problem. 2. is windows opening normal. 
    and i put - num 1. then is takes long time to open the windows. and is like 2 to 3 days this heppening.
    now let me know what i have to do ., and please make it as soon as possible.  thanks.

    Could you please give me the exact model number of your notebook?
    You can use the following document if you need assistance in finding it.
    How Do I Find My Model Number or Product Number?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • New window open problem

    hello
               here with i attached the vi , The main program named front pannel when i run , one error is coming the error image also attached. i want to display the xy graph as separate window when i called(i want to implement -  button press  ) and i want to close it again...like  that i want  to do.....any one give idea. how i want to do ,,...
    thanks.
    indrajit barve
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    test_1_2_3.vi ‏9 KB
    front pannel123.JPG ‏94 KB
    front_pannel.vi ‏25 KB

    sorry mike,
    here with i attached the vi. any how the error is coming..
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    FP Position and Size.vi ‏42 KB

  • 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

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

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

  • 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

  • My project is finish with final cut 4 when i  export on quick time a window open and says (error 34 ) is anyone knows what is the problem tanks DENIS

    my project is finish with final cut 4 when i export via quick time a window open and says (error  34 ) what is the problem .
    i've made many transfers before and every time it was excellent thanks   denis

    Is the external formatted tmac OS Extended?
    It should be.
    Al

  • When I'm using Safari, acasionally the menu bar just disappears. I'm running the latest version of Lion and the latest version of Safari. This is not a full screen app problem. I have multiple windows open. This happens all the time! Firefox is fine! ???

    When I'm using Safari, ocasionally the menu bar just disappears. I'm running the latest version of Lion and the latest version of Safari. This is not a full screen app problem. I have multiple windows open. This happens all the time! Firefox is fine! What the ****? Please help!

    Right, like I'm trying to say, THERE IS NO SAFARI MENU bar. Example: I have multiple applications open, I click on a Photoshop window, the correct menu or title bar or whatever changes. Every other application window I click on brings up the correct "whatever" bar. If I click on the desktop, the "Finder Bar" shows up.
    Everythiing else, BUT SAFARI, works the same way since OS X came out.  This is ridiculous.
    I'm getting the vibe that Apple is trying to get rid of the finder.... this is the way wrong direction.

Maybe you are looking for

  • Should I use a screen protector for an iPhone 6 Plus?

    I just bought an iPhone 6 Plus and can't decide if I want/need a screen protector on it. I take great care of my phones and do not set it carelessly down on any surface.

  • 9i on RedHat 7.1 was successful but i can only open html pages.

    If i take a blank page (index.html) and rename it to (index.jsp) I cannot open the index.jsp. Permissions are all correct and Im not sure that the problem is. Might be a problem with Jserv but I have no idea THanks in advance Adam

  • ITunes freezes when I connect my iPad, what is causing this?

    My iPad continuously boots me out of my apps when i try and use them, Someone suggested I clean it and refill it. My problem is that when I connect it to my PC to sync it with iTunes, my iTune software freezes. I can click on anything with no result.

  • Creating New Smart Playlist by Album name - Missing From Drop Down List

    I hope i'm not the only person with this issue but since upgrading to Windows Vista i have noticed a very annoying little bug with iTunes. When trying to create a Smart Playlist there is no longer the option from the dropdown list to create a smartpl

  • SAP XI Training Schedule

    Hi All, I want to know where I can check the schedule for trainings offered by SAP. Can I know when does the training session starts for XI in any SAP certified institute in Mumbai(India). Regards,