Forms behavior when closing browser or forms, javascript

Hi
I want to be able to run Jinitiator in separate frame, but with the possibilities to close the browser when closing the forms and in on the same html page I would like to have the possibilities to fire a message if the end user try to close the web browser directly (not by closing the forms).
I find in the forum solutions for the two constraints but if I try to put this two behavior together: message fire even when I close the forms because the post-form trigger try to close the browser. I try to put condition on the alert with a variable but do not succeed. how could I manage to setup the two behaviour together?
Is it possible to put condition in javascript to see if the end-user close the browser via forms or via the browser?
thanks

I've installed the FormsStart utility...and it looks great.
However, if I have separateFrame=true, when my forms application starts, it opens 2 applet windows.
If I have separateFrame=false, everything looks ok except that when I alt-tab to a different application and return - my focus is not returned to the field that the cursor was in.
Is this something inherent with having separateFrame=false? Is there a way around it?
Cheers,
Dave

Similar Messages

  • Invalidate session when closing browser

    Hi All,
    Please anybody help me regarding session invalidate in servlet(web application) when closing browser.
    how can do this.
    Thanks,

    It can't be done in pure servlet because browser closing event is not caught be servlet. Google for JavaScript's onBeforeUnload event and invoke Ajax call to invalidate the session - this is the only way to handle this.

  • Form 11g - Is is possible to block specific forms access when user directly type form name in url ?

    Hi everyone,
    We have XXF000.fmb, XXF001.fmb , XXF002.fmb , XXF003.fmb in 6i.
    For migration to 11g , we recompile these forms and move fmx to 11g form server under form_path.
    In 6i , we login for validation & responsibilities control in XXF000, So we can use account info to verify if user have priviledge to access XXF001, XXF002 and XXF003.
    But in 11g , we can access these forms vial url request , such as : http://<host>:<port>/forms/frmservlet?form=XXF000   ; http://<host>:<port>/forms/frmservlet?form=XXF001  ... etc
    These may cause some unexpected access and operations in functions.
    Is is possible to block specific forms access when user directly type form name in url ?
    Thanks.
    Hendry

    You need to alter your formsweb.cfg file, either directly or through the Fusion web interface. You need to set the following parameters:
    #this sets the default form for your application
    form=yourmenuform.fmx
    #this stops these parameters being entered in the URL, seperate different parameters with commas
    restrictedURLparams=form,pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log

  • Popup to confirm when closing browser window?

    Hi
    I want to display popup confirm window when closing browser window, "changes will be lost" yes or no. for this i searched forums got some idea, about "WORK PROTECT MODE". this will work only when our application running from portal. my doubt is where should i write code for this??? any help
    Thanks,
    kris.

    Hi Thomas,
    We are on ECC6.0 enph5.
    In system configuration in epc.loader(service) the value for work protect mode is set as 1 - Protect unsaved data (open page in a new window) 
    1)Is it possible to override this value within WD ABAP application? for example show popup window when there is unsaved data
    2)In this scenario what is the significance of L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    and   L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
    3)Where exactly  L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG has to coded. It does trigger modify method of the view.
    Thanks,
    chamu

  • How to show a confirmation when closing browser window in jdeveloper11g

    Hi
    I'm Using Jdev 11g
    How to show a confirmation when closing browser window in jdeveloper11g
    Regards
    Abhilash

    Abhilash,
    My goodness...
    Didn't search the forum, eh? In fact, didn't even look at the last 5 or 6 posts - this was posted by another user within the past few hours.... Giving a message while closing a jspx page.
    John

  • Closing Browser on Forms Exit

    Can anyone tell me how to close the browser(IE or Netscape) when exiting a Forms 9i Application?
    I call EXIT_FORM to exit the last form in the App but then have to manually close the browser.

    In your Post-Form trigger you can use Web.SHOW_DOCUMENT('javascript:window.close()');
    [Check the exact syntac of the Javascript command that's off the top of my head.
    Note that the browser will pop up a dialog asking you if you want to close the browser unless the Browser window was opened using JavaScript in the first place.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Trigger Javascript when closing browser window from CP8

    I worry this isn't possible but here goes....any help would be incredible.
    Recently I was given some great advice on how to trigger a Javascript action in the frame on our LMS which the Captivate file plays in.
    It works perfectly and on the final page triggers the Javascript which send usage back to the LMS and forward the user to a page which allows them to rate the course.
    The code was as follows:
    top.code.closeSCOContent();
    closeSCOContent() is something written into our LMS.
    However the obvious issue occurs when a user just closes the browser window and for some reason our LMS doesn't record any bookmarking or any data.
    The only way it seems to do this is if that function is called.
    So using the window.onunload() or the DOFinish; function is there a way I can edit any file in the Captivate output to trigger this function when closing the browser?
    Long shot I know but currently the best I have managed is getting the course to trigger this as soon as it loads rather than closing the window?
    Massive thanks in advance for any advice.

    Any solution to ensure the data is written back to the LMS would solve the issue.
    Currently when the close button is pressed nothing happens at all and it's a big problem.
    Triggering this .closeSCOContent() function would be the ideal, but if it's not possible anything to write back would be best.
    When you say <body onbeforeunload="top.code.closeSCOContent();">
    Do you mean putting this in the HTML file of the output which currently is:
    <body bgcolor="#f2f2f2">
    and change this to:
    <body onbeforeunload="top.code.closeSCOContent();" body bgcolor="#f2f2f2">

  • Need to clear form automatically when closing, otherwise it reopens with the data showing.

    I have just completed my first form A9 (address is)
    http://www.financialcounsellors.org/HUGS_Application_Form_to_FCAWA_3_pages.pdf
    I have a clear button which works fine (If the user remembers to use it)
    The problem is IF the user forgets to use the clear button. THE NEXT TIME the form is opened the information is still visible ?
    How can I set it so as the form will automatically clear when closing.
    Help..Please anyone.

    Not sure if this is what I.m after steve. The object is for persons to fill out the form on the web and then print it.
    The form will then be closed. Will makeing the form read only do that?
    I'm new to this so am still getting to grips with it.
    1. There are options in Acrobat to make fields Read only but how would you make the whole pdf document read only and still be able to do the functions I just outlined ?

  • Closing browser window with Javascript

    In our Forms application, we have been using a line of Javascript in POST-FORM to close the browser window after the form is closed. After installing Windows XP SP2, this no longer works and my understanding is that putting the code in a standalone HTML file, and calling this file from POST-FORM will work.
    1. Where does this HTML file reside? My guess is
    {ORACLE_HOME}\forms90\server
    2. How is this script invoked? I guessed it would be
    WEB.SHOW_DOCUMENT('close.html').
    I'm clearly wrong, as this does not work!
    Many thanks in advance.

    You might also want to look at the following thread:
    Re: IE message "The web page you are viewing is trying...
    It refers to the addition of some JAVASCRIPT to your formsweb.cfg file which resolves the problem of the IE message "The web page you are viewing is trying..." from being displayed. It still may not work if you are running seperateFrame=True though, I have detailed the problem I'm experiencing in the associated thread.
    I'd be interested to hear if you can get round the display of the message if you are running in a separate frame.
    Richard

  • Attachments are missing in form later when you view the form

    Hi All,
    we have developed the application with webdynpro java with adobe interactive forms, we have implemented adding attachment to adobe form . I have two problems related to adobe attachments.
    1)  once files are attached to form and submitted the form data. Later when you view same form , if you look at the attachments . Files are available. But in the same webdynpro form where the adobe form is rendering has back button.
    Once you click on the back button and again if you display the same adobe form and try to look at the attachments. But attachments are missing. the attachments not able to see till i close that browser and open the the application in new browser. Some thing causing the issue click on back button and try to revisit the same adobe form to see the attachments in file.
    2) Another problem is  file names with attachments. once files are attached to form and submitted the form data. Later when you view same form again attachments are missing. In case, if any of the file name have the special characters like " %, $, &". for example if i attached three files to form , but only one of the file names has the special characters, then the whole three files are missing when you look at the attachments in the form.
    Please let me know what could be the issue. How to resolve it.
    One quick solution for the 2nd problem is , Prompting the user with warning message, while attaching any files to form have the special characters to file name.  what is the logic need to be write, where need to write.
    Please answer to this

    John,
    thanks for the reply, can Please elaborate  your question.
    How i will add the attachments to the form means, we have online forms for submit the data , while submitting the data , all the relevant documents or files  related to request will be attached to the adobe form , click on  attache icon available in adobe form.
    thanks
    vijay

  • Lose form data when combining PDF fillable forms

    I would like to combine into one PDF document two completed form-fillable PDFs. The PDF forms have identical fields, but the data collected on the forms (from different users) is different, of course.
    When I add the second form to the PDF document containing the first one, the data from the second form is erased and replaced by the data from the first.
    So, I end up with a PDF document with two forms containing identical user data.
    I suspect Acrobat is freaked out because the forms contain the same field names or something. I know I can solve this by making a new PDF from the form-fillable PDF--flattening the layers, in Photoshop-speak. Is there another way to solve the problem?

    With Acrobat forms form fields with the same name and type will change together. This has how Acrobat forms have worked since they were introduced.

  • Prompting users for confimation when closing browser window

    Hi All,
    I would like to prompt the user with a popup-screen asking for confirmation that he wants to close the browser when hitting the browser-close ('X') button. Is this possible ?
    If the user chose to cancel the browser window shoud remain open, with all content as it was... and of course if he chooses to continue the window should just close.
    the WDA app is straight forward, and not running inside the portal.
    Thanx in advance
    -Tonni

    Hi Tonni,
    I thought I should add - the portal does implement a work protection mode that does allow you to prompt users if they navigate away from your page - and one of the best ways to implement that is through the FPM and its work protect mode interface.
    However, that still doesn't help, I'm afraid, in the case where you're trying to stop the user closing the browser window...
    I should also point out that some browsers do indeed produce an event which can be trapped on close of the window, and have been hugely exploited by website designers - to the extent that later/better versions no longer support it. Remember the web pages that when you closed spawned 3 more, and those 3 more etc. etc.
    Cheers,
    Chris
    edit:  also worth pointing out that the "Close" button provided within a portal session by the FPM is a form of navigation and can be trapped. Likewise any internal navigation button that perform the same sort of thing within your app.
    Edited by: Chris Paine on Mar 29, 2010 3:08 PM

  • Prevent losing data when closing browser

    Is there any possibility to catch an event when user tries to close the browser window?
    I would like warn the user to save data before closing the form window.

    Hi, Dan!
    I tried to use your example in my code, but my page loads with error. I copied the jquery script to my /i location on server and included the script tag into the page template between the head tags. On the page I also copied the script from your example into page html header.
    When displaying the page, i get a "Done, but with errors on page" message, with following details:
    Line 21, char 4, Error: object expected, Code 0
    I tried the latest jquery scpript available (jquery-1.3.1.min.js) and also the one from your example (jquery-1.3.1.min.js)
    Can you give any tip, please.

  • Acrobat XI programmatically reset/clear all form fields when opening a PDF form

    I've got a PDF form document that I'm working on.  I'd like to add something to it to programmatically clear or reset all form fields to blank when the document is opened.
    Thoughts/ideas??
    Mucho thanks!!

    You can use the resetForm JavaScript method, either in the initial page's Page Open event or in a document-level JavaScript whic will execute when the document is opened.
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.523.html

  • Reader-enabled form from Acrobat is retaining interactive form fields when user saves the form

    This is an issue that has only recently come up. In the past it was not a problem to take a pdf, add interactive form fields to it in LiveCycle, then open the form in Acrobat and enable usage rights for Reader users.
    This allowed Reader users to fill out the form and save the results. With the most recent versions of Acrobat and Reader the user saves the form and the data AND the interactive form fields are saved in the resulting file - meaning that the data is still there to be changed. Clearly not what we want and not what Acrobat and Reader were doing previously.
    The form does properly display "You can save data typed in this form" when opened in Reader.
    I have got no response to this issue in the LiveCycle forum, and nothing shows up in a search. I would very much like to fix this, as it is affecting our entire library of pdf forms.

    In most instances the form is linked on the website, so the original form will cannot be overwritten.
    In some cases we have to supply an interactive pdf for a department that they will then distribute by email to various groups who are expected to fill the form out on submit on an ongoing basis. That is what I was meaning by the user filling out the form, printing it, and then being prompted to save changes.
    The bigger issue is that most of our users expect to take a form hosted on the website, fill it out, and then save a pdf copy of their responses for reference. The reference copy is retaining the interactive fields rather than printing as a static pdf.
    If I could force the action of printing as a pdf (rather than saving as a pdf) on submission I think that would solve the issue. The script for most of the forms in the library is xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0); and I am not aware of a way to force the print to only be to the pdf print driver.

Maybe you are looking for

  • Free Goos Issue

    Hi Sales order is created 1st November for 200 tooth pastes 100 brushes free of goods(2+1 free goods).At the time of delivery on 15th November you have shortage of brushes by 40. offer closed on 15th November . How do you solve in this scenario? Than

  • FR: Opening Reports in .pdf over a Web Link URL

    Hello, I want to build a kind of start page in html, from where the users can launch financial reports. For this, I have integrated the URL link to the document like href="http://localhost.ads.company.nl:19000/workspace/browse/get/Reports/Controlling

  • ISA not supported

    I am porting some C and C++ code over to the Solaris 8 Intel platform. The code compiles fine on Linux X86 and Solaris 8 Sparc platforms using gcc. However on Intel Solaris using gcc, I get a warning (which seems to be more like an error since my pro

  • Best Practise for rebooting ISE Nodes?

    Hello Community, I administer an ISE installation with two nodes (I am not an ISE Specialist, my job is just to manage the user/mac-adresses... but now I have to move my ISE Nodes from one VMWare Cluster to another VMWare Cluster. (Both VMWare enviro

  • Using iPod with high frequencies

    Hi there - I'm having treatment for tinnitus (high-pitched sound in the ear). There is a treatment where you listen to music interlaced with high frequency sounds which is supposed to stimulate the brain & the cilia inside the ear. They have CDs avai