Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Popup in jsp is not working becouse of Iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Popup in jsp is not working becouse of Iframe" Watch "Popup in jsp is not working becouse of Iframe" New topic
Author

Popup in jsp is not working becouse of Iframe

sneha Mh
Greenhorn

Joined: Jun 30, 2011
Posts: 3
Hi,

I have a jsp that contains Iframe

<iframe src='someAction.do' width='100%' height="100%" frameBorder="0" id="MyFrame"></iframe>

this frame will render my jsp in Iframe.

Now in that jsp , I have a popup which will be shown on a link in jsp.
This popup is nothing but a div which is hidden by default and will be set to display:inline when user clicks the link.

The problem is now when that jsp is rendered in normal window, the popup is shown at point where user clicks
but not that jsp is being in a iframe , the popup is shown far from the link

Please help me .
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


From what I understand of your query, I feel this is probably because you have HTML elements in between the link and the DIV. Did you try CSS positioning attributes for the DIV?
sneha Mh
Greenhorn

Joined: Jun 30, 2011
Posts: 3
yes I am trying to set the popup left and top properties I feel it will work in some cases
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Popup in jsp is not working becouse of Iframe
 
Similar Threads
Find iframe element absolute coordinates
passing value to and from popup window
How to retrieve the link clicked inside an iframe ?
escaping an iframe
escaping an iframe