Create a shortcut/Link to a javascript app?

February 1, 2011 at 12:53:31
Specs: Windows XP Home 2002, Asrock 2.8GHz / 2 Gb
I know nothing about javascript so this question may not make sense, but I'll try it anyway.

Our corporate XP systems run IE6 under a locked down corporate image. Using a different browser is not an option.

On our internal Home Page we have a link that opens a web-based corporate application.

When I hover over the link I see this in the status bar:


(The HomePageName and XXX have been changed here for privacy reasons.)

If I enter the entire string in the address bar while on the Home Page, it opens the app just as if I had clicked the link, but if I enter the string on any other page, nothing happens, not even an error.

What I would like to do is create a shortcut icon or IE Link Bar icon so that I can open the app without having to go back to our Home Page to get to the link.

Can this be done? Is there a URL string or something else that I can put before "javascript" so that the browser knows where to find the script?

If you need any more information, just ask and I'll try to provide more info.


Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

See More: Create a shortcut/Link to a javascript app?

Report •

February 1, 2011 at 16:26:39
From your description, it sounds like the function __HomePageName_openXXX() is just navigating to a new site. Why not link to that site, instead of the javascript function?

How To Ask Questions The Smart Way

Report •

February 1, 2011 at 17:22:34
Thanks for the response.

When the app opens via the javascript link, the browser page is formatted in such a way that we don't get any address bars, link bars, browser menu bars, etc. All navigation is done from within the application.

The data that is presented is dependent on whose Windows profile is running on the machine. (Basically if I am logged into Windows, I can only see client data for my clients) The list of recent activity is based on what I did during the last few times I accessed the app.

In other words, it's not just another web page, but "our own" pages within a web based application.

In the past, we have been able to kind of fool the app into presenting us with a address bar, which we have then used to determine the address of the page that opens when we kick off the app. We've created shortcuts and links with that URL and it works for a few days and then stops working. Most of the time what happens is that we'll either get a blank pane within the app's window or the titles and frames will load properly but the client data will never load. If we close the Window and use the javascript link, everything loads as it should.

That's why I'm trying to come with a way to use the javascript string in a link or shortcut so that whatever script kicks off the app will work from anywhere, not just the link on the home page.

Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

Report •

February 1, 2011 at 18:35:58
I think your best bet would be a bookmarklet.

I've never actually made one, but the idea is you 'bookmark' a javascript function to automate some process.

There's some examples here -

Right click the bookmarklet & 'add to favorites'. You can then copy the favorite to your desktop.

Something like this ( I think... )

"javascript:(function() { window.location='http://the-homepage-url'; window.onload = function() { __HomePageName_openXXX(); } });"

Report •

Related Solutions

February 2, 2011 at 05:24:41

I'll give it a try when I get to work.

Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

Report •

Ask Question