Attached is something with timeline and map that seems to work only on 
Firefox 3 and Google Chrome (on Windows) and somewhat on IE8 RC1. It 
does not work on Safari 3 on Windows.

I had to resort to polling. I think the final answer is that as these 
widgets are currently implemented, they cannot be reliably loaded 
on-the-fly. Their loading process depends very much on the order in 
which their constituent files get loaded, but browsers seem to load (and 
execute) those files out of order.

I think the only way around this is to have 2 very slightly different 
versions of the *-api.js file of each widget, one that can load 
additional files on the fly (to be used in <head>), and one that's meant 
to be bundled together with the rest of the files into a single 
"compilation" .js file. Note that since Timeline and Exhibit are 
localized, there have to be different compilations for different locales.

David

Bruce Robertson wrote:
> This is just too weird. Hope we get some tips from Dave.
> Update: your example file works for me now.
>
> Regarding browser compatibility,
> Firefox works for me, Camino works for me, Safari (and FileMaker web
> viewer) do not work for me.
>
>
> On Feb 24, 12:30 pm, George Adams <[email protected]> wrote:
>   
>> I have been testing in Firefox on the Mac. The web site and the test file
>> work for me in Firefox and Safari but not in Camino. It works in Firefox on
>> the PC but not in Chrome or IE 6.
>>
>> I'll let David look at this and see if he can figure out where we are going
>> wrong.
>>
>> George
>>
>> On Tue, Feb 24, 2009 at 2:03 PM, Bruce Robertson <[email protected]> wrote:
>>
>>     
>>> Well, the missing D was one problem.
>>> But now I get the very odd result that:
>>> 1. Your file (the attachment) doesn't work anywhere for me.
>>> 2. My modified copy with fixed loadData works when viewed in Camino
>>> but not in Safari.
>>> 3. Your trailing semi-colon kills it.
>>>       
>>> My updated copy is on line:
>>> http://homepage.mac.com/bfr/george_adams/ComputerHistory3.htm
>>>       
>>> On Feb 24, 5:29 am, George Adams <[email protected]> wrote:
>>>       
>>>> Attached is an example with the JSON data in the <body>. No need for the
>>>> external .js file.
>>>>         
>>>> The example is also available here.
>>>>         
>>>> http://uphelp.dev4.spps.org/Test_Timeline.html
>>>>         
>>>> You were very close.
>>>> I added at ; at the end of theJSON data
>>>>         
>>>>  "category" : "Hardware",}
>>>> ]
>>>> };
>>>>         
>>>> </script>
>>>>         
>>>> and I changed the line window.database.loadData(myData); to include the
>>>>         
>>> the
>>>       
>>>> second "D"
>>>>         
>>>> loadata
>>>> to
>>>> loadData
>>>>         
>>>> I would like to know how to add in the JavaScript files to make the Map
>>>>         
>>> work
>>>       
>>>> too.
>>>>         
>>>> On Tue, Feb 24, 2009 at 1:13 AM, Bruce Robertson <[email protected]>
>>>>         
>>> wrote:
>>>       
>>>>> I'm afraid I need it spelled out a little more completely.
>>>>> See my attempt at
>>>>> http://homepage.mac.com/bfr/george_adams/ComputerHistory3.htm
>>>>>           
>>>>> On Feb 23, 9:55 pm, David Huynh <[email protected]> wrote:
>>>>>           
>>>>>>> Also, knowing where to put the JSON data in the HTML fragment would
>>>>>>> make it easier for my users as they wouldn't need to upload the
>>>>>>>               
>>> JSON
>>>       
>>>>>>> file to the server.
>>>>>>>               
>>>>>> You can put your data in a script tag
>>>>>>             
>>>>>>     <script>
>>>>>>        var myData = [ ... ];
>>>>>>     </script>
>>>>>>             
>>>>>> And then to load it
>>>>>>             
>>>>>>     window.database.loadData(myData);
>>>>>>             
>>>>>> David
>>>>>>             
>>>> [test.html5K ]Computer History
>>>>         
>>>> ,
>>>>         
>>>> Where:
>>>>         
>>>> -
>>>>         
>>>>  test.html.zip
>>>> 2KViewDownload
>>>>         
> >
>   


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

Title: SIMILE | Exhibit | Presidents (v2)
Republican Democratic Other parties Many parties No party

Reply via email to