Page 1 of 1

Accessing/displaying browser content

Posted: Fri Jan 07, 2011 1:10 am
by Ron Zellner
I have done a lot of Rev development, but I have not done much in this particular area. Is there a resource in the tutorial/sample area that illustrates features for accessing content from web sites and displaying it inside a Rev (LiveCode) stack?
There are a number of terms in the dictionary related to this, but I'm not quite sure how to begin and what the full potential is.
Looking for a jump start.
Thanks,

Ron

Re: Accessing/displaying browser content

Posted: Fri Jan 07, 2011 2:34 am
by RRobert
You should find a Browser Sample under Resource Center, Internet. And you may also look for the URL keyword and related lessons.

Robert

Re: Accessing/displaying browser content

Posted: Fri Jan 07, 2011 4:43 am
by Ron Zellner
Right on! The "Browser Sampler" stack was really useful. Don't know how I missed it.
I see how it can select or get text from the web-browser content, is it possible to use LiveCode to interact with the elements in the web-browser? Like put text into a field or have a button clicked?
I'm guessing it would use a command like revBrowserExecuteScript using javascript code that would be somewhat the same as if it were in the web page itself.
Is that on the right track?

Ron

Re: Accessing/displaying browser content

Posted: Fri Jan 07, 2011 6:38 am
by RRobert
Yes, revBrowserExecuteScript would be the way. Also checkout the browserBeforeNavigate message which is sent to the card and the puzzle should be complete.

Robert