• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Popup in jsp is not working becouse of Iframe

 
sneha Mh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I am trying to set the popup left and top properties I feel it will work in some cases
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic