×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    9

    Get Webpage on N95

    Hey all, I'm working on an app that requests data from a webpage on my N95 but I'm having trouble displaying the returned html. any hint or resources for do this? having trouble finding any info on this problem.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Get Webpage on N95

    In order to display/render HTML, you'd have to call/use the existing S60 browser control, or write your own HTML parser/renderer.

    I don't know if the facilities for calling the S60 browser control from Python for S60 exist, or if there are any suitable HTML/CSS/JavaScript parsers/renderers for Python for S60.

    What you need depends also a bit on whether you need to parse and display data from any arbitrary web site, or just as returned in specific format from a specific (your own?) web site (service)?

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Get Webpage on N95

    Duplicate. Moderators please delete.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Get Webpage on N95

    hi julierico
    plz try this code.
    import e32

    apprun = 'z:\\system\\programs\\apprun.exe'
    browser = 'z:\\System\\Apps\\Browser\\Browser.app'
    url = 'ur url'
    e32.start_exe(apprun, browser + ' "%s"' %url , 1)
    i hope i got ur question
    give a feedback

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Get Webpage on N95

    Won't help, gaba88. There's no apprun.exe or browser.app in N95 (or any Symbian OS v9 device).

  6. #6
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Get Webpage on N95

    Hi,

    Yes, Python offers to launch an browser from an Pys60 application.
    Petrib is right, that code wouldn't help on an N95.

    For the N95 following code should be used to start browser (with the url) using Pys60
    Code:
    def display_in_browser(url):
        """
        Launches the browser with the given url 
        """
        import e32
        import sysinfo
        internal_url = '4 '+ url + ' 1'
        b = 'BrowserNG.exe'
        e32.start_exe(b, ' "%s"' %internal_url, 1)
    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Get Webpage on N95

    hi petrib

    the code which i have posted earlier was for only 2nd edition devices. the code which croozeus has given is the write one for opening a browser in 3rd edition device.
    for details plz look at the wiki.
    Last edited by gaba88; 2008-04-16 at 17:30. Reason: typo

Similar Threads

  1. N95 Accelerometer & JSR-256
    By AnthonyAndrews in forum Mobile Java General
    Replies: 9
    Last Post: 2009-04-21, 22:12
  2. Replies: 84
    Last Post: 2008-03-04, 23:25
  3. trouble retrieving webpage
    By doesitmatter in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-12-05, 20:48
  4. Classic N95 vs US ver. N95
    By qwerty0824 in forum General Development Questions
    Replies: 5
    Last Post: 2007-09-13, 18:09
  5. N95 Some Questions & Suggestions
    By subzero_brighton in forum General Development Questions
    Replies: 0
    Last Post: 2007-06-22, 15:37

Posting Permissions

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