If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Open window

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-03, 03:48
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
Arrow Open window

Hello,
I am using javascript openwin function to open a new window.
The window gets opened but it has some height and width.
I want the window to be opened in minimized form.
How I can acheive this?

This is my code

<script language="JavaScript">
<!--
function openWin( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}

function ow()
{
openWin( 'bb.asp', 'Details', 'toolbar=0,location=0,directories=0,status=0,menuB ar=0,scrollBars=0,resizable=0' );
}
//-->
</script>

<a href="javascript:ow();">Click Here</a>



Thanks,
Rahul
Reply With Quote
  #2 (permalink)  
Old 07-29-03, 14:10
unatratnag unatratnag is offline
Registered User
 
Join Date: Jul 2003
Location: Ohio/Chicago
Posts: 75
hi rahulqa,

here are some of the window options you can use

window.open "default.htm", "main", "fullscreen=0 toolbar=0 Location=0
directories=0 status=0 menubar=0 scrollbars=0 resizeable=0 minimize=0
maximize=0 systemMenu=0"


just set attribute to 1 if you want to use it, minimize in your case, hope that works
Reply With Quote
  #3 (permalink)  
Old 07-30-03, 06:18
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
I tried your code but it is not working. It still opens the window in maximized form.
Reply With Quote
  #4 (permalink)  
Old 07-30-03, 09:19
unatratnag unatratnag is offline
Registered User
 
Join Date: Jul 2003
Location: Ohio/Chicago
Posts: 75
width, height, location, menubar, resizable , status, and toolbar are the only options available on all platforms. Sadly some of these won't work for ALL platforms such as minimize, bummer huh?

javascript is really annoying, that's part of the reason why some methods work sometimes but not others, it's REALLY annoying.
Reply With Quote
  #5 (permalink)  
Old 07-31-03, 10:35
Bigced_21 Bigced_21 is offline
Registered User
 
Join Date: Dec 2002
Location: KY
Posts: 54
Re: Open window

try this its a lil popup window

function Popup()
{
var popupURL ="report_builder.asp?report=blr_report_certificate .asp&search_no=<%=Search_No%>";
window.open(popupURL,"Popup",'toolbar=1,location=1 ,directories=1,status=1,menubar=1,scrollbars=1,res izable=1');
}
Reply With Quote
  #6 (permalink)  
Old 08-02-03, 05:27
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
This code also opens the window in maximized form.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On