Re: Creating a Window without JavaScript that is on top

From: Date: Thu, 23 Mar 2006 01:49:40 +0000
Subject: Re: Creating a Window without JavaScript that is on top
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232428@lists.php.net to get a copy of this message
Thank you! Very helpful indeed! Todd Jay Blanchard wrote:
[snip] Is there a way to create a Window that is like the Help or Popup type windows one can create with JavaScript? I have an event calendar and I want the link for the event to go to a PHP page, but I want the page to be on top and have focus with a Close button. The PHP page will have some PHP code that will display the data passed by the GET var. [/snip] You do know that JavaScript can open a PHP page right? Here is an example.... /* * description: pop up a window with a specific file * call: <a href="javascript:popUp('<name of file to open like foo.php>')"><link name></a> */ function popUp(url){ pop = window.open(url,'window name','width=300,height=200,toolbar=no,location=no,menubar=no,scrollbars =no,resizable=no'); pop.moveTo(50,50); } Whatever foo.php is will be displayed in the pop-up window. There are several ways to pass variables back and forth using JavaScript....but this is not the list for that :)


« previous php.general (#232428) next »