Hi Ish,

The usual problem when something works in FF but not-IE is extra trailing 
commas.
See http://code.google.com/p/simile-widgets/wiki/Timeline_Problems

The other problem for a dynamically supplied data set is an incorrect mime type 
on the response. 
But my understanding is that this is an issue with xml responses, not json 
responses.

Debugging:
1) Get the timeline working correctly on both FF and IE (and Apple Safari too, 
while you're at it) using a static data file.
2) Then use the dynamic php url to supply the data set instead of the static 
file's url

Once you get to step 2, if it only works in FF, then use Firebug and the Net 
tab to see what the differences are between the data as it is delivered from 
the static file and as it is delivered from the dynamic php.

Things to look for:
* Content-type reply header
* Additional lines in the php program's response such as  <html>

Good luck,

Larry





________________________________
From: Ish <[email protected]>
To: SIMILE Widgets <[email protected]>
Sent: Monday, December 29, 2008 12:04:14 PM
Subject: Why this code not working in IE6 or IE7, but work fine in FireFox


Hi friend

I have this jsp page, which get jsonData from the session and load to
the page as shown below.
page contain map, which display data according to country data have.
display small balloons on the map for each country. This is work fine
with FireFox. When it come to display in IE6 or IE7, it collapse. It
display the map, but not display data balloons. I am using function
(), which populate data as shown below.

If I replaced this function with static jsonData file it work in both
FireFox and IE
like <link href="myData.js" type="application/json" rel="exhibit/
data" />.

But this is not my requirement, I need to create jsonData file
dynamically.

Please could some one help me where I am going wrong.

many thank
Ish


<HTML>
<HEAD>

<script type="text/javascript">

    var myData = <%=session.getAttribute("jsonData")%>;

    function populateData()
    {
        window.database = Exhibit.Database.create();
        window.database.loadData(myData);
        window.exhibit = Exhibit.create();
        window.exhibit.configureFromDOM();
    }

</script>


   <link rel='stylesheet' 
http://static.simile.mit.edu/exhibit/api-2.1.0/exhibit-bundle.css
type='text/css' />
   <script src="http://static.simile.mit.edu/exhibit/api-2.1.0/exhibit-
api.js"></script>
   <script src="http://static.simile.mit.edu/exhibit/extensions-2.1.0/
time/time-extension.js"type="text/javascript"></script>
   <script src="http://static.simile.mit.edu/exhibit/api-2.1.0/exhibit-
api.js?autoCreate=false" type="text/javascr ipt"></script>
   <script src="http://static.simile.mit.edu/exhibit/extensions-2.1.0/
map/map-extension.js?
gmapkey=ABQIAAAA5JLLfCE9c7HAtg25QM2KCRQtmVvwtG6TMOLiwecD59_rvdOkHxTAPhubLidYKS8G8qHrZGTBqAeJEg"></
script>

</HEAD>

<BODY  onLoad="populateData();">

Here goes the display data............


</BODY>
</HTML>





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