Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 3rd, 2003, 09:34 AM
atflm atflm is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 10 atflm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Open a new window

Hi!

I call in my php script in <body onunload> a javascrpt function that opens a window. I want that window was very small or stays out off the sreen. I'm using the width,height,left or top parameters, but nothing is happening. If I put them between '' or "", I've got an error. I only could move the window, after she appears in the middle, with win.moveTo(x,y);

html>
<body>
<title></title>
</head>
<body bgcolor="#FFFFFF" onUnload="logout()">

<script type="text/javascript">
function logout()
{
var win = window.open('temp.php?Name='+sub_string,width=50,h eight=50)
}
</script>

</body>
</html>

thanks for your help
andre

Reply With Quote
  #2  
Old December 3rd, 2003, 10:34 AM
coderboi coderboi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 80 coderboi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Open a new window

Try this in your logout function:

Code:
function logout()
  {
  var page_location = 'temp.php?Name=' + sub_string;
  var page_name = 'popup';
  var win = window.open(page_location,page_name,'width=50,heig  ht=50');
  }

Reply With Quote
  #3  
Old December 3rd, 2003, 03:20 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Open a new window

It works. A window could be smaller than 50x50 ? Can I put this window out off screen ?

Reply With Quote
  #4  
Old December 3rd, 2003, 03:34 PM
coderboi coderboi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 80 coderboi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Open a new window

I think that Netscape sets the minimum window size to 50x50, but you have more control in IE. You can position it off screen in IE, but I've never tried in netscape.
You could always hide it behind the current window by putting the following code in the pop-up window:

Code:
<body onload="window.opener.focus();">

Reply With Quote
  #5  
Old December 4th, 2003, 03:08 AM
mathewvp mathewvp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 143 mathewvp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Open a new window

Use window.moveTo()/window.moveBy() javascript functions to position the window off the screen.Give very large co-ordinate values like 1800,1800.But you wont able to hide its appearance in the task bar.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Open a new window


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