HI,
I´ve been the last 6 hours tracking a stupid problem with IE and
Timeline in https.
Instead od loading json from a file I use inline json from a var, and
anthought it works well in firefoz in IE, it throws the annoying
message "This page contains both secure and nonsecure items".

I´ve tracked all links, iframes, css, images and found out that the
problem is with inline load of json. Loading from a file it works
well.

To load json from a file you do this :
           tl.loadJSON("cubism2.js", function(json, url) {
                eventSource.loadJSON(json, url);
            });
But as I need to load the data from a database I load json like this,
to give an example :

            var JsonTimeline = {"dateTimeFormat": "iso8601",
"events" : [
            {"start" :"2008-08-22T00:00:00+01:00","instant" :
"true","title" : "Test Again","description" : "Test bigger"},
            {"start" :"2008-08-18","end" : "2008-08-22","instant" :
"false","title" : "Test Event","description" : "First Line"}
            ]};

           eventSource.loadJSON(JsonTimeline,'' );

If we put the contents of var JsonTimeline inside a file and load as
the cubism2 example, everyrhing works well.

The problem is because of loadJson function, and not passing the
second argument 'url'. is should be explicitly 'https',  but I don´t
know how to do this.


I´ve tracked the loadJson function to file api/scripts/timeline.js and
the function is

Timeline.loadJSON = function(url, f) {
    var fError = function(statusText, status, xmlhttp) {
        alert("Failed to load json data from " + url + "\n" +
statusText);
    };
    var fDone = function(xmlhttp) {
        f(eval('(' + xmlhttp.responseText + ')'), url);
    };
    SimileAjax.XmlHttp.get(url, fError, fDone);
};

But this is way beyond my javascript knowlegde, so I´am asking for
help.
How can I force the url to be https, or is there another way to load
the json  ?

Thanks,
Jcorreia


















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