I believe you wrote this in the wrong forum by accident. This forum ("WRT Widget Development") is about S60 web-technology -bsaed widget development.
Cheers,
Peppe
Type: Posts; User: peppe@peppe.net; Keyword(s):
I believe you wrote this in the wrong forum by accident. This forum ("WRT Widget Development") is about S60 web-technology -bsaed widget development.
Cheers,
Peppe
Nope, I haven't. You'd have to parse it into a DOM tree yourself if you stored it as the raw XML text though. However you might want to consider storing JavaScript objects as JSON strings..
I'm not sure I understand question #1. Can you please try to explain what you mean?
As far as #2 is concerned, you can fetch any kind of text information using the XMLHttpRequest - not just XML....
Just fetch the data with XHR and you can get the parsed DOM tree with the responseXML property of the XMLHttpRequest object. I.e. you don't need to explicitly parse anything - it's done for you.
...
What's the actual encoding? I mean just changing the declaration doesn't change the actual encoding - you're just changing the promise for what the file is encoded with. :)
Perhaps there's a BOM...
There's no limit other than of course when you start to run out of memory. :) I've used it with over 200kb of data and it works well and is quite fast even with large amounts of data!
Peppe
Don't use links to move away from the main HTML. Rather fetch stuff with XHR and modify the current DOM of the main HTML. That way you keep being within the widget context rather than moving into a...
Do you have a simple testcase of this? Preferably the bare minimum code and content that is required to get this to still crash? It would be very much appreciated! You can email it to me at...
The code above relies on the fact that the screen width is larger than screen height when in "landscape" mode and vice versa in "portrait" mode. Do you actually get the screen to change from...
Do you mean local images within the wgz? Because obviously images from the network wouldn't load if you don't allow a network connection. :)
Try using the de-facto standard XMLHttpRequest instead and you'll find that you won't have to write any if-blocks on a per-browser basis. XMLHttpRequest works in all modern web browser on all...
N810 and Maemo do not support the web runtime. It uses a browser called MicroB, which is Gecko (Mozilla) based rather than WebKit based.
Peppe
Note that href is a property - not a function. Either way it's not a good idea to open a web page in this manner within a widget. First of all you end up losing control of the widget becuase the...
I think you are asking the question in the wrong board. While eSWT is a widget toolkit, it's a widget toolkit in the "user interface control" -way. "The WidSets and Widgets" boards here on Forum...
A widget doesn't have rights to access the local file system.
I'm not sure I follow.. If you actually have "pages" (i.e. separete HTML files) then just call the function to change the softkey label when you switch from one "page" to another. Is there some...
Whatever makes you happy. :)
Settings are stored persistently in a file used internally by the system which developers don't need ot know or care about.
I recommend not thinking in terms of "pages" when it comes to widgets. Softkey labels are not set "per page" but rather globally within a widget. You are free to set the softkey label to whatever you...
Can you elaborate on that a little bit. What did you do and what happened?
You can use the standard JavaScript Date object.
In principle you should be able to use the username and password arguments in the open() method of XHR as the function is defined as:
open(method, URL, async, userName, password)
If that fails...
Orientation changes result in that the window size changes and that can be detected by normal DOM events.
It is not possible to programmatically hide the bars that appear for text editing as they...
The issue you have is because load() is not implemented in WebKit.
JSON doesn't require accessing a remote server - it is a notation format for specifying objects in JavaScript, including complex...
If it was possible then it would be possible using XMLHttpRequest to a file:/// URL, but I doubt very much that it is possible. What I would do instead, however, is to use JSON and load it simply by...