• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Popup in jsp is not working becouse of Iframe

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic