Navigator 7.1rc1 is available

2019-01-12 Thread Geoff Canyon via use-livecode
As usual, you can get Navigator here
. Or grab it
from GitHub .

Also, as part of this update I created several new scripts. I recorded my
screen while using Navigator to convert those scripts to behaviors. It's
super-easy, and the video only runs a minute-twenty. Find out how easy it is
!

For details read the release notes
,
but briefly this:

-- fixes the prefs file not saving.
-- fixes the card popup menu not including a fold-level menu.
-- significantly improves the relayering code. In particular, relayering
groups works properly now.
-- adds an editor for custom list strings, with a preview so you can see if
your string will work and what it will look like.

If you find any bugs, file them here
.
___
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


Re: Repeat for each line of a variable or field?

2019-01-12 Thread J. Landman Gay via use-livecode
Variables are always faster, but how much faster depends on what you're 
doing in the "etc" part. Just reading the lines will be quicker than 
writing back to the field on each iteration.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 12, 2019 10:03:33 AM David Epstein via use-livecode 
 wrote:


I've done a little bit of speed testing showing extremely slight 
differences, but wonder if anyone who understands the "engine" can advise 
on this:


Is there a difference between these two approaches?

(1) put fld 1 into txt; repeat for each line k in txt; etc.

and
(2) repeat for each line k in fld 1; etc.

For no very good reason, I tend to do (1), but have begun to wonder:  for a 
very lengthy field 1, does my writing to a variable use up more RAM, and so 
perhaps injure performance?  Or is the engine in effect writing to a 
variable either way?  Is a variable read more quickly than a field?


Many thanks.
David Epstein
___
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: Repeat for each line of a variable or field?

2019-01-12 Thread Tore Nilsen via use-livecode
When using a field with close to 45000 lines, the second (using the lines of 
the field) version takes on average 23 milliseconds, whereas using a variable 
takes on average 15 milliseconds. For a field /variable with 5000 lines  the 
difference is about 2 milliseconds here. The actual speed and difference will 
vary according to your hardware I guess.

Best regards
Tore Nilsen



> 12. jan. 2019 kl. 17:01 skrev David Epstein via use-livecode 
> :
> 
> I've done a little bit of speed testing showing extremely slight differences, 
> but wonder if anyone who understands the "engine" can advise on this:
> 
> Is there a difference between these two approaches?
> 
> (1) put fld 1 into txt; repeat for each line k in txt; etc.
> 
> and
> (2) repeat for each line k in fld 1; etc.
> 
> For no very good reason, I tend to do (1), but have begun to wonder:  for a 
> very lengthy field 1, does my writing to a variable use up more RAM, and so 
> perhaps injure performance?  Or is the engine in effect writing to a variable 
> either way?  Is a variable read more quickly than a field?  
> 
> Many thanks.
> David Epstein
> ___
> 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: Repeat for each line of a variable or field?

2019-01-12 Thread JB via use-livecode
It is faster to use version 1 because accessing the
lines in a variable is faster than accessing lines in
a field.

JB


> On Jan 12, 2019, at 8:01 AM, David Epstein via use-livecode 
>  wrote:
> 
> I've done a little bit of speed testing showing extremely slight differences, 
> but wonder if anyone who understands the "engine" can advise on this:
> 
> Is there a difference between these two approaches?
> 
> (1) put fld 1 into txt; repeat for each line k in txt; etc.
> 
> and
> (2) repeat for each line k in fld 1; etc.
> 
> For no very good reason, I tend to do (1), but have begun to wonder:  for a 
> very lengthy field 1, does my writing to a variable use up more RAM, and so 
> perhaps injure performance?  Or is the engine in effect writing to a variable 
> either way?  Is a variable read more quickly than a field?  
> 
> Many thanks.
> David Epstein
> ___
> 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


Repeat for each line of a variable or field?

2019-01-12 Thread David Epstein via use-livecode
I've done a little bit of speed testing showing extremely slight differences, 
but wonder if anyone who understands the "engine" can advise on this:

Is there a difference between these two approaches?

(1) put fld 1 into txt; repeat for each line k in txt; etc.

and
(2) repeat for each line k in fld 1; etc.

For no very good reason, I tend to do (1), but have begun to wonder:  for a 
very lengthy field 1, does my writing to a variable use up more RAM, and so 
perhaps injure performance?  Or is the engine in effect writing to a variable 
either way?  Is a variable read more quickly than a field?  

Many thanks.
David Epstein
___
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


Is there a web developer road map for LiveCode?

2019-01-12 Thread Mark Rauterkus via use-livecode
Hi,

These others seem complicated. Not that LC is a walk in the park, but it
might be nice to input one.

https://medium.com/level-up-web/developer-roadmaps-all-in-one-place-75c0402db0e0


Mark
-- 
-- 
Ta.


Mark Rauterkus   mark.rauter...@gmail.com
Swimming and Water Polo Coach, Schenley High School, Pittsburgh, PA
http://CLOH.wikia.com
412 298 3432 = cell
___
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