Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2013, 07:35 AM   PM User | #1
BobbyRachel
New Coder

 
Join Date: Dec 2012
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
BobbyRachel is an unknown quantity at this point
Access iframe element on the top of another page

- I have two jsp pages. 1.customer.jsp 2. menuBanner.jsp
- customer.jsp has an iframe at the top of its contents. that iframe is nothing but menuBanner.jsp file.
- menubanner.jsp has only two contents. an image and a button. on click of the button it has to open a dialog box. the dialog box code should be in menubanner.jsp page.
- When i click on the button from this url host/port/example/menuBanner.jsp, am getting dialog box and the dialog box is at the page center.
- But when i try from this url host/port/example/customer.jsp, the dialog box is sticking at the page top and not getting the height of the box as well.
- My need is, when i try from this url too host/port/example/customer.jsp, i have to get the dialog box at the page center. i mean it should be at the top of customer.jsp page contents.
BobbyRachel is offline   Reply With Quote
Old 02-20-2013, 11:05 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,168
Thanks: 59
Thanked 3,993 Times in 3,962 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
And what, pray tell, is your definition of a "dialog box". There is no standard HTML element with that designation, so it must be something *YOUR CODE* is creating.

And that being so, how can we guess what you are doing wrong?

If you want help, you will have to show your code.

And *PLEASE* do *NOT* post your JSP code. Instead bring up your page(s) in your browser, click on the browser's VIEW menu and then on the SOURCE or PAGE SOURCE menu item. Copy/paste the HTML that the browser is seeing and using to here.

Or, even better, give us a live URL to look at.

*** AS A GUESS ***
I would tell you to simply have your button's onclick handler call the code in your <iffame>, rather than duplicating the code in both JSP pages.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Tags
iframe, javascript

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:57 PM.


Advertisement
Log in to turn off these ads.