Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Allways UP pop up. HOW??????


Message #1 by "Claudio M. E. Bastos Iorio" <blumerdesigns@f...> on Fri, 20 Jul 2001 10:45:25 -0300
hi guys, im trying to do something that i really dont know how to do, maybe
u can help. im open a pop up page that i want to stay up while the user
click and navigates the page that generates this pop up, something like
"allways up" 4 the pop up. i hope u can help me and u can understand my
english. thanks to all of u in advance.

Claudio M. E. Bastos Iorio
"McClau"


-----Original Message-----
From: Jon Edwards [mailto:jpedwards@b...]
Sent: Viernes, 20 de Julio de 2001 10:09 a.m.
To: javascript
Subject: [javascript] Re: forcing a pgae back into frameset


Absolutley perfect, thanks very much for that.
Jon E


At 21:56 19/07/01 +0100, you wrote:
>Here is a snippet of code I wrote a few years ago, should be good basis
>for your needs, I now tend to use a .js file and tables to provide the
>navigation, check out http://www.methodiststudent.org.uk for an example.
>
>In the pages add :
>
><script language="Javascript">
>var frame_builder = 'index.html'
>if (top.document == self.document)
>{
>  if (confirm('This page is normally in a frameset. Do you wish to load
>it in context?'))
>  {
>window.location = frame_builder +'?'+ window.location.pathname
>  }
>}
></script>
>
>The frame builder becomes :
>
><script language="Javascript">
>var thatframe = 'somepage.html'
>if (location.search) {
>var thatframe = (location.search.substring(1,location.search.length))
>}
>var frameset = '<FRAMESET ROWS="50%,50%">'
>+'<FRAMESET COLS="100%">'
>+'<FRAME NAME="thisframe" SRC="somepage.html" MARGINHEIGHT=0
>MARGINWIDTH=0 SCROLLING=AUTO NORESIZE>'
>+'<FRAMESET COLS="100%">'
>+'<FRAME NAME="thatframe" SRC= "'+ thatframe +'" MARGINHEIGHT=0
>MARGINWIDTH=0 SCROLLING=AUTO NORESIZE>'
>+'</FRAMESET>'
>document.write(frameset)
></script>
>
>





  Return to Index