Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User jpankaj's Avatar
    Join Date
    Mar 2003
    Posts
    7
    Matt,
    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?

    best,
    Pankaj

  2. #2
    Registered User mpoole's Avatar
    Join Date
    Mar 2003
    Posts
    6
    All,

    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>
    </onevent>
    <p>Redirecting...<br/></p>
    </card>
    </wml>

    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.

    regards,
    Matt Poole
    mpoole@airclic.com

  3. #3
    Regular Contributor Denever's Avatar
    Join Date
    Mar 2003
    Location
    Tampere
    Posts
    475
    Thanks,
    (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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved