[Xerte] Re: Reading POST parameters from web page in RLO

Dave Burnett d_b_burnett at hotmail.com
Tue Apr 3 21:50:26 BST 2012



Launch index.htm with your parameters:
www.server.com/dir/index.htm?courseid=224&sname=fred
add a javascript function to rloObject.js to get the querystring values:
function getdata() {//code to get value pairs from URL querystring//and return them}

Call from within your Xerte piece:mydata = getURL('javascript:getdata("");', '');



From: knowledgeware at kccsoft.com
To: xerte at lists.nottingham.ac.uk
Date: Tue, 3 Apr 2012 13:31:16 -0700
Subject: [Xerte] Re: Reading POST parameters from web page in RLO



Hello Julian – if I use object/embed I’ll be using flashvars, correct? I’m not sure how I could use js to get/set values. I need to pass some critical info in like courseID, LoginID, etc that is specific to each user, so I don’t see how I can ‘read’ a URL from xerte. Is there a way with js I can pass these specific values to the RLO when launched? ThanksRonM2 From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Tuesday, April 03, 2012 1:12 AM
To: Xerte discussion list
Subject: [Xerte] Re: Reading POST parameters from web page in RLO Either pass them inot the piece from the web page via the object / embed stuff, or (better) write some javascript functions you can call from Xerte to get / set values. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 02 April 2012 22:10
To: Xerte discussion list
Subject: [Xerte] Reading POST parameters from web page in RLO Anyone have an example of reading ‘POST’ parameters in xerte desktop?  I’d like to launch an RLO from a webpage and pass in several parameters like courseID, LoginID, etc., but not clear on how I can ‘read’ them in when the xerte flowline starts. Do I need a JS wrapper for this? RonM2 This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120403/931f38e6/attachment.html>


More information about the Xerte mailing list