Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify browser appearance? 3

Status
Not open for further replies.

Gamera9

Programmer
May 4, 2001
8
US
I am writing numerous ASPs in Interdev 6.0 with server side VBScript and some client side Javascript. I want all of my pages to load in a browser where i can remove the menu bar, status bar, etc. I can load the default.asp in a full browser, for example, and fire subsequent links using the Javascript window.open(url,name,modification) technique but I wonder how to open the initial default.asp this way?
Does anyone know how to accomplish this using VBScript on the server side?
Next Question: Since the user won't have a toolbar, i have a couple of javascript nav buttons (print, back) and so on;
also assume I will disable keyboard shortcuts (if I can figure that out) - when printing from IE, the URL is shown in the footer. I want to hide that; does anyone know any VBScript or JavaScript parameter settings for modifying IE or Netscape printing? I know the user can modify the headers and footers in Page Setup but I don't want the user to modify anything.
Thanks if anyone can help;
Nelson
 
Your question:
I wonder how to open the initial default.asp this way?
Does anyone know how to accomplish this using VBScript on the server side?

Answer. You can't. Whatever elements (menubar, toolbar) the browser has prior to coming to your site cannot be modified by a server or client side script. What you can do is have your default.asp file return client side script to open a NEW window without the menus or toolbar.

As to hiding the URL of the current frame, the only solution I've found to work consitantly is to use frame.
cquick@geotg.com
Geographic Information System (GIS), ASP, some Oracle
 
Yeah have a Meta redirect set to 1 second with a quick message in large letters saying that the app is loading or something. That would work. And the Link in the meta would have the info for an empty browser windows with no controls. Surely you can find the script for a pop-up window that takes the controls out and opens at a specific size.

Try this. I wrote this up and tested it, it should work for you too after you modify the name of your site and the look you want it to have etc.

JUST COPY THIS TO BE YOUR OPENING PAGE and it will redirect you to the default.asp with the following settings to your browser.

<!><HTML>
<HEAD>

<SCRIPT language=&quot;JavaScript&quot;>
<!--
function my_win()
{
window.open('
,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes');
}
//-->
</SCRIPT>
<meta http-equiv=&quot;Refresh&quot; content=&quot;0; URL=javascript:my_win()&quot;>
</HEAD
<BODY>
<BR>
<BR>
<BR>
<BR>
<CENTER><B>YOUR PAGE IS LOADING, <BR>THIS WILL ONLY TAKE A SECOND</B></CENTER>
</BODY>
</HTML><!>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top