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.
05-29-2010, 06:04 AM
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. www.w3schools.com/xml/xml_dont.asp
<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" >
05-29-2010, 10:46 PM
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.