File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to add table elements in mobile browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to add table elements in mobile browser?" Watch "How to add table elements in mobile browser?" New topic
Author

How to add table elements in mobile browser?

dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
I use
However Windows Mobile 5.0 doesn't support that. Can somebody provide an example based on using doc.write()?


Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
document.write is only after the page is rendered. You also need to remember that it has a limited amount of memory too. You can try createElement() and append() it to the tbody.

Eric
[ May 02, 2006: Message edited by: Eric Pascarello ]
dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
Edit: Hmm, createElement seems failed, let me see....

Thanks, it's a good idea. Does this source look functional?

It worked in regular browser, but failed in a mobile one. What's looking suspicious? I'm keeping reloading innerHTML as the last chance.

[ May 02, 2006: Message edited by: dema rogatkin ]
[ May 02, 2006: Message edited by: dema rogatkin ]
 
GeeCON Prague 2014
 
subject: How to add table elements in mobile browser?