I want to show a table/data grid as shown below, this is for mobile devices like iPhone and Andriod phones. Are there any examples for this? (using plain HTML/CSS/JavaScript)
Asked
Active
Viewed 1,649 times
0
jgg
- 1,128
- 4
- 21
- 46
-
Accept an answer if it resolved your question. :) – Gurpartap Singh Jul 07 '11 at 22:41
3 Answers
1
If you have the HTML, CSS, etc. ready and working, you can use UIWebView class on iOS/iPhone to view your HTML file.
NSString *htmlString = @"<html>.......</html>";
NSURL *baseURL = [NSURL URLWithString:@""];
[myWebView loadHTMLString:htmlString baseURL:baseURL];
Gurpartap Singh
- 2,705
- 1
- 26
- 30
0
I had to do something like this when developing using jQTouch. I simply created an Edge-to-edge list with one item, and place a table inside it:
<ul class="edgetoedge">
<li>
<table sytle="width:100%; text-align: center; padding: 5px">
<tr><td>Row 1-1</td><td>Row 1-2</td><td>Row 1-3</td></tr>
<tr><td>Row 2-1</td><td>Row 2-2</td><td>Row 2-3</td></tr>
</table>
</li>
</ul>
Then style the table (i.e. <table>, <tr>, and <td>) to your heart's content.
William Niu
- 15,692
- 7
- 51
- 93