Creating Web Capture Elements

Capture Web content or entire Web pages for use in your mobile application.

See the Unwired Accelerator Developer's Guide for more information.

To create Web Capture elements:

  1. In the Mobile Development perspective, select File|New|Mobile Application.

  2. From the Mobile Application Wizard, select Launch Element Wizard, then select Web Capture from the element type drop-down list, and click Finish.

    Alternatively, right-click the Mobile Applications folder, and select Create New Mobile Application With|Web Capture Element.

    The New Mobile Application Element wizard opens.

  3. Choose from the following, then click Next:

    • Capture web content:

      1. Click Capture to open a browser.

      2. Enter the URL of the Web content you want to capture in Address.

      3. Select a Capture Strategy from the drop-down list.

        Note

        You must select the Advanced Navigation option to work with applets, BusinessObjects (Crystal), and activeX capture.

        Note

        When you create a mobile application using one-click capture, and the mobile application content contains numerous links, some of the links may not work properly due to underlying JavaScript or redirect code in the link content.

      4. Select the Capture All check box to capture all GETs and POSTs.

        Note

        Using the default settings during navigation and capture, Unwired Accelerator remembers the final URL of the page you want to capture and play back, along with any intermediate URLs that are generated by HTTP "POST" requests. These latter URLs typically result from submitting form data. During playback, these URLs are submitted in order and the resulting page content returned to the client browser. However, for some sites, this is not sufficient to guarantee that enough context is provided to the Web server to return the desired page. In this situation, you may need to include other intermediate HTTP requests (that is, HTTP "GET" requests) so the correct client state can be established and the desired page returned. If you suspect this situation is occurring, select Capture All to request that during the capture phase, Unwired Accelerator should record all significant HTTP requests against the Web server from which the page is being captured.

        Note

        As a higher lever of interaction is required between Unwired Accelerator and the Web server when using Capture All, this can result in significant performance degradation during playback.

        Note

        If you choose to select Capture All, you cannot later deselect this option in the editor.

      5. Click Go to display the web content in the view.

        A edit tool appears at the cursor.

      6. Guide the edit tool to the web content you want to capture, then left-click your mouse to select it.

      7. (Optional) Rewrite the CCL using a pre-defined template. Select the Re-write CCL using a pre-defined template check box, select a template from the drop-down list, and click Apply.

      8. Click Select next to the web content you want to capture, then click Finish to return to the New Mobile Application Element wizard.

        The captured web element displays in the wizard view.

    • Use advanced capture

      1. Select the Advanced check box and click Capture to open an external browser. This allows you to capture ActiveX content.

        Note

        If you are capturing a BusinessObjects application, you must use the Advanced option.

      2. Enter the URL of the Web content you want to capture in Address.

      3. Select a Capture Strategy from the drop-down list.

        Note

        When you create a mobile application using one-click capture, and the mobile application content contains numerous links, some of the links may not work properly due to underlying JavaScript or redirect code in the link content.

      4. Select theAdvanced Navigation check box to capture all GETs and POSTs. Capture All is automatically selected.

        Note

        Using the default settings during navigation and capture, Unwired Accelerator remembers the final URL of the page you want to capture and play back, along with any intermediate URLs that are generated by HTTP "POST" requests. These latter URLs typically result from submitting form data. During playback, these URLs are submitted in order and the resulting page content returned to the client browser. However, for some sites, this is not sufficient to guarantee that enough context is provided to the Web server to return the desired page. In this situation, you may need to include other intermediate HTTP requests (that is, HTTP "GET" requests) so the correct client state can be established and the desired page returned. If you suspect this situation is occurring, select Capture All to request that during the capture phase, Unwired Accelerator should record all significant HTTP requests against the Web server from which the page is being captured.

        Note

        As a higher lever of interaction is required between Unwired Accelerator and the Web server when using Capture All, this can result in significant performance degradation during playback.

        Note

        If you choose to select Capture All, you cannot later deselect this option in the editor.

      5. Click Go to display the web content in the view.

  4. Click Preview to view the captured web content.

  5. Choose from the following:

    • Click Capture to return to open the browser and capture additional Web content.

    • Click Next to define the CGI parameters for the captured Web content.

    • Click Finish to complete your work.

Additional Information about Web capture elements

Configuring Mobile Applications

Using Rules and Record Layout

Setting CGI Parameters

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com