[Xerte] Re: event failing on second call
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Thu Mar 29 12:50:42 BST 2012
I think its like loading XML where the load wipes out methods / properties on the object.
Can you build a new icon for each load vars call?
i.e.
INT
BUT
TXT // a dummy loadVars
SCR //kick off the loadvars
INT
EVT
//handle the loadvars
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 29 March 2012 12:37
To: Xerte list
Subject: [Xerte] Re: event failing on second call
OK, here's the trace of 2 consecutive calls with
debug(rootIcon.loadVars);
//first call
top debug //directly under button
[type Function]
load //directly under loadVars call
[type Function]
loaded //success
//second call
top debug
onLoad=%5Btype%20Function%5D&onData=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC
load
onLoad=%5Btype%20Function%5D&onData=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC
What is happening to the loadVars function?
________________________________
From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: event failing on second call
Date: Thu, 29 Mar 2012 06:43:54 -0400
I click a button to pop up a scrolling text window which is populated with a loadVars call to a text file.
rootIcon.loadVars('http://www.myserver.com/common/revisions.txt?nt=' + (new Date()).getTime());
followed by an Event interaction
onLoadVars
rootIcon
It works the first time, but if I click the button again, the event will not fire again.
I ran into this once before but can't remember what the issue was.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120329/4e9ed7d3/attachment.html>
More information about the Xerte
mailing list