Re: LC Web integration is not good enough

2018-05-01 Thread Monte Goulding via use-livecode
> On 2 May 2018, at 9:20 am, Andre Garzia wrote: > > The problem is that no web api expects an object with numeric keys, it > expects an honest, real, array. The fact that LC arrays are actually hashmaps > is awesome, I love them as well, but it still makes it impossible to export > arrays fr

Re: LC Web integration is not good enough

2018-05-01 Thread Andre Garzia via use-livecode
Monte, The problem is that no web api expects an object with numeric keys, it expects an honest, real, array. The fact that LC arrays are actually hashmaps is awesome, I love them as well, but it still makes it impossible to export arrays from LC which are really common on Web APIs. JSONExport lib

Re: LC Web integration is not good enough

2018-05-01 Thread Mark Wieder via use-livecode
On 04/30/2018 06:42 PM, Monte Goulding via use-livecode wrote: ArrayToJSON deals with JSON list differently to JSONExport. ArrayToJSON uses mergJSON which checks if the array keys are a numeric sequence and assumes it’s a list. There is a way to force it to be an object if required. Ah, righ

Re: LC Web integration is not good enough

2018-04-30 Thread Monte Goulding via use-livecode
> On 1 May 2018, at 11:29 am, Mark Wieder via use-livecode > wrote: > > On 04/30/2018 03:15 PM, Ralph DiMola via use-livecode wrote: >> Andre, >> I'm using JSONToArray and ArrayToJSON for round trip with no problems. I'm >> storing an LC config array in a JSON text file, then later read the fi

Re: LC Web integration is not good enough

2018-04-30 Thread Mark Wieder via use-livecode
On 04/30/2018 03:15 PM, Ralph DiMola via use-livecode wrote: Andre, I'm using JSONToArray and ArrayToJSON for round trip with no problems. I'm storing an LC config array in a JSON text file, then later read the file back into an LC array. The only criticism I have is the formatting of the JSON i

Re: LC Web integration is not good enough

2018-04-30 Thread Bob Sneidar via use-livecode
> On Apr 30, 2018, at 14:30 , Andre Garzia via use-livecode > wrote: > > Hi Friends, > > This is a bit of a rant because I can't believe no one stopped by these > kind of problems before. Sounds like what I went through getting MacOS Livecode to tell Applescript to tell Acrobat to run a J

RE: LC Web integration is not good enough

2018-04-30 Thread Ralph DiMola via use-livecode
ecode Sent: Monday, April 30, 2018 5:30 PM To: How to use LiveCode Cc: Andre Garzia Subject: LC Web integration is not good enough Hi Friends, This is a bit of a rant because I can't believe no one stopped by these kind of problems before. First of all, the JS Handlers for a browser widget are one

LC Web integration is not good enough

2018-04-30 Thread Andre Garzia via use-livecode
Hi Friends, This is a bit of a rant because I can't believe no one stopped by these kind of problems before. First of all, the JS Handlers for a browser widget are one way only. There is no way to call a LiveCode function from JS and actually see a response. You need to code two JS functions, one