Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
TPK #1
Possible to load XML files randomly?
Greetings,
Is it possible to randonly load a XML file from a group of several XML files
I use javascript to load a single XML file into a HTML page.
This is the javascript I use:
var pArray = unescape(location.search.substring(1)).split("&");
pArray = ["xml=quiz_1","tracking=scorm"];
if (pArray.length < 2)
alert("Missing parameters");
else
{
var args=pArray[1].split("=")[1];
g_oAssessment.setPassingScore(passingScore);
g_onCompleteAssessment.bSendScore=true;
initialize(args);
if(DATA_getStatus()=="not attempted")
{
DATA_setStatus("incomplete");
}
var sXMLFile = pArray[0].split("=")[1] + ".xml";
var sTrackingMethod = pArray[1].split("=")[1];
openerWindow = window;
loadXML(sXMLFile);
CreateQuestions(sTrackingMethod);
}
This loads "quiz_1.xml" into the HTML page. I'd like to have several versions
of "quiz_1.html (quiz_1, quiz_2, quiz_3, etc.)
The XML file would have the same structure, just slightly different content.
I?d like the script to randomly select from the group/pool, one of the xml
files and load it.
Is this possible? If so, how? Any documentation as to how to do this?
Thank you,
TPK
TPK Guest
-
load XML files from HTTPS
Hi All, I'm working on a Flash 9 application that it could be load XML files from servers located around the world with HTTPS protocol. I... -
load DRM video files
Hi all, I'd like to know if it's possible to load in a NetStream a DRM video file without using FMS? Do you have any suggestions? Thank you in... -
Load Local Files
Following up on a previous thread (http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=184&thr eadid=1086493), I am trying to... -
Online files status randomly changes to offline
New Laptop w/ XP Pro was set to work offline with the LAN server, invoking synchronization feature (make files available offline). While being...



Reply With Quote

