How to make LiveCode multidimensional array contents available to Javascript?

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Mon Jul 18 07:36:35 EDT 2011


So, I discovered the thread on Mark Smith's LibJson project via the list archives and subsequently downloaded v1.0b it from revOnline. 

This looks like it might be an efficient mechanism to serialise the LiveCode array(s) to subsequently write into a text file, zip, ftp - and then see if Javascript can find (and hopefully understand) the result!

Kudos to Mark for sharing.
Best,
Keith..       

On 18 Jul 2011, at 11:41, Keith Clarke wrote:

> ...whoops, forgot to ask whether JSON is one of the options I should be researching.
> Best,
> Keith.. 
> 
> On 18 Jul 2011, at 11:35, Keith Clarke wrote:
> 
>> Hi folks,
>> I have a LiveCode array that contains interesting intranet web site page navigation and page-specific parameters - that I can pass into a revBrowser 'hosted' within my local stack.
>> 
>> It's now time to test this resource with users who can't use revlets. Security implications mean that it's not practical in the short-term to turn the array into some kind of web service on my VPS or on-rev server. So, I'm thinking to FTP this array data back to the intranet server as some kind of static resource so that Javascript can access its contents from within standard browser pages.
>> 
>> What are the options for packaging-up the LiveCode multi-dimensional array for easy access via Javascript? Is there some kind of binary 'array' file type standard that both languages understand or do I have to use text/XML files or similar?
>> 
>> Any insights or research links would be much appreciated.
>> Best,
>> Keith..
> 





More information about the use-livecode mailing list