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
ivanskie  
#1 Posted : Tuesday, May 26, 2015 6:22:45 PM(UTC)
ivanskie


Rank: Advanced Member

Joined: 12/3/2013(UTC)
Posts: 56
Location: Canada

Thanks: 5 times
Okay,

So since upgrading to v5.x, my v4.x iframe free integration (javascript, etc) has stopped working.
I'm hoping between the few of us that need this, can come up with a solution that works with v5.x+.

WiKi seems to insist on doing the lazy iFrame method, which in my personal opinion iframe should have been left for dead in early 2000s and deprecated in HTML.
It's a monkey hack.
Another suggestion on a different topic was to develop a custom extension and call the API with that. (unfortunately I don't think I have enough know-how to do that).
I didn't see a public extension for something like this listed.

anyone have a working solution yet?


Thanks!

Alexander  
#2 Posted : Tuesday, May 26, 2015 8:29:16 PM(UTC)
Alexander


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 7/23/2013(UTC)
Posts: 715
Man
Location: Raleigh, NC

Was thanked: 66 time(s) in 63 post(s)
You could probably do something like this (a lot of which is just directly from Guest.aspx):
Code:
SC.service.GetGuestSessionInfo({ 'code': [entered code] }, null, 0, function(result) {
	var sessions = result.Sessions.filter(function(session) { return session.Tag == 'code'; });
	if (sessions.length != 0) {
		SC.launch.startJoinSession(
			sessions[0],
			function (sessionToken, promptFieldMap, onSuccess, onFailure) {
				onSuccess(
					SC.util.getClientLaunchParameters(
						sessionToken.SessionID,
						sessionToken.SessionType,
						sessionToken.Name,
						promptFieldMap.participantName.value,
						null
					)
				);
			},
			SC.util.getSessionTypeBooleanResource('JoinPanel.{0}PromptVisible', sessions[0].SessionType),
			SC.util.getSessionTypeResource('JoinPanel.{0}PromptMessage', sessions[0].SessionType),
			{
				participantName: {
					labelText: SC.util.getSessionTypeResource('JoinPanel.{0}ParticipantNameLabelText', sessions[0].SessionType),
					value: '',
					visible: SC.util.getSessionTypeBooleanResource('JoinPanel.{0}PromptParticipantNameVisible', sessions[0].SessionType),
				},
			},
			SC.util.getSessionTypeResource('JoinPanel.{0}PromptButtonText', sessions[0].SessionType)
		);
	}
});


If you want to, you could also make an extension that just has a method that calls SessionManagerPool.Demux.GetSession(code), and then use that instead of GetGuestSessionInfo, which would make it a bit cleaner than it is currently.
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.