Hi i’m a beginner in jquerymobile.
Is there any possibility to load a gridview from javascript?
in which i need to load gridview from javascript.
my html page is
<body onload="loadGridView()">
<fieldset class="ui-grid-b" id="mygrid">
</filedset>
</body>
and the javascript function is
function loadGridview()
{
var img_grid=$("#mygrid");
img_grid.append(' <div class="ui-block-a">
<img alt="" src="images.jpg" style="width: 80px; height: 80px" />
</div>
<div class="ui-block-b">
<img alt="" src="images.jpg" style="width: 80px; height: 80px" />
</div>
<div class="ui-block-c">
<img alt="" src="images.jpg" style="width: 80px; height: 80px" />
</div>');
}
Am i wrong or missing something?
thanks in advance.
use for example Firebug to debug your code, then you will see your errors
the following corrected example works