web page in scrolling text field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Appy777
Posts: 42
Joined: Fri Aug 22, 2014 10:14 pm

Re: web page in scrolling text field

Post by Appy777 » Tue Sep 09, 2014 10:44 am

Sorry, I am on windows. I have an android tablet connected by USB, in debugging mode.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: web page in scrolling text field

Post by Simon » Tue Sep 09, 2014 7:47 pm

Hi Prue,
Yes, I'm on Windows (7) as well with a Kindle Fire connected via USB.
I see the Fire comes with a native pdf reader, do you have one installed?

The code in the stack I posted is not really finished, put this into the field script;

Code: Select all

on mouseUp
   --Check if the file is there
   if there is not a file (specialFolderPath("documents") & "/" & the selectedText of me) then
      --Copy the file from the engine to the documents folder
      put url ("binfile:" & specialFolderPath("engine") & "/" & the selectedText of me) into url("binfile:" & specialFolderPath("documents") & "/" & the selectedText of me)
      launch url ("file://" & specialFolderPath("documents") & "/" & the selectedText of me)
   else -- just launch the document
      --Mobile didn't like trying to run the video from the engine folder
      launch url ("file://" & specialFolderPath("documents") & "/" & the selectedText of me)
   end if
end mouseUp
Still not clear why you are unable to view a jpg, maybe try a smaller file?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply