Results 1 to 4 of 4

Thread: How to Implement iframes in a form

  1. #1
    Join Date
    Apr 2009
    Posts
    107

    How to Implement iframes in a form

    What code can I put in the 'onbeforeunload' event to cancel the 'unload' action but when I press the submit button I can only get the “name” attribute at the action.jsp file. The value of the address field is shown as null, then present the user with an alert saying that he/she must use the logout button. Is there any way to detect the target of whatever event causes the page to unload?

  2. #2
    Join Date
    Jan 2009
    Posts
    143

    Re: How to Implement iframes in a form

    The problem is that the containing page (home.jsp) and the contained iframe (hierarchy.jsp) are two completely different request, two completely different pages that dont talk to each other and dont know each other. If filter.jsp is one level up from the current JSP, then "../filter.jsp" would be the right one. "/../filter.jsp" doesn't make sense as an URL. "/" is already at the highest directory level; it's not possible to go one level up from there using "..".

  3. #3
    Join Date
    Apr 2009
    Posts
    78

    Re: How to Implement iframes in a form

    Is there any way to detect the target of whatever event causes the page to unload? I would be especially interested to hear how they propose preventing the user from disconnecting the cable that connects them to the internet, or turning the computer off at the wall.

  4. #4
    Join Date
    Jan 2009
    Posts
    96

    Re: How to Implement iframes in a form

    Using onunload or onbeforeunload event handlers is fraught with danger - popup blockers often disable these events from being able to be fired. If you assign a listener directly to onbeforeunload or onload you'll overwrite the listeners that dojo needs to assign. Those things are generally used in an HTA and are useless for much else. This group assumes cross- browser internet use unless otherwise specified.

Similar Threads

  1. Will using iFrames hurts SEO
    By Weeraz in forum Software Development
    Replies: 7
    Last Post: 21-02-2012, 07:42 AM
  2. Problem of iframes
    By Hashim in forum Software Development
    Replies: 3
    Last Post: 21-11-2009, 08:19 PM
  3. How to use $_GET in iframes
    By BansiJ in forum Software Development
    Replies: 2
    Last Post: 26-08-2009, 09:54 PM
  4. Embed iframes in Flash
    By Chain-SmokeR in forum Technology & Internet
    Replies: 3
    Last Post: 13-07-2009, 11:59 AM
  5. what is the Best way to remove/replace iframes?
    By squirekat in forum Software Development
    Replies: 4
    Last Post: 25-10-2008, 05:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,583,793.44855 seconds with 17 queries