Re: Loading a local file into a UIWebView control

2011-09-15 Thread Gerry Orkin
I'm running the latest version of the simulator and with LC 4.6.4 it now works, but with 4.6.3 and earlier it doesn't. Gerry -- http://gerryorkin.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsub

Re: Loading a local file into a UIWebView control

2011-09-15 Thread James Little
Ok, will try that. Thanks. On Sep 15, 2011, at 1:21 PM, J. Landman Gay wrote: > On 9/15/11 2:06 PM, James Little wrote: >> >> Do you know, will it be possible to load local files in the simulator >> in a future LiveCode build? Or is this too much to expect with the >> simulator? > > I don't

Re: Loading a local file into a UIWebView control

2011-09-15 Thread J. Landman Gay
On 9/15/11 2:06 PM, James Little wrote: Do you know, will it be possible to load local files in the simulator in a future LiveCode build? Or is this too much to expect with the simulator? I don't think it's a LiveCode issue, it's probably the old version of the simulator I'm using. Dixie say

Re: Loading a local file into a UIWebView control

2011-09-15 Thread J. Landman Gay
On 9/15/11 2:34 PM, John Dixon wrote: Sorry Jacque... loading a local file DOES work in the simulator... Ah, okay. Good to know. It's probably my version of the simulator, I haven't updated yet to the latest. I guess it's time to brace for the gigabyte download. I wasn't sure if it would wor

RE: Loading a local file into a UIWebView control

2011-09-15 Thread John Dixon
Sorry Jacque... loading a local file DOES work in the simulator... Dixie > On Sep 14, 2011, at 8:21 PM, J. Landman Gay wrote: > > > Okay. Solved. > > Loading a local file does NOT work in the simulator. My script, which is > > similar to all your examples, works great on my real live iPad.

Re: Loading a local file into a UIWebView control

2011-09-15 Thread James Little
Do you know, will it be possible to load local files in the simulator in a future LiveCode build? Or is this too much to expect with the simulator? Jim L. On Sep 14, 2011, at 8:21 PM, J. Landman Gay wrote: > Okay. Solved. > > Loading a local file does NOT work in the simulator. My scrip

Re: Loading a local file into a UIWebView control

2011-09-15 Thread Bob Sneidar
3 I believe if you are using the full path. The extra slash means "The boot volume" as in /Users or /Library. If SpecialFolderPath returns the full path to the special folder then 2 should do it. I just checked and it does so the 2 slashes are all you need. I also entered your bit of code into t

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 10:15 PM, Roger Eller wrote: On which mobile platform? We don't have a browser control on Android yet. I was just checking the path to make sure I didn't have my slashes all wrong. On Android I used the "launch" command and it popped up a choice of html viewers. I'm glad that's w

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 10:28 PM, Gerry Orkin wrote: Loading a local file does NOT work in the simulator. My script, which is similar to all your examples, works great on my real live iPad. D'oh. I knew that from my own bitter experience loading local .pdfs. Sorry, should have remembered :( That's okay. I

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Gerry Orkin
> Loading a local file does NOT work in the simulator. My script, which is > similar to all your examples, works great on my real live iPad. D'oh. I knew that from my own bitter experience loading local .pdfs. Sorry, should have remembered :( Gerry

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
Okay. Solved. Loading a local file does NOT work in the simulator. My script, which is similar to all your examples, works great on my real live iPad. At least I know now. I wish I'd known sooner. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Roger Eller
On Wed, Sep 14, 2011 at 11:11 PM, J. Landman Gay wrote: > On 9/14/11 9:11 PM, Roger Eller wrote: > > With file: and binfile: on Windows, I never put slashes after : >> >> put quote& "file:"& specialFolderPath("documents")& slash& >> "docs.html"& >> quote into tURL >> > > That's what I'm doing

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 9:11 PM, Roger Eller wrote: With file: and binfile: on Windows, I never put slashes after : put quote& "file:"& specialFolderPath("documents")& slash& "docs.html"& quote into tURL That's what I'm doing to copy the files to the documents folder, and that part works. Still tinke

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 9:13 PM, chris thompson wrote: Here is a code snippet that works for me: put "file://"& specialFolderPath("documents")& "/MyFile.html" into theURL replace space with "%20" in theURL iphoneControlCreate "browser" put the result into browserID iphoneControlSet bro

Re: Loading a local file into a UIWebView control

2011-09-14 Thread chris thompson
Here is a code snippet that works for me: put "file://" & specialFolderPath("documents") & "/MyFile.html" into theURL replace space with "%20" in theURL iphoneControlCreate "browser" put the result into browserID iphoneControlSet browserID, "visible", "true" iphoneControlSet

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Roger Eller
On Wed, Sep 14, 2011 at 9:59 PM, J. Landman Gay wrote: > On 9/14/11 6:29 PM, John Dixon wrote: > >> >> Jacque.. >> try... >> put "file://"& specialFolderPath("documents")& slash& "docs.html" into >> tURL >> > > > Anyone know how many slashes should there be? I've seen examples with none, > one,

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Gerry Orkin
Mine works with 2, but oddly, if I remove the %20 replace it doesn't. Here's an example: put "file://" & specialFolderPath("Documents")&"/"&"hearts.html" into localURL replace " " with "%20" in localURL iphoneControlSet sHeartsScrollerId, "url", localURL Gerry On 15/09/2011, at 11:59 AM, J. L

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 6:29 PM, John Dixon wrote: Jacque.. try... put "file://"& specialFolderPath("documents")& slash& "docs.html" into tURL Anyone know how many slashes should there be? I've seen examples with none, one, two, and three. I also tried setting the defaultfolder to documents and usin

Re: Loading a local file into a UIWebView control

2011-09-14 Thread J. Landman Gay
On 9/14/11 6:29 PM, John Dixon wrote: Jacque.. try... put "file://"& specialFolderPath("documents")& slash& "docs.html" into tURLreplace space with "20%" in tURLiphoneControlSet sBrowserID, "url", tURL Thanks, but my path doesn't have any spaces, it's just as I typed it here. I tried

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Gerry Orkin
Nope, it's still missing the return! Weird. Gerry On 15/09/2011, at 10:19 AM, John Dixon wrote: > put "file://" & specialFolderPath("documents") & slash & "docs.html" into > tURLreplace space with "20%" in tURLiphoneControlSet sBrowserID, "url", tURL _

RE: Loading a local file into a UIWebView control

2011-09-14 Thread John Dixon
There was when I wrote it... but obviously not when it arrived... :-( put "file://" & specialFolderPath("documents") & slash & "docs.html" into tURLreplace space with "20%" in tURLiphoneControlSet sBrowserID, "url", tURL might be be

Re: Loading a local file into a UIWebView control

2011-09-14 Thread Bob Sneidar
I'm going to say there was supposed to be a cr in there somewhere... On Sep 14, 2011, at 4:29 PM, John Dixon wrote: > > Jacque.. > try... > put "file://" & specialFolderPath("documents") & slash & "docs.html" into > tURLreplace space with "20%" in tURLiphoneControlSet sBrowserID, "url", tURL >

RE: Loading a local file into a UIWebView control

2011-09-14 Thread John Dixon
Jacque.. try... put "file://" & specialFolderPath("documents") & slash & "docs.html" into tURLreplace space with "20%" in tURLiphoneControlSet sBrowserID, "url", tURL > I can't get a local file to load into a UIWebView control. The control > loads a remote url from my server okay, so it's work