Mike,
Thank you kindly for your advice - moving the script include to the head fixed it!
w00t!!!!!
Michael Nosal wrote:
On Mar 10, 2010, at 4:36 PM, webvida wrote:
Hi there if you go to the site:
http://jcalendar.corephpdemos.com/timeline-view/
in google chrome or safari and refresh a few times you will see that
sometimes the timeline loads and other times it does not - in chrome
it gives the error of Timeline undefined when it doesn't load.
I have been trying to fix this but for the life of me I can't work it
out, why does it work sometimes and not others in webkit browsers :(
Thanks for any help you can give I am almost pulling my hair out over
this :(
Behavior like this strongly points to a race condition between the Timeline javascript files being loaded and parsed, and your webpage executing code that depends on those files. Timeline-api.js includes all the other necessary javascript files by writing out script elements. You are including the timeline-api.js file in a script element inside the body of the document, not the head. It is possible that Webkit's behavior with regard to loading and executing javascript in this manner is sufficient to cause this type of error.
Try moving the script element including timeline-api.js into the head and see
if that clears up the error.
--Mike
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.