Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003

    RE: ! Solution found for Opening WAP Browser with a url

    If I understand it correctly, the whole purpose of this exercise is to launch the browser with a URL(non-local).
    so why should not one launch the browser directly with the URL as posted in other message?


  2. #2
    Registered User
    Join Date
    Mar 2003

    ! Solution found for Opening WAP Browser with a url


    I have found a solution for those of you that wish to open the WAP browser on the Nokia 7650 with a URL provided by your application. Before coming up with this I tried the things on this site, but to no avail.

    Working from the knowledge that you can launch a local wmlc file, I created a very basic wml file which simply does a redirect to an online address. I then compiled this file using a command line wmlc compiler. I then took raw data of the wmlc file and hardcoded it into my application, splitting it into two parts (before and after the url).

    My application then writes out the bytes in three parts, the part before the URL, the url itself (plain text in the wmlc file), and the part after the url. I then launch the browser with this wmlc file using the CDocumentHandler class (explained in another post).

    Here's what the wml file looks like before being compiled:

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml id="Redirect">
    <card id="IndexCard" title="Redirect">
    <onevent type="onenterforward">
    <go method="get" href="http://mycw.net"></go>

    If you are interested in the source code for creating, saving, and openign the file in the browser, send me an email and I'd be happy to share it.

    Matt Poole

  3. #3
    Regular Contributor
    Join Date
    Mar 2003

    RE: ! Solution found for Opening WAP Browser with a url

    (V) - Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts