Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
Mike, Thank you. Your loop through the array makes perfect sense to me. On Aug 7, 2015 6:21 PM, "Mike Bonner" wrote: > A couple things, probably just typos but.. > > Your function begin and end names don't match. > You have 2 put lines on the same line, which won't work. (type on this one > i'm

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Mike Bonner
A couple things, probably just typos but.. Your function begin and end names don't match. You have 2 put lines on the same line, which won't work. (type on this one i'm sure) When you are getting stuff back out of the $_POST variable, "name" and "message" are the array keys. not "tName" or "tMess

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
In the multiLine messageBox, I have this script: - put empty into tForm put "http://myServer/post_this.lc"; into tUrl put "dave" into tName put "hello" into tMessage if libURLMultipartFormData (tForm, "name", tName, "message", tMessage) is not empty then answer it ##error else

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Mike Bonner
put "name1=value1&name2=value2&name3=value3" into tPost post tPost to URL Its also handy to use liburlformdata to build your post string also liburlmultipartformdata and liburlmultipartformaddpart On Fri, Aug 7, 2015 at 10:56 AM, Roger Eller wrote: > I want to try POST, but I don't know how to

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
I want to try POST, but I don't know how to feed it my list as a parameter without having a form involved. Any examples of POST without a html form would be helpful. ~Roger On Thu, Aug 6, 2015 at 2:38 PM, Mike Bonner wrote: > Not sure it'll make a difference, but have you considered using POS

Re: LiveCode Server latency causing empty results

2015-08-06 Thread David Bovill
; IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com > ] On Behalf > Of Mike Bonner > Sent: Thursday, August 06, 2015 2:38 PM > To: How to use LiveCode &

RE: LiveCode Server latency causing empty results

2015-08-06 Thread Ralph DiMola
ge- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mike Bonner Sent: Thursday, August 06, 2015 2:38 PM To: How to use LiveCode Subject: Re: LiveCode Server latency causing empty results Not sure it'll make a difference, but have you considered using POST rather th

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Mike Bonner
Not sure it'll make a difference, but have you considered using POST rather than get? On Thu, Aug 6, 2015 at 12:23 PM, Richard Gaskin wrote: > I don't think it's the URL length. URL length may sometimes be an issue, > but most often only for the server; since this works in a browser I think > i

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Richard Gaskin
I don't think it's the URL length. URL length may sometimes be an issue, but most often only for the server; since this works in a browser I think it may be reasonably safe to rule that out. Cookies won't appear in the data, but they can be seen with whatever tools your browser provides for e

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Roger Eller
Richard, if I view source of the result in a browser, it is just text, exactly as the database spits it out, no formatting as it is not meant for browser/human consumption. I haven't used or needed to use cookies before. This application works for 99% of the requests. Based on the size of the wo

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Richard Gaskin
Roger Eller wrote: > The URL is really long, so maybe I am hitting some upper limit within > LiveCode. The same URL pasted into a browser (chrome) receives a > result, but get URL within LiveCode does not. The parameter is just a > long list my server script looks up in a database. The list leng

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Roger Eller
Nope, that didn't resolve it. The URL is really long, so maybe I am hitting some upper limit within LiveCode. The same URL pasted into a browser (chrome) receives a result, but get URL within LiveCode does not. The parameter is just a long list my server script looks up in a database. The list le

Re: LiveCode Server latency causing empty results

2015-08-06 Thread Roger Eller
Thanks Ralph! I was thinking along those lines, but wasn't sure if the result wasn't making it back to LC Server from a database query, or whether it was the web server timing out. I'm going to try it and see what happens! ~Roger On Thu, Aug 6, 2015 at 11:06 AM, Ralph DiMola wrote: > Roger,

RE: LiveCode Server latency causing empty results

2015-08-06 Thread Ralph DiMola
Roger, Try set the socketTimeoutInterval to "milliseconds" The default seems to be 1 (10 seconds) It also works on mobile although the docs say that this is not available on mobile. I set mine to "set the socketTimeoutInterval to 3" This gives 30 seconds for the server to respond. If ther