Register

Proxying the quizzes

Questions regarding installation or possible bugs with our products. For urgent issues, please use our support form on our website: http://www.qarbon.com/help/helpme.php

Moderators: James, Rado

User
Posts: 27
Joined: Tue May 15, 2007 10:05 am

Proxying the quizzes

Postby continentalop » Thu Aug 20, 2009 4:28 pm

Hi all,

Our users have limited internet access, so we provide them access to our quizzes on ViewletCentral through a proxy. The proxy downloads the quiz, and the users take the quiz off the proxy. Unfortunately, this means that the test results are not recorded, and Certificates of Completion are not sent out.

By what mechanism are the Certificates of Completion sent out, and quiz results recorded? One of our developers analyzed the activity at the end of the quiz, and he said he didn't see anything happen in terms of posting the results to a special page or anything like that. Is there a way to adapt the mechanism to the use of a proxy?

Any help you could provide would be greatly appreciated.

Site Admin
Posts: 1078
Joined: Fri May 26, 2006 3:15 pm
Location: San Jose, CA

Re: Proxying the quizzes

Postby James » Thu Aug 20, 2009 4:55 pm

Hello,

When you say the proxy downloads the Quiz, can you be more specific? For scoring to operate correctly, the HTML file needs to call the SWF file since there are communication parameters in the HTML code that allow the SWF to send data back to the server is small XML packets throughout the Quiz and then a final packet at the end with the final results.

James

Site Admin
User avatar
Posts: 51
Joined: Sat May 27, 2006 1:27 am
Location: Dolny Kubin, Slovakia

Re: Proxying the quizzes

Postby Rado » Fri Aug 21, 2009 2:04 am

continentalop wrote:By what mechanism are the Certificates of Completion sent out, and quiz results recorded? One of our developers analyzed the activity at the end of the quiz, and he said he didn't see anything happen in terms of posting the results to a special page or anything like that. Is there a way to adapt the mechanism to the use of a proxy?


Normally, once a quiz is downloaded from ViewletCentral and displayed in a browser, it will need to talk back to ViewletCentral server to report the results, and at the end, ViewletCentral will email the certificate. This should work just as well with a standard proxy server configuration, because the communication between a quiz and ViewletCentral is using the same server/port and standard HTTP protocol as the one used to download the quiz. So if your browser can access any page on http://www.viewletcentral.com via the proxy, then a quiz (displayed within this browser) should also be able to access the reporting interface.

I'm not sure what you mean by "The proxy downloads the quiz, and the users take the quiz off the proxy." but normally, your browser should be configured to use a proxy server (in order to be able to connect to the internet). So if you open a quiz using your browser (by typing the ViewletCentral URL of your quiz) it should be able to perform reporting too.

User
Posts: 27
Joined: Tue May 15, 2007 10:05 am

Re: Proxying the quizzes

Postby continentalop » Fri Aug 21, 2009 4:02 pm

I talked to one of our developers, who gave me more details on how the proxying works:

We have written a custom proxy that only proxies certain URLs. Each URL has to be mapped into a virtual directory on the not-quite-a-proxy server. For example, we map anything /WebSite/ to http://www.websiteaddress.com, such that a request like

http://intranet-server/WebSite/somepage.html

results in the proxy fetching and returning to the client

http://www.websiteaddress.com/somepage.html.

What configuration will we need in order to get quiz processing to work?

Site Admin
User avatar
Posts: 51
Joined: Sat May 27, 2006 1:27 am
Location: Dolny Kubin, Slovakia

Re: Proxying the quizzes

Postby Rado » Mon Aug 24, 2009 2:29 am

continentalop wrote:...such that a request like
http://intranet-server/WebSite/somepage.html

results in the proxy fetching and returning to the client
http://www.websiteaddress.com/somepage.html.

What configuration will we need in order to get quiz processing to work?


I talked to our Flash developer today, and there actually is a workaround for your configuration. It involves updating the "HTML Frame" of your quizzes with your customized URLs. To do this, you'll need to go into the "Project Properties", select "HTML Frame" and update the template for $VIEWLET_NAME$_viewlet_swf.html. Within the template, locate the line containing the $VIEWLET_PARAMETERS$ variable, and assuming all ViewletCentral URLs are translated into http://intranet-server/ViewletCentral/, append the following code for your configuration:

Code: Select all
&rp=http://intranet-server/ViewletCentral/vc/stat_2006_insert.html


The modified line of the template should look like this:

Code: Select all
flashTag.setFlashvars("__variables__="+getParameters()+"$VIEWLET_PARAMETERS$&rp=http://intranet-server/ViewletCentral/vc/stat_2006_insert.html");


The workaround described above will work if your custom proxy translates complete URLs, so that a quiz normally available at http://www.viewletcentral.com/vc/viewlet/123456 is accessible within your network at http://intranet-server/ViewletCentral/vc/viewlet/123456. It is also important that your custom proxy does not cache requests to HTML files that are responsible for reporting.

When editing your HTML Frame, it is recommended to create a duplicate template to avoid overwriting the Standard.qframe template.

Site Admin
User avatar
Posts: 51
Joined: Sat May 27, 2006 1:27 am
Location: Dolny Kubin, Slovakia

Re: Proxying the quizzes

Postby Rado » Mon Aug 24, 2009 2:56 am

Here's a short viewlet that demonstrates how to perform the steps to customize your HTML Frame described in the above post:
http://www.viewletcentral.com/vc/viewlet/268615769/

Return to Discussions

Who is online

Users browsing this forum: No registered users and 1 guest