PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Terminal Server Clients Prevent navigating out of ActiveX RDP Client

Reply

Prevent navigating out of ActiveX RDP Client

 
Thread Tools Rate Thread
Old 19-09-2005, 02:52 PM   #1
-=D@n=-
Guest
 
Posts: n/a
Default Prevent navigating out of ActiveX RDP Client


Hi all,

I am using the ActiveX RDP component on one of our websites, to deliver
desktops to remote users. Our users are merrily working away within the TS
session, and within that they'll be working in Sage or our bespoke
application. Now, they have a tendency to click one of their favourites or
just close Internet Explorer without thinking about it. This then leaves the
TS session in a 'disconnected' state.

I want to be able to pop up a 'Are you sure you want to navigate away from
this page?' box, to shock them into saying 'No' and then doing things the
proper way.

I'm absolutely crap at html/asp/php/any programming, but I was given this
snippet to put into my code:

<SCRIPT>
function closeIt()
{
event.returnValue = "blah blah blah blah";
}
</SCRIPT>
</HEAD>
<BODY onbeforeunload="closeIt()">
</BODY>
</HTML>

Under the guidance of our web-programming guru, I put the lines in what I
thought were the correct places, but then my 'Connect' button doesn't work.
I get the yellow warning message in the bottom left-hand corner of IE, with
the 'Object doesn't support this property or method' error.

I could really do with some way of urging the end-user not to navigate away
from the page without logging out of the session.

Any help appreciated

Dan


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off