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.
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.
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)?
hi julierico
plz try this code.
i hope i got ur questionimport 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)
give a feedback
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Won't help, gaba88. There's no apprun.exe or browser.app in N95 (or any Symbian OS v9 device).
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
Best RegardsCode: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)
Croozeus
Pankaj Nathani
www.croozeus.com
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
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60