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

Web Application

Status
Not open for further replies.

Elcid32

Programmer
Jul 28, 2006
10
US
Hello Forum:

I am developing a web application that fires from a link on my website. The link instructs the application to open in a window (window.open()) with all of the tool bars turned off, etc. My question is: is there a way to place this link on a desktop so that it will run without having to first open the browser and click on a link. I want to run this web app without having to first run the browser (the app will run the browser, but I need all the tool-bars, etc. turned off). I hope that makes sense. Thanks.

Shawn
 
Hi,
Since it is the browser that runs the JavaScript, it needs to be involved, somehow..

If your starting web page has just minimal code ( Something like:
Code:
[HTML]
[BODY]
<Script Language="JavaScript">
var AppWindow;
var apploc;
apploc = [i]'<yourapps URL>'[/i]
windowprops = "fullscreen=no,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no";

AppWindow=window.open(apploc,"rptWindow",windowprops);
self.Close()
</Script>
[/BODY]
[/HTML]

Place a shortcut to this page ( name it anything) on your web server and it will invisibly open the app...





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Shawn,

That's a great question and Turkbear's response is as close as you will get to achieving what you want from a desktop icon. However, you will get an annoying little alert when the self.close() method fires, asking you if you want to close the original window. It's the browser's way of making sure the user has control over the primary browser window.

If you are looking for a work-around that will allow you to launch a window of your choosing from a desktop, check out Microsoft HTA's.


All you do is give your 1st page an .HTA extension, provide some information in the <HEAD> section on how you want the window, menus, borders, etc.. and you're off. You'll also notice that once you launch an HTA application, much of the security in the standard browser is ignored.

Couple of notes to consider... You can only launch HTA's from a desktop icon and the computer must have IE 5.0 or greater. Doesn't work with any other browser.

Hope this helps and good luck !!

ToddWW
 
one more thing,

u can set HTML pages as desktop backgrounds. so if that is feasible u could try the same...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top