Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying LiveCode Mobile Development Cookbook
  • Table Of Contents Toc
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

By : Dr. Edward Lavieri Jr.
3.5 (11)
close
close
LiveCode Mobile Development Cookbook

LiveCode Mobile Development Cookbook

3.5 (11)
By: Dr. Edward Lavieri Jr.

Overview of this book

If you are a LiveCode mobile developer looking to improve your existing skills, add efficiencies to your code, or want a better understanding of LiveCode’s capabilities, then LiveCode Mobile Development Cookbook is a must-have for you. The reader should at least have a basic understanding of LiveCode and mobile application development.
Table of Contents (12 chapters)
close
close
11
Index

Displaying web pages in your app


If you need to display a live web page in your mobile app, then this recipe is for you. In this recipe, you will learn how to create a display area in your app, retrieve web data, and display that data.

How to do it...

Follow these steps to display web pages in your app:

  1. Create a new main stack.

  2. Select the stack's card and drag an image area to display the web information.

  3. Select the image and then select the Group icon on the toolbar to make the image a group.

  4. Select the group and set the following properties:

    • Name: Browser

    • Width: 312

    • Height: 390

    • Location: 160, 225

  5. At the card level, enter the following code:

    local browserID
  6. Create a preOpenCard handler with the following code:

      on preOpenCard
        mobileControlCreate "browser"
        put the result into browserID
        mobileControlSet browserID, "visible", \
              "true"
            mobileControlSet browserID, "url", \
              "http://www.packtpub.com"
          end preOpenCard

    Note

    The preOpenCard message is sent to...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
LiveCode Mobile Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon