logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
chsos  
#1 Posted : Friday, August 20, 2010 4:12:39 PM(UTC)
chsos


Rank: Newbie

Joined: 8/20/2010(UTC)
Posts: 1
Location: Alexandria, VA

Hi there,

you email sb a session code, they click on it and the guest page opens up. The run program button is automatically pressed. So far it works with Firefox but no luck with IE 8. Any help is appreciated.
this is the code from Default.master (java script).
function myClickFunction()
{
var btn = document.getElementById('ctl00_Main_runButton');
if (btn) {
btn.click();
alert("clicked");
}

}

</script>
<body onload="myClickFunction()">

Jake  
#2 Posted : Tuesday, August 24, 2010 12:47:48 PM(UTC)
Jake


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 4/9/2010(UTC)
Posts: 2,061

Thanks: 1 times
Was thanked: 393 time(s) in 188 post(s)
Is your myClickFunction being called?
Is your btn variable populating correctly?

I don't think the click() method is standard DOM.

This line:
var btn = document.getElementById('ctl00_Main_runButton');

Maybe should be this:
var btn = $get('runButton');

A few too many unknowns to give you a definitive answer. Let me know what you find.
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.