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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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...
___
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
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
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
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
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
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
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
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.
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,
34 matches
Mail list logo