Well midlet would be nice for mid range devices, I guess the androids, iphones ad win mobiles can handle a html page.
I will try to create a midlet for those phones only supporting setting text and wait steps (maybe play sound). But only after I get the basic functions working in html for the smarter phones and desk/laptops.
I've put the quirksmode page in my favorites and study it when I have time thanks.
Found a way that will load xml data from local files using xml data island.
Only tested with ie8 and no worky in FF (not tested in opera) the thing is that after I set the document either from xml island or xmlhttprequest most methods work on it (some need some tweaking with if statements).
I guess here it says that I should not use it but can't read it since it's blocked here in China. The reason is that it's only supported by IE? Use xmlhttprequest instead?? but that doesn't work with local files.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
// document.getElementById("xData").onload=processData; could not find an event that is triggered when data is loaded
processData(); // just hope the data is available.
<body onload='loadLesson("data.xml");' >
<xml id="xData" >
I read that both safari and chrome do not allow you to read xml data when the document is file:// protocol.
The best way I could solve it is not to use xml data but JSON or just make one big object variable containing the course data.
Note tried the midlet with netbeans, that ide is amaizing. So easy and nice to use. Shame that the simplest midlet won't run on any phone I tried it on so will forget about that for now.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread