Javascript help

EmperorIQ

Platinum Member
Sep 30, 2003
2,003
0
0
How can I check if a webserver is down?

I want to see if the server is down, and if it is, it will load a default apge on the client's computer. How can I do this?

thanks.
 

EmperorIQ

Platinum Member
Sep 30, 2003
2,003
0
0
bump! ok, this helped, but I have one more question.

is there a way for me to load a page from the client's computer?

I tried this

windows.location="file://D:/ls.html";

I tried googling, and found nothing.

Thanks,!
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
That would be a huge security problem if javascript were able to do that. You'd have to use Active X or a Firefox extension or something that would have to be installed on top of the browser if you want that functionality.
 

EmperorIQ

Platinum Member
Sep 30, 2003
2,003
0
0
Originally posted by: Thyme
That would be a huge security problem if javascript were able to do that. You'd have to use Active X or a Firefox extension or something that would have to be installed on top of the browser if you want that functionality.

that's what I figured (security problem) but my managers said it was possible. Imma go google this activeX thing you're talkinga bout.
 

EmperorIQ

Platinum Member
Sep 30, 2003
2,003
0
0
maybe a new suggestion?

I'm working on a kiosk, and I want it to go to a default page if a webserver is down, how can I do this?
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
Originally posted by: EmperorIQ
Originally posted by: Thyme
That would be a huge security problem if javascript were able to do that. You'd have to use Active X or a Firefox extension or something that would have to be installed on top of the browser if you want that functionality.

that's what I figured (security problem) but my managers said it was possible. Imma go google this activeX thing you're talkinga bout.

Not really sure how easy those are to make these days. (I haven't toyed with them since VB 4)

 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
Originally posted by: EmperorIQ
maybe a new suggestion?

I'm working on a kiosk, and I want it to go to a default page if a webserver is down, how can I do this?

You can set up Apache/IIS on the kiosk and then use that. That'd be pretty easy--much easier than ActiveX