I'm trying to create a visualization using timeline. First I make an
ajax call, then I add dynamically the javascript library using YUI
framework.

….

var loader = new YAHOO.util.YUILoader({
            onSuccess: function(){
                onLoadTimeLine();
            }
});
loader.addModule({
                name: 'timeline',
                type: 'js',
                varName: "timelinevar",
                fullpath: 
"http://api.simile-widgets.org/timeline/2.3.1/timeline-
api.js?bundle=false"
        });
loader.require("timeline");
loader.insert();

….

function onLoadTimeLine(){
        var eventSource = new Timeline.DefaultEventSource();
        ….
}

When the javascript file is include, onSuccess event is running, but a
javascript error is coming.  I can't use the TimeLine Object because
the source from the javascript file is still running.

does anyone know if exists a callback function? I don't want to
include a javascript library in the head element, my intention is
include javascript dynamically .

does anyone know what is wrong?

Thanks for the feedback.

Antonio.

-- 
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.

Reply via email to