Re: [Simile-Widgets] XML File input vs flat string

43 views
Skip to first unread message

Jeff Roehl

unread,
May 8, 2013, 4:37:11 PM5/8/13
to simile-...@googlegroups.com
>> I pass in a string equivalent of this XML file as input via Javascript?

Take a look at:

http://www.freewebs.com/instawares/temp3.htm

All the data is loaded in as a JavaScript array.

This way everything is "on-board", all in one HTML file, very clean.

View the source of this website.

The array that contains the data is named datLDVJ11URM

The data is loaded from the following:

eventSourceDataLDVJ11URM.loadJSON(datLDVJ11URM,'');

You have to page down about 80% in the source to see this.

Use .loadJSON(datLDVJ11URM,'');  NOT .loadXML(datLDVJ11URM,'');

Make sure you escape out ALL the appropriate characters in your data, no quotes and so forth.

If you don't do this, you will end up with a big white box, having no clue what has gone wrong.

You don't want that, believe me.
 

Tirumal Panganamala

unread,
May 10, 2013, 5:59:57 PM5/10/13
to simile-...@googlegroups.com
This worked perfectly! Thanks Jeff!


Jeff Roehl

unread,
May 10, 2013, 6:07:27 PM5/10/13
to simile-...@googlegroups.com
That is pretty sweet.
 

From: Tirumal Panganamala <tpanga...@gmail.com>
To: simile-...@googlegroups.com
Sent: Friday, May 10, 2013 5:59 PM
Subject: Re: [Simile-Widgets] XML File input vs flat string

This worked perfectly! Thanks Jeff!


--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Reply all
Reply to author
Forward
0 new messages