SunQuest
           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 August 25th, 2003, 01:16 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
New Window??

I have a link. I want to implement this link in that way so that when I will click it, it will creat a new window without any address bar or any other bar. Suppose that window just contain a picture of a Building. How to do that?

Reply With Quote
  #2  
Old August 25th, 2003, 01:40 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

Use the Javascript window.open() function. It allows you to specify what options the window has when it is opened.




Reply With Quote
  #3  
Old August 25th, 2003, 01:42 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

Here is a link that explains it.

http://www.devguru.com/technologies/ecmascript/quickref/win_open.html

Reply With Quote
  #4  
Old August 25th, 2003, 01:49 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: New Window??

Thank you for your information. How do I disable the minmize and maximise option of that new window.


Reply With Quote
  #5  
Old August 25th, 2003, 02:09 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

I don't think that is possible, at least I have never been able to find any information on it.

Reply With Quote
  #6  
Old August 25th, 2003, 03:54 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: New Window??

I don't think you can disable minimize but aximize is disabled by resizable=0 in this function:

php Code:
Original - php Code
  1.  
  2. function popUp(path,wname) {
  3.  newWin=eval("window.open('"+path+"',wname,'width=440,height=440,left=150,top=150,scr  eenX=150,screenY=150,scrollbars=0,toolbar=0,locati  on=0,status=0,menubars=0,resizable=0')")
  4. }

the link code looks like this:
<a href="javascript:popUp('h01.htm','h01')">link</a>

the first parameter is the URL and the second is the window name, if you use the same window name then all your popups will open in the same window, and if you change the name on each link you'll get a new window each time. In the function you can position where the new window opens, and define how large the window is. This turns off, toolbars, locationbar, status bar, scrollbars, menu and resize.

Reply With Quote
  #7  
Old August 13th, 2004, 12:12 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: New Window??

he following code is for clicking a button to open a new window but I would like to click a link so that I can have a new window according to my design and feature. Any help?


Code:
<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("http://www.hotmail.com","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=400")
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>

</html> 

Reply With Quote
  #8  
Old August 13th, 2004, 12:34 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

do you mean that you want to click a link and have the new window open the link?

Reply With Quote
  #9  
Old August 13th, 2004, 12:45 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: New Window??

yes exactly.

Reply With Quote
  #10  
Old August 13th, 2004, 01:28 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

here is your example modified a bit.

<html>
<head>
<script type="text/javascript">
function open_win(href,height,width)
{
window.open(href,"my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width="+width+", height="+height)
}
</script>
</head>

<body>
<form>
<a href="http://www.php.net" onClick="open_win(this.href,400,600);return false;">Open PHP</a>

</form>
</body>

</html>

by passing the href property of the link and the height and width, you can control
what url the new window opens as well as the height and width of the window.
you could also add other arguments to the function to give you even greater control
over the window.

Reply With Quote
  #11  
Old August 16th, 2004, 12:42 PM
szms szms is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 107 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: New Window??

I would like to chage the function parameter as open_win(this.href,menubar,width,height) and want to pass the
following values:

open_win(this.href,yes,400,600)

But having an error for not getting the proper value for the variables. Is this the right way to do it?

window.open(href,"my_new_window","toolbar=no, location=no, directories=no, status=no, menubar="+menubar+", scrollbars=yes, resizable=no, copyhistory=no, width="+width+", height="+height+" ")

Reply With Quote
  #12  
Old August 16th, 2004, 05:34 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: New Window??

here is the modified code.

<html>
<head>
<script type="text/javascript">
function open_win(href,menubar,height,width)
{
window.open(href,"my_new_window","toolbar=no, location=no, directories=no, status=no, menubar="+menubar+", scrollbars=yes, resizable=no, copyhistory=no, width="+width+", height="+height)
}
</script>
</head>

<body>
<form>
<a href="http://www.php.net" onClick="open_win(this.href,'yes',400,600);return false;">Open PHP</a>

</form>
</body>

</html>

when passing the argument for the menubar, you must enclose it in single quotes.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > 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 6 hosted by Hostway