smith1992 / sloodle

Automatically exported from code.google.com/p/sloodle
GNU General Public License v3.0
0 stars 0 forks source link

Blog Toolbar sometimes fails to initialise #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Wear the Sloodle Toolbar

What is the expected output? What do you see instead?
The Toolbar should say "Initialising..." to the owner, load the
configuration notecard, and provide an authentication link. This does not
always happen. It possibly depends on the state which the script was last
in, although a slow sim appears to affect it as well.

Original issue reported on code.google.com by pedro.mc...@gmail.com on 25 Sep 2007 at 9:50

GoogleCodeExporter commented 9 years ago
This issue is related to the script sleep time caused by the "llLoadURL" 
function,
which is used take the user to the avatar authentication page on their Moodle 
site.
If the Toolbar was detached during the sleep time, then the initial "attach" and
"on_rez" events when the toolbar was re-attached would not get called.

To solve the issue, I added a separate script to the Toolbar, which will listen 
for
link messages. The URL and owner key are passed by link message, freeing-up the 
main
script to receive the necessary events.

Original comment by pedro.mc...@gmail.com on 9 Oct 2007 at 10:18