HTTP cache !!!! find out the problem when i back hostel …. WTF ….. The XML is served with no mime type by your web server. It should have a mime type “text/xml”. Configure your server to associate “.xml” files with the correct mime, or, if you generate the XML dynamically, use a directive to …
妖….琴晚做到既function ….. 係老細面前demo 就炒粉…激死!!! 走堂既次數多過肥candy tim….. 🙁 宜家係tyw ….好悶的2800 …… 好想返宿訓tim….. 琴日出左mk 買禮物, prepare 左一半啦….. 好彩出左去先…本來打算星期四先出, 但琴晚先有電話打黎話星期四dept 全體相 16個人….冇辦法…..唯有有d 人打今場…..某d 人打後一場……
put kaXmlOverlap.js and points.xml into the same folder of those js add this in the index.html modify the startup.js in function myMapInitialized( eventID, mapName )
1 2 3 4 5 6 7 8 9 |
// *_3_ Create a kaXmlOverlay object: myXmlOverlay = new kaXmlOverlay( myKaMap, 250 ); // *_4_ Add some objects on the overlay layer. There are two ways to do that //Call the loadXml method: this method load an XML document from the web server. myXmlOverlay.loadXml('points.xml'); //* _5_ To have a periodic update: myInterval = setInterval("myXmlOverlay.loadXml('xmlget.php')",5000); |
modify the points.xml
http://www.csie.dyu.edu.tw/~joekinsi/files/J2ME/Chap_5/Chap_5.pdf
1 2 3 4 5 6 |
List l = new List("ShuttleQuery",Choice.IMPLICIT) ; l.append("Railway Station",null) ; l.append("U gym",null) ; l.append("HCA",null) ; l.setCommandListener((CommandListener)this) ; display.setCurrent(l); |
http://www-128.ibm.com/developerworks/wireless/library/wi-p2pmsg/ Send SMS messages Sending messages with the WMA is very simple. You can send a message to an arbitrary phone number and/or an SMS port through a MessageConnection constructed for that destination, as shown in Listing 1. Listing 1. Sending an SMS message
1 2 3 4 5 6 7 8 9 |
String addr = "sms://+123456789"; // Or: String addr = "sms://+123456789:1234"; MessageConnection conn = (MessageConnection) Connector.open(addr); TextMessage msg = (TextMessage) conn.newMessage( MessageConnection.TEXT_MESSAGE); msg.setPayloadText( "Hello World" ); conn.send(msg); |
We can also send out messages through a server connection, …