JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 30th, 2000, 02:11 PM
Dave Bryant
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

------------------

Reply With Quote
  #2  
Old May 31st, 2000, 02:41 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
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..."

Reply With Quote
  #3  
Old June 1st, 2000, 09:05 AM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Calling a new Window without Javascript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT