[SOLVED] Browser in iOS

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

Post Reply
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

[SOLVED] Browser in iOS

Post by anmldr »

I know that this is only my third day with playing with LiveCode but I cannot seem to find a browser object to add to a card. Where is it?

My intent is to load a bunch of HTML, CSS and maybe a javascript file or so into the app and to allow the user to read a manual.

Linda
Last edited by anmldr on Thu Sep 20, 2012 3:58 pm, edited 1 time in total.
sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Browser in iOS

Post by sturgis »

There isn't an object per-se you create the browser object with code. For desktop use in windows and mac you would want to look at revbrowseropen and its associated commands. For ios you want to look at mobilecontrolcreate to create the browser control.
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Browser in iOS

Post by anmldr »

I have not had time to study the example yet but with a Google search, I found this and it was inside LiveCode all along :wink:

Oh well...I am a newbie and get an error message on the forum and so I cannot post the link.
Your account does not have permission to post links or domain/page references.
Search for this on Google and it should be the first hit "22836-How-do-I-use-the-Browser-Control"

Linda
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Browser in iOS

Post by Klaus »

Hi Linda,

1. welcome to the forum :D

2. check these stacks to get a "feel" for LiveCode and its concepts:
http://www.runrev.com/developers/lesson ... nferences/

And of course the lessons at RunRev:
http://lessons.runrev.com

3. to see the differences Desktop <-> Mobile (and there ARE differences in syntax!), check the "iOS Release Notes"
Find them in LiveCode: Menu: Help


Best

Klaus
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Browser in iOS

Post by anmldr »

sturgis wrote:There isn't an object per-se you create the browser object with code. For desktop use in windows and mac you would want to look at revbrowseropen and its associated commands. For ios you want to look at mobilecontrolcreate to create the browser control.
Can anyone tell me the limitations of this browser that is created with code? Is it comparable to the UIWebView or Mobile Safari on iOS devices? For example, without my having to do any special coding in the creation of this browser, is it able to interpret javascript? Is it able to read a simple pdf file?

Linda
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Browser in iOS

Post by anmldr »

I may have found the answer myself in the dictionary.
Native iOS or Android web browser control
So, I guess when it is created, it is the same as a UIWebView.

Linda
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Browser in iOS

Post by Klaus »

Hi Linda,

check the "Android/iOS release Notes" in Livecode: Menu: Help
That is the only documentation available.


Best

Klaus
Post Reply