• 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

Is this even possible (new page question).

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is an application (JSP) and in that application there is an area that management wants to have another applicaiton (written using JSP/JSF) to show up in. In other words, it will need to be one web page showing up inside another web page.

Now, I know that you can open a new window and specify the location and size of it, but how can you:

1) Figure out at run time what size and location the second web page needs to be given that the users will have their clients set to different sizes (800x600, 1024x768, 1280x1024, etc.)?

2) Is there any way to lock the new window inside of the other one so when the user toggles to a different application both apps will go away?

THANKS
[ January 16, 2006: Message edited by: Darrin Smith ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ideas could be frames, iframes, modal windows.

Eric
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eric Pascarello:
Ideas could be frames, iframes, modal windows.

Eric



Yes, the first app does use an IFRAME.

Can you simply place a call to window.open and some how mate these two together inside that frame?

Thanks!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
window.open can have a relationship, but it can easily be broken and you will have one window looking for another that is not there.

What is the real purpose of this and there may be another solution.

Eric
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eric Pascarello:
window.open can have a relationship, but it can easily be broken and you will have one window looking for another that is not there.

What is the real purpose of this and there may be another solution.

Eric




For now (this will change eventually) the only way they want someone to get to the second app is through the first. The first application acts as a wrapper and provides a lot of other functionality. The second app is just meant to be a window inside of the other one.

Both appplications are written...they just need to be tied together.

So, is there a way to bring up the second app and have it use the IFRAME inside of the first one as its entire real estate space?

Thanks again.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Darrin Smith:

So, is there a way to bring up the second app and have it use the IFRAME inside of the first one as its entire real estate space?



It would be the other way around. The first app must load the URL of the second app into the iframe.
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:


It would be the other way around. The first app must load the URL of the second app into the iframe.



Sorry, that's what I meant.

What is the code to do that? I take it that it is something other than window.open?

Thanks.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
window.open has nothing to do with iframes. It is used to open a new browser window.

You need to assign the URL to the iframe's src attribute.
[ January 16, 2006: Message edited by: Bear Bibeault ]
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
window.open has nothing to do with iframes. It is used to open a new browser window.

You need to assign the URL to the iframe's src attribute.

[ January 16, 2006: Message edited by: Bear Bibeault ]




Got it!

I've never worked with IFrames before.

Thanks!
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic