Use Variable in Quiz e-Mail Reporting


for reasons tedious explain need change e-mail script (quiz report) created in html document project works 'server-side' rather launch mail client on pc.

 

the problem have of course need know did test! cunning plan create text box in test user type name. text box have variable associated it. no probs far, use variable in mail script in html file add vaiable/name e-mail message - either in content section or subject line.

 

there variables used in script (such gstremailto), not of these 'visible' system variables. adding variable name not seem work. has out there done this, or non-runner?

 

regards

c taylor

hi c taylor,

 

this possible, , in fact, i've done this.  can refer blog here.  post way overboard doing, code provide contain server side script emailing results , altered cp html templates sending quiz results.  can send custom user variables well.  basic high level outline be:

1.  alter captivate html publishing template via blog post.  allows grab of quiz variables via javascript.

2.  use javascript grab cp user variable.  see below links on how this...

3.  use ajax pass quiz data , user variable(s) web service on server.  chose use jquery library this. (you can via cp widget in flash)

4.  web service send server side email using quiz , user data provided

5.  (optional)  have web service communicate success or failure via json captivate , respond accordingly.

 

this done via asp.net.  not sure if you're using php, doesn't matter until step #4.

 

the trick capturing user variables getting reference captivate object via javascript.  take here.  also, philip hutchison has great js file download tap cp user , system variables @ http://pipwerks.com/downloads/

he has scorm wrapper api, have not used it.

 

on note, created widget send variable (user or sytem) google spreadsheet. can use send quiz , user variables spreadsheet. can find here.  requires publish cp project in fp10 , as3.

 

good luck,

 

jim leichliter



More discussions in Advanced Adobe Captivate Users


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO