Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to Implement iframes in a form

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-09-2009
Member
 
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?

Reply With Quote
  #2  
Old 23-09-2009
Member
 
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 "..".
Reply With Quote
  #3  
Old 23-09-2009
Member
 
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.
Reply With Quote
  #4  
Old 23-09-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Implement iframes in a form"
Thread Thread Starter Forum Replies Last Post
Will using iFrames hurts SEO Weeraz Software Development 7 21-02-2012 06:42 AM
Problem of iframes Hashim Software Development 3 21-11-2009 07:19 PM
How to use $_GET in iframes BansiJ Software Development 2 26-08-2009 09:54 PM
Embed iframes in Flash Chain-SmokeR Technology & Internet 3 13-07-2009 11:59 AM
what is the Best way to remove/replace iframes? squirekat Software Development 4 25-10-2008 05:59 PM


All times are GMT +5.5. The time now is 10:23 AM.