|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to use the header funtion to call another page with the direction statement that pops up in a new window without having to embed Javascript and leaves the old page untouched?
If NOT: Could I get the redirection to the new page.php and have the newpage.php call Javascript without making the old page change locations? Help...pulling my hair out ------------------ |
|
#2
|
||||
|
||||
|
i think with header() it is difficult to do that in php.
but if you can include "<base target="_blank">" tag in side the <head> tags in your html.it will open the new pages only in a new window. here is an example: <html> <head> <SCRIPT LAGUAGE="JavaScript"> function new_window(){ window.open("newpage.php",300,300); } </SCRIPT> <base target="_blank"> </head> <body onLoad="new_window();"> <h1>This is just a test</h1> </body> </html> play around this base tag .i think you can do it easily. Good Luck!!! ------------------ SR - shiju.dreamcenter.net "The fear of the LORD is the beginning of knowledge..." |
|
#3
|
|||
|
|||
|
I have a similar issue that I don't think can be resolved using the html code that was presented here.
Basically, I have a cgi script that is executed to "login" a user (update the database). It produces no output other than autosubmitting a hidden form with the user ID to a .php3 script. This .php3 script's only purpose is to set a cookie, call itself back to verify the cookie was set, and if set - it redirects to another URL. The .php3 script has no html, just php3 code [and uses header(Location: URL ) for the redirect]. We want this to all happen behind the scenes without the user seeing any additional screens until they get to the final URL destination. This has worked fine with the following exception: The client wants the final URL destination to appear in a new window with specific size requirements. Any suggestions? Sharon |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Calling a new Window without Javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|