PDA

View Full Version : Reading status bar (W2K)



kenton.boucher
03-07-2003, 08:03 AM
We have a portal to launch applications and also utilize single sign on. We can script so the username and password are passed to the application, but I am having a problem on Web based apps.

Is there a way to make sure the page is done loading (i.e. check the status bar for 'Done") before passing the variables? Right now, if the page isn't done loading and I pass the info, it usually shows up in the address line and then jumps to a MSN search for that word (which is usually the password - EXPOSED!).

Using a sleep statement is an option, but a very bad one. If the web app paints the screen in 2 seconds, there is no reason to wait 10 seconds before passing the credentials. Alternately, if the app takes 11 seconds to paint, I still have the same problem.

Any and all ideas are welcome.

adamdelves
03-08-2003, 12:14 AM
There are a couple of ways of doing this. I think. Let me know what you are using to launch Internet Explorer. Does it give you full access to the window? Is it possible for you to have vbScript start your internet explorer?

kenton.boucher
03-10-2003, 06:23 AM
The product is called Coreport by a company called CoreChange http://www.corechange.com/products/products.asp.

The portal runs using an .ASP page in IE. User logs in to portal and credentials are passed to other applications as appropriate via account information defined in the portal.

Not sure what you mean when you say full access to the window.

We could probably have a VB script start another IE session from our main page (kinda like a redirect).

adamdelves
03-17-2003, 11:33 AM
I have had a look at the product. I need some more info however on how this portal runs the programs. From what I gather you can run microsoft .NET apps within the portal and these applications are located on a central server. Am I right?

kenton.boucher
03-18-2003, 07:45 AM
I suppose you can run .NET apps but we don't have any. The portal is running from centralized load balanced servers. The applications run on separate application servers. The various connectors to these applications contain the necessary info specific to that application such as url or unc path, post, get or basic authentication, icon to display, etc. The connector also has the ability to launch logon and logoff scripts which is where I am having the problems.

I posted something at MSDN and someone suggested that the InternetExplorer object supports the Busy property. I have played with this a little bit and it looks promising, but I haven't gotten it to work just yet.

kenton.boucher
03-19-2003, 10:26 AM
Got it! From another newsletter, I got the tip I needed (more specifically, I got the logic needed). I check the readystate of the ie object until it is = 4. Works great.