Re: On-Rev mySQL security issues? -- or use an LC stack for the DB?

2011-11-28 Thread Pierre Sahores
Hi Tim, In an n-tiers app logic build on top of LC-server, the best is to 1.- use a script.lc to bind the web UI+forms to the backend where the script.lc is just a couple of lines : ?lc try start using stack server_lib.livecode get yourapplogics_code() catch tErr

Fwd: On-Rev mySQL security issues? -- or use an LC stack for the DB?

2011-11-28 Thread Pierre Sahores
Please replace below : get yourapplogics_code() with get yourserver_response() Début du message réexpédié : De : Pierre Sahores s...@sahores-conseil.com Date : 28 novembre 2011 11:47:37 HNEC À : How to use LiveCode use-livecode@lists.runrev.com Cc : Pierre Sahores

Re: How do I import/read images and their ID from a separate folder to change the icon of a button?

2011-11-28 Thread William de Smet
Thanks for the info! It's not quite working because it needs to happen 'invisible' so 'answer file' is not what I need. And then there is the random function as well. Do you think it is possible to use put the files into fld pictures and then pick one at random? greetings, William

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
I have been trying to find a way for the user to change a text field from unlocked to locked and back without leaving the field, just using mouse clicks. I have found (stumbled on) a way that appears altogether illegitimate. If the field is unlocked I can type into the field as expected. If I

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
I'll have to wait for the summary list to respond to answers to that last message, as I still cannot access the RR archives. Heather? Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Accessing archives

2011-11-28 Thread Heather Nagey
Just to let you all know, the list archives should once again be available, on http://lists.runrev.com/pipermail/use-livecode/ Warm Regards, Heather On 26 Nov 2011, at 20:28, Richmond wrote: On 11/26/2011 08:06 PM, Jim Hurley wrote: Wilhelm et. at. Here is Heather's response to my

Re: Accessing archives

2011-11-28 Thread Richard Gaskin
Heather Nagey wrote: Just to let you all know, the list archives should once again be available, on http://lists.runrev.com/pipermail/use-livecode/ Thank you, Heather. With the volume of messages here and the complexity of my In Box, I use the archives to read the list daily. Having them

Re: Accessing archives

2011-11-28 Thread Richmond
On 11/28/2011 07:42 PM, Heather Nagey wrote: Just to let you all know, the list archives should once again be available, on http://lists.runrev.com/pipermail/use-livecode/ Warm Regards, Heather Thank you very much indeed. ___ use-livecode

focus on field broke?

2011-11-28 Thread Bob Sneidar
At the end of my openStack handler in my CSL Logon stack I have a simple line: focus on field fldusername Also, I have some code a bit before it, which looks like this: go invisible stack CSL Launcher go me I do this because all the database initialization and access code is in CSL

Globals from the message box

2011-11-28 Thread Bob Sneidar
Hi all. I seem to remember this working once, but it does not work now. In the message box I put: global gLogonSite,gSiteID;put gLogonSite , gSiteID I get true. I should be getting something like 0,2. Are semicolons legal in the message box or no? I know I can use the multiline section

Re: Unlocked field receives the mouseUp message

2011-11-28 Thread Peter M. Brigham, MD
I have the following in a frontscript, so it works on any field: on mouseup theBtn if theBtn 1 then pass mouseup if the target begins with field then if the commandkey is down and the shiftkey is down then set the writable of the target to not the writable of the target

Re: Globals from the message box

2011-11-28 Thread Mike Bonner
Seems like it should work but.. To get around this weirdness, define the globals once in the message box by themselves at which point they will stick and you can use them to your hearts content. Meaning: global gLogonSite,gSiteID -- once at which point it seems that any and all future references

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
Thanks Peter. Actually i do want to just toggle the locktext of the field. I use the field to proofread the text by reading from the clickchunk to the end using revspeak. If I encounter an error while speaking, I want to be able to easily click the field again to allow for edit. The control

setProp Recursion

2011-11-28 Thread Pete
I have a setProp handler that refers to its own custom property, eg setProp xyz pvalue ... ... ... set the xyz of the target to abc ... ... ... end xyz According to the Reference manual If you use the set command within a setProp handler to set the same custom property for the current object, no

Re: Some questions about revBrowser

2011-11-28 Thread Matthias Rebbe
Hi, and thanks to both of you. Had again a little spare time to investigate revbrowser a little bit more. A new problem now is: I use revbrowser to open a specific page. This page contains javascript. There are buttons on that page which use the javascript window.open function to open a new

Re: Globals from the message box

2011-11-28 Thread Bob Sneidar
Wait, you are saying that I can refer to the globals later without first declaring them to be globals? I did not know that! Bob On Nov 28, 2011, at 12:57 PM, Mike Bonner wrote: Seems like it should work but.. To get around this weirdness, define the globals once in the message box by

Re: Globals from the message box

2011-11-28 Thread J. Landman Gay
On 11/28/11 2:07 PM, Bob Sneidar wrote: That works famously! It's only in the single line message box that semicolon delimited put statements using globals always resolves to true. Sounds buggy to me! The message box has automatic access to any globals that have already been declared, so you

Re: Globals from the message box

2011-11-28 Thread Mike Bonner
Yep, messed around with this a bit and it does seem to work fine. If you need to add a global later on, just declare that one once too and its added to the list the message box can see. (or so it seems to me) On Mon, Nov 28, 2011 at 4:01 PM, Bob Sneidar b...@twft.com wrote: Wait, you are saying

Re: Globals from the message box

2011-11-28 Thread Mike Bonner
Interesting. I tried using a global from the message box without first declaring it once. Didn't work for me. Then declared it and it did. What am I missing? On Mon, Nov 28, 2011 at 4:06 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 11/28/11 2:07 PM, Bob Sneidar wrote: That works

Re: setProp Recursion

2011-11-28 Thread Mark Schonewille
Pete, Try lock messages or pass xyz. setProp xyz theValue lock messages set the xyz of me to theValue unlock messages //optional end xyz setProp xyz theValue put somethingElse into theValue pass setProp end xyz Frankly I'm not entirely sure that the second example works. I think I

Re: Globals from the message box

2011-11-28 Thread Bob Sneidar
Ok thanks that makes sense. I have a fuzzy recollection in the past that that didn't work for me but I suspect my coding at that time was fuzzier still. Bob On Nov 28, 2011, at 3:06 PM, J. Landman Gay wrote: On 11/28/11 2:07 PM, Bob Sneidar wrote: That works famously! It's only in the

Re: Globals from the message box

2011-11-28 Thread J. Landman Gay
On 11/28/11 5:09 PM, Mike Bonner wrote: Interesting. I tried using a global from the message box without first declaring it once. Didn't work for me. Then declared it and it did. What am I missing? It has to have been already declared, either in a one-time declaration in the message box, or

Re: Selecting Multiple Buttons in iOS

2011-11-28 Thread J. Landman Gay
On 11/27/11 8:28 PM, Randy Hengst wrote: I thought it would be nice to allow the user to select a button with a tap and then slide(swipe) to the right or left to select other buttons. Create a script local variable to serve as a flag, and initialize it to false. When the first button gets a

Re: setProp Recursion

2011-11-28 Thread Pete
Thanks. Yes I saw a mention of lock messages in another place in the manual that didn't seem to apply to my circumstance but that seems to have fixed the problem. Pete On Mon, Nov 28, 2011 at 3:11 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Pete, Try lock messages or pass

Re: Globals from the message box

2011-11-28 Thread Bob Sneidar
Whoa! Yes you can! That means I can debug why the message box acts that way! to be continued... Bob On Nov 28, 2011, at 4:41 PM, Bob Sneidar wrote: Now let's see, can I use breakpoint in a semicolon delimited single line statement... ___

Re: Selecting Multiple Buttons in iOS

2011-11-28 Thread Randy Hengst
Hi Jacque, Thank you… that's basically what I was doing with a global… but working only button scripts. I'll put handlers in the card and try again. be well, randy -- On Nov 28, 2011, at 5:53 PM, J. Landman Gay wrote: On 11/27/11 8:28 PM, Randy Hengst wrote: I thought it would be nice

startup handler

2011-11-28 Thread Mark Smith
Hi, just wondering if there is something special about the startup handler. The following code (executed in the IDE) does nothing: on startup if the cpassword of this stack is empty then ask password Please enter a new password: put it into temp1 ask password Please re-enter

Re: On-Rev mySQL security issues? -- or use an LC stack for the DB?

2011-11-28 Thread Tim Selander
Hi Pierre, It took me a couple readings to follow your email (I'm a newbie!) but I think I get it... especially the point about not using a flat database, but letting the various parts of the system work in parallel. I hadn't thought about the performance hit if there are many, many users

Re: startup handler

2011-11-28 Thread J. Landman Gay
On 11/28/11 8:31 PM, Mark Smith wrote: Hi, just wondering if there is something special about the startup handler. The following code (executed in the IDE) does nothing: on startup if the cpassword of this stack is empty then snip Startup is sent only once when the engine is first

Re: Globals from the message box

2011-11-28 Thread J. Landman Gay
On 11/28/11 6:41 PM, Bob Sneidar wrote: Got it. What an interesting quirk though that if you do re-declare them, they always resolve to true! It's the same thing that came up a week or so ago. Getting anything in the message box returns a boolean, which tells you if the command succeeded. If

Re: startup handler

2011-11-28 Thread J. Landman Gay
On 11/28/11 10:15 PM, Mark Smith wrote: Now, before I begin, both the stack in the IDE and tested on the iPhone simulator report the encrypted pw as \VUw|1,A so, no difference there. I get a difference. The above code works fine on the IDE when the correct pw is entered (montreal), and

Re: Globals from the message box

2011-11-28 Thread Mark Wieder
Bob- Monday, November 28, 2011, 4:44:41 PM, you wrote: Whoa! Yes you can! That means I can debug why the message box acts that way! to be continued... Ow! My head! You've gotta watch that stuff... you'll start getting recursive and end up in one of Jacque's wormholes. Before you know it

Re: startup handler

2011-11-28 Thread Mark Smith
J. Landman Gay wrote On 11/28/11 10:15 PM, Mark Smith wrote: Now, before I begin, both the stack in the IDE and tested on the iPhone simulator report the encrypted pw as \VUw|1,A so, no difference there. I get a difference. Thank you (once again). Your testing was more thorough.

Re: On-Rev mySQL security issues? -- or use an LC stack for the DB?

2011-11-28 Thread Kay C Lan
On Mon, Nov 28, 2011 at 11:55 AM, Tim Selander selan...@tkf.att.ne.jpwrote: Any thoughts on validation needs for lookups only? And on using a stack or text file for the data? (Hmmm... how does the LC server handle variables - limit on size?) Tim, again I'm no expert here (on anything, LC,