RE: XMLHttpRequest from JavaScript to LC Server

2019-01-13 Thread Ralph DiMola via use-livecode
Example LC server script and Html page==>
https://www.dropbox.com/sh/7r1fsip3aa2bgfv/AAAW_wNEkBu9-wNjTMah3bNOa?dl=0

I cleaned it up a bit and removed debugging code. In the end it's
deceptively simple but there was a fair amount of scratching-and-sniffing
along the way. I commented the highlights. If you have any questions just
fire away.

Here's what I have working:
1) Methods==> Get and Post.
2) Cross Domain==>CORS policy satisfied. This allows you field LC Server
requests from a different domain. You can choose what domains to accept
requests from to maintain server security.
3) Sync and Async JavaScript requests to LC Server.
4) LC Server sessions maintained.
5) Creating cookies from LC server request.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XMLHttpRequest from JavaScript to LC Server

2019-01-13 Thread Matthias Rebbe via use-livecode
Yes, please post the examples.

Regards,

Matthias

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 

> Am 13.01.2019 um 00:25 schrieb Ralph DiMola via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> I have real-time "XMLHttpRequest"s in JavaScript from an html page to LC
> Server working. One can then call their favorite LC functions from a
> webpage(auto fill/ predictive search for example) instead of re-writing them
> in JavaScript. The webpage can be on a different server domain. Here's what
> I have working:
> 1) Methods==> Get and Post.
> 2) Cross Domain==>CORS policy satisfied. This allows you field LC Server
> requests from a different domain. You can choose what domains to accept
> requests from to maintain server security.
> 3) Sync and Async JavaScript requests to LC Server.
> 4) LC Server sessions maintained.
> 5) Creating cookies from LC server request.
> 
> If this isn't old news... then let me know if this is of interest to anyone.
> If so I will post example html JavaScript webpage and server side LC script.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: XMLHttpRequest from JavaScript to LC Server

2019-01-12 Thread Mark Wieder via use-livecode

On 1/12/19 3:25 PM, Ralph DiMola via use-livecode wrote:


2) Cross Domain==>CORS policy satisfied. This allows you field LC Server
requests from a different domain. You can choose what domains to accept
requests from to maintain server security.




let me know if this is of interest to anyone.


Definitely. Especially your implementation of #2.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


XMLHttpRequest from JavaScript to LC Server

2019-01-12 Thread Ralph DiMola via use-livecode
I have real-time "XMLHttpRequest"s in JavaScript from an html page to LC
Server working. One can then call their favorite LC functions from a
webpage(auto fill/ predictive search for example) instead of re-writing them
in JavaScript. The webpage can be on a different server domain. Here's what
I have working:
1) Methods==> Get and Post.
2) Cross Domain==>CORS policy satisfied. This allows you field LC Server
requests from a different domain. You can choose what domains to accept
requests from to maintain server security.
3) Sync and Async JavaScript requests to LC Server.
4) LC Server sessions maintained.
5) Creating cookies from LC server request.

If this isn't old news... then let me know if this is of interest to anyone.
If so I will post example html JavaScript webpage and server side LC script.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode