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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window Size from desktop 1

Status
Not open for further replies.

jmiller79

Programmer
Jul 13, 2004
48
US
I want my customers to be able to check status of an order from there desktop by clicking on a Browser window. But the window will only open to s certain size and will opne in the center of the page. With no toolbar, Etc... I can do this from my website with java. but from a desktop. So they will log into my website and be able to download this Brand New Desktop Status Checker. they will download the .asp webpage to there desktop. and be able to check status form there. Alos is there a way to change the Icon on there desktop. Thanks
 
Not sure i understand, but for an asp page to work from thier pc, they need to be running a server like IIS, so they will not be able to run it direct from thier desk top
 
All they would be downloading is a search page from my website. onto there desktop. kinda like a shoirtcut to my webpage.
 
so it would be a plain html page with a form thats action posts to you site. nice idea.

you are looking at a javascript like this at the top of your page

<script>
self.resizeTo(100,200);
</script>

may do it, but is only IE
 
Thanks a lot, have one more question if you don't mind. what about no toolbar? Etc....


I thought something like this would work, but no luck.
Code:
<script>
self.resizeTo(100,200);toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=300
</script>



 
You can only get rid off the toobar on a window you open with javascript. You could try somthing like this...

<!-- saved from url=(0021) -->
<script>
window.opener = "About to close!!";
self.close()
window.open(toolbar='0',scrollbars='0',location='</script>

the first line makes windows xp service pack 2 let the javascript run from a local pc.

When you run this page it will open a new window and then close itself.
 
hi, bit late but here is somthing

if you are just using this on windows make an HTA (html application)
using vbscript you can resize the window and remove toolbars, put this at the top of your html pag and then rename it to xxx.hta

Code:
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> CPU Temperature </title>
<meta http-equiv="refresh" content="600">
<meta name="Author" content="Andrzej Marczewski">
<HTA:APPLICATION id="mbm"
applicationName="MBM Temperature"
border="thick"
borderStyle="normal"
caption="yes"
windowState="normal"
contextMenu="no"
navigable="yes"
icon="notepad.exe"
version="1.0" />

</head>

<script language="VBScript">

Sub Window_Onload

   self.ResizeTo 800,230
   self.MoveTo 70,70
   
End Sub
</script>

<IFRAME SRC="filename.htm" APPLICATION="yes">

this only works in windows but will do what you wanted i think!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top