POST command and Previous Request Not completed
Hi friends, I have a little understanding problem. 8-) Say we have some POST commands and fire them one after another. Now according to the docs, the POST command is blocking, so we should NOT see the error dialog Previous Request Not completed“ any time, right? But under some (mysterious) circumstances we actually do, what am I missing? Thanks a lot for any insight! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Do new Livecode 8 widgets work on mobile?
Hi David, If you do put true into gRevDevelopment in the message box you'll find break points are honoured and you can also use the contextual menu to find the function you're looking for. Ali On Saturday, 20 June 2015, David Bovill david@viral.academy wrote: Isn't it crazy that given how easy it is to edit and change / fix LiveCode IDE stacks we are still waiting for the mothership to fix simple errors like this instead of patching them and submitting fixes ourselves? The code is: on mouseUp answer What version of XCode do you have installed? with 4.2 or earlier and 4.3 or later if it contains 4.3 then answer file Select your XCode app bundle with filter APPL if it is not empty then put /Contents/Developer after it end if else answer folder Please choose the developer root for your iOS 5.0 and above SDK end if if it is not empty then if *revIDEDeployIOSIsValidSDK*(it) then * setIOSSdk it* else answer error The chosen folder is not a valid iOS SDK. end if end if end mouseUp I can't find exactly where the *setIOSSdk *handler is. I guess the error is in the revIDEDeployIOSIsValidSDK() function - which I can;t find either. Any tips with regard to how to debug IDE errors - given the debugger seems to get a bit flaky when debugging the IDE - checkpoints are not recognised? On 19 June 2015 at 23:41, Dave Kilroy d...@applicationinsight.com javascript:; wrote: Sorry I must have given you bad advice - I just installed Xcode 6.3.1 and it didn't work with LC 8 dp1 or dp2 - maybe when LC 8 came out in early April I was using Xcode 6.3.0 - I was also probably running an earlier version of iOS... I think unless we can recreate the same conditions in our development AND test machines to those we had in early April that we are stuffed until they bring out dp3 - The difference between genius and stupidity is; genius has its limits. - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693217.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com javascript:; 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 javascript:; 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: Do new Livecode 8 widgets work on mobile?
Thanks ALI - that helps - made a start on a patch :) On 20 June 2015 at 09:47, Ali Lloyd a...@runrev.com wrote: Hi David, If you do put true into gRevDevelopment in the message box you'll find break points are honoured and you can also use the contextual menu to find the function you're looking for. Ali On Saturday, 20 June 2015, David Bovill david@viral.academy wrote: Isn't it crazy that given how easy it is to edit and change / fix LiveCode IDE stacks we are still waiting for the mothership to fix simple errors like this instead of patching them and submitting fixes ourselves? The code is: on mouseUp answer What version of XCode do you have installed? with 4.2 or earlier and 4.3 or later if it contains 4.3 then answer file Select your XCode app bundle with filter APPL if it is not empty then put /Contents/Developer after it end if else answer folder Please choose the developer root for your iOS 5.0 and above SDK end if if it is not empty then if *revIDEDeployIOSIsValidSDK*(it) then * setIOSSdk it* else answer error The chosen folder is not a valid iOS SDK. end if end if end mouseUp I can't find exactly where the *setIOSSdk *handler is. I guess the error is in the revIDEDeployIOSIsValidSDK() function - which I can;t find either. Any tips with regard to how to debug IDE errors - given the debugger seems to get a bit flaky when debugging the IDE - checkpoints are not recognised? On 19 June 2015 at 23:41, Dave Kilroy d...@applicationinsight.com javascript:; wrote: Sorry I must have given you bad advice - I just installed Xcode 6.3.1 and it didn't work with LC 8 dp1 or dp2 - maybe when LC 8 came out in early April I was using Xcode 6.3.0 - I was also probably running an earlier version of iOS... I think unless we can recreate the same conditions in our development AND test machines to those we had in early April that we are stuffed until they bring out dp3 - The difference between genius and stupidity is; genius has its limits. - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693217.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com javascript:; 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 javascript:; 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 ___ 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: Drag and dropping images from a browesr
David Bovill wrote: When I drag and drop an image onto LiveCode from Firefox I get the following data in the dropdata [files] 䕒佖〷〰⼀ U䠖汥敶楴慣丠略ⱥ湵捩摯ᥥ ഀ'ࠀ No idea what that is :) Which engine version are you using, and which OS version? This is a bug I had thought was fixed, and indeed one of my handlers that depends on this seems to work in recent versions. However, I just noticed the bug report for it remains Confirmed but not Fixed, so perhaps it still affects some systems: http://quality.runrev.com/show_bug.cgi?id=14834 Feel free to add notes there to help the team pin this down. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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
Drag and dropping images from a browesr
When I drag and drop an image onto LiveCode from Firefox I get the following data in the dropdata [files] 䕒佖〷〰⼀ U䠖汥敶楴慣丠略ⱥ湵捩摯ᥥ ഀ'ࠀ No idea what that is :) Nothing usefull is returned in the other data fields: styles, rtf, unicode, text In Google Chrome the only data I get is for dropdata [image] and looks something like: ˇÿˇ‡JFIFˇ˛GFile source: http://commons.wikimedia.org/wiki/File:Falafel_balls.jpgˇ‚@ICC_PROFILE0ADBEmntrRGB XYZ œacspAPPLnoneˆ÷”-ADBE cprt¸2desc0kwtptúbkpt∞rTRCƒgTRC‘bTRC‰rXYZÙgXYZbXYZtextCopyright 1999 Adobe Systems IncorporateddescAdobe RGB (1998)XYZ ÛQÃXYZ curv3curv3curv3XYZ Does anyone know what these encoding are - and would it not be useful if liveCode reported consistent results between browsers? ___ 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: POST command and Previous Request Not completed
Bonjour mon ami, Am 20.06.2015 um 16:11 schrieb Pierre Sahores s...@sahores-conseil.com: Guten Tag Freud Klaus, Does it still occurs if each POST command is followed by a « put it into mylocalVar » : Post ... put it ... Post ... put it … etc… I am checking: if IT = empty then… Does that count? 8-) Maybe i am just misunderstand „blocking“ here!? I thought this would be like firing an ASK or ANSWER dialog, no? Tchuss, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: POST command and Previous Request Not completed
On 6/20/2015 10:10 AM, J. Landman Gay wrote: On June 20, 2015 9:18:59 AM CDT, Klaus major-k kl...@major-k.de wrote: Maybe i am just misunderstand „blocking“ here!? I thought this would be like firing an ASK or ANSWER dialog, no? It blocks libURL from accepting a new request but returns control to your script after a brief time. So it isn't like an answer dialog in that way. I was going to ask about this myself yesterday. Some of my client's users get this error frequently and I haven't yet found a good workaround. I'm using a kludge that resends the request several times until that error no longer occurs but it doesn't work very well. I'd love to know how others handle it because it's causing all kinds of problems in our app. Oops, sorry, my app is using GET instead of POST. So my answer isn't quite right. Listen to Trevor. But if anyone knows a way to avoid the previous request not completed when getting a URL I'd love to know. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: POST command and Previous Request Not completed
On Saturday, June 20, 2015, Klaus major-k kl...@major-k.de wrote: Say we have some POST commands and fire them one after another. Now according to the docs, the POST command is blocking, so we should NOT see the error dialog Previous Request Not completed“ any time, right? But under some (mysterious) circumstances we actually do, what am I missing? Thanks a lot for any insight! I think you could run into this problem if you are using send in time. POST will keep the handler it is in from continuing but another handler could start executing with a send in time call. -- Trevor DeVore ___ 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
Displaying a jpg photo larger than my liveCode window ?
Hi from Beautiful Brittany, To Mike Bonner and Brahmanathaswami, Many thanks to you both - two radically different approaches !! I will try them both and let you know which one I use. -Francis ___ 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: POST command and Previous Request Not completed
On June 20, 2015 9:18:59 AM CDT, Klaus major-k kl...@major-k.de wrote: Maybe i am just misunderstand „blocking“ here!? I thought this would be like firing an ASK or ANSWER dialog, no? It blocks libURL from accepting a new request but returns control to your script after a brief time. So it isn't like an answer dialog in that way. I was going to ask about this myself yesterday. Some of my client's users get this error frequently and I haven't yet found a good workaround. I'm using a kludge that resends the request several times until that error no longer occurs but it doesn't work very well. I'd love to know how others handle it because it's causing all kinds of problems in our app. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: POST command and Previous Request Not completed
Guten Tag Freud Klaus, Does it still occurs if each POST command is followed by a « put it into mylocalVar » : Post ... put it ... Post ... put it … etc… Tchuss, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com Le 20 juin 2015 à 14:35, Klaus major-k kl...@major-k.de a écrit : Hi friends, I have a little understanding problem. 8-) Say we have some POST commands and fire them one after another. Now according to the docs, the POST command is blocking, so we should NOT see the error dialog Previous Request Not completed“ any time, right? But under some (mysterious) circumstances we actually do, what am I missing? Thanks a lot for any insight! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Do new Livecode 8 widgets work on mobile?
Ali Lloyd wrote: If you do put true into gRevDevelopment in the message box you'll find break points are honoured and you can also use the contextual menu to find the function you're looking for. That breakpoints don't affect the IDE by default makes good sense, and the gRevDevelopment global is a useful flag for that. However, as long as the IDE scripts are available without it never made sense to make it cumbersome to navigate those handlers by disabling the Go To Definition item in the context menu. Thankfully that was fixed, and I can confirm that as of 6.7.6/7.0.6 we no longer need to set gRevDevelopment just to use the Go To Definition item: http://quality.runrev.com/show_bug.cgi?id=10722 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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
Re: POST command and Previous Request Not completed
Trevor DeVore wrote: On Saturday, June 20, 2015, Klaus major-k klaus at major-k.de wrote: Say we have some POST commands and fire them one after another. Now according to the docs, the POST command is blocking, so we should NOT see the error dialog Previous Request Not completed“ any time, right? But under some (mysterious) circumstances we actually do, what am I missing? I think you could run into this problem if you are using send in time. POST will keep the handler it is in from continuing but another handler could start executing with a send in time call. I wish it were so easy. I have a button which toggles between opening a record for editing and saving a record. When opening for editing it uses GET, and for saving it uses POST. When I click the button quickly in success while it's in Save mode, it initiates the post but then queues the GET too close behind, perhaps even before POST is done, and then libURL goes into an odd state complaining about certs it otherwise has no problem with. I'll see if I can get some time to assemble a simple demo stack and submit a bug report, but in short I believe Klaus is onto something, that POST is only blocking in some very specific ways that are difficult to identify and anticipate. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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
Re: POST command and Previous Request Not completed
I have a couple curiosity questions re: post. The dictionary (7.0.5) has the following Note: The Android and iOS engines do not support 'libUrl' but allow you to use post in the background. [...] Does anyone have an example of using post in the background on mobile? Is there a callback message involved? I was also wondering if there is a way to use the load command to post.. And if so, would this allow multiple quick post requests, with callback to be done? On Sat, Jun 20, 2015 at 12:45 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 6/20/2015 1:06 PM, Richard Gaskin wrote: I believe Klaus is onto something, that POST is only blocking in some very specific ways that are difficult to identify and anticipate. There's someone on the forums with the same POST issue. They're trying to POST every few seconds and they're getting this error. Their work may provide a good example stack. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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: local variable being reset from outside of script
On Fri, Jun 19, 2015 at 4:07 PM, Mark Wieder mwie...@ahsoftware.net wrote: Could also be launching a palette stack from a behavior object. It's possible that on return it launches a new behavior instance. Dunno. It's a bug if so. I seem to have found it--it's one of the same-old IDE bugs that has been wasting our time for years. The single-stepper simply didn't bother to follow code into the closeField handler in the same script. In that handler, i checked for textChanged as item 2 of line -2 of the execution contexts. It should now be line 1 of the execution contexts. you're pretty^H^H^HVERY good at producing the unexpected. That's been true as long as I've been coding :( [My father claims that machines are out to get me. Now, if *I* thought that, I would be paranoid. I do have to grant, however, that all of the evidence seems to be on his side . . .. {p.s. Anyone know where to buy the pin that connects the primary and secondary plates on a 1972 Cadillac quadrate carburetor? } ] -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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: POST command and Previous Request Not completed
On 6/20/2015 1:06 PM, Richard Gaskin wrote: I believe Klaus is onto something, that POST is only blocking in some very specific ways that are difficult to identify and anticipate. There's someone on the forums with the same POST issue. They're trying to POST every few seconds and they're getting this error. Their work may provide a good example stack. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: local variable being reset from outside of script
On 6/20/2015 1:42 PM, J. Landman Gay wrote: On 6/20/2015 1:00 PM, Dr. Hawkins wrote: The single-stepper simply didn't bother to follow code into the closeField handler in the same script. A closefield handler won't be called while stepping through a different handler, it's an independent message (unless your handler specifically calls closefield itself.) You need to set a breakpoint within the closefield handler. All LC event messages work that way. I misphrased that. I meant that you can't step into an independent event message handler while tracing a different one. The closefield will be sent of course; it just isn't related to the handler you're currently tracing. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: local variable being reset from outside of script
On 6/20/2015 1:00 PM, Dr. Hawkins wrote: The single-stepper simply didn't bother to follow code into the closeField handler in the same script. A closefield handler won't be called while stepping through a different handler, it's an independent message (unless your handler specifically calls closefield itself.) You need to set a breakpoint within the closefield handler. All LC event messages work that way. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
iOS not liking specialFolderPath(Preferences)
In the code sequence (in preOpenStack) *answer* ck 28 *answer* specialFolderPath(Preferences) errorDialog produces Execution error 21,39,1 241, 39, 1 preOpenStack 353,0,0 stack /var/moble/Containers/Bundle/Spplication/hex codeVampHeart.app/VampHeart This is on an actual 6+; the simulator just crashes hard. Error 21 seems to be 21 answer: error in response expression While 241 is 241 Handler: error in statement Neither of which seem to make any sense when asking for the preferences folder. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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: iOS not liking specialFolderPath(Preferences)
When an application is installed on a phone (or in the simulator) a number of initial folders are created for use by the application. You can locate the paths to these folders using the specialFolderPath() function with the following selectors: • home – the (unique) folder containing the application bundle and its associated data and folders • documents – the folder in which the application should store any document data (this folder is backed up by iTunes on sync) • cache – the folder in which the application should store any transient data that needs to be preserved between launches (this folder is not backed up by iTunes on sync) • library – the folder in which the application can store data of various types. In particular, data private to the application should be stored in a folder named with the app's bundle identifier inside library. (this folder is backed up by iTunes on sync). • temporary – the folder in which the application should store any temporary data that is not needed between launches (this folder is not backed up by iTunes on sync) • engine – the folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into the bundle at build time. In general you should only create files within the documents, cache, and temporary folders. Indeed, be careful not to change or add any files within the application bundle. The application bundle is digitally signed when it is built, and any changes to it after this point will invalidate the signature and prevent it from launching. Date: Sat, 20 Jun 2015 18:59:41 -0700 Subject: iOS not liking specialFolderPath(Preferences) From: doch...@gmail.com To: use-livecode@lists.runrev.com In the code sequence (in preOpenStack) *answer* ck 28 *answer* specialFolderPath(Preferences) errorDialog produces Execution error 21,39,1 241, 39, 1 preOpenStack 353,0,0 stack /var/moble/Containers/Bundle/Spplication/hex codeVampHeart.app/VampHeart This is on an actual 6+; the simulator just crashes hard. Error 21 seems to be 21 answer: error in response expression While 241 is 241 Handler: error in statement Neither of which seem to make any sense when asking for the preferences folder. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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
advertising on mobile
Is anyone here doing an advertising-based mobile app with the livened partner? Does it work? Are there other/better options/ -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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