<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Help with font size</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-font-size</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/help-with-font-size/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lupin on Help with font size</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15348</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15348</guid>
        	        	<description><![CDATA[<p>hello,</p>
</p>
<p>I don&#39;t get what you really wanted, since looking at your code you want to include a complete set of html document inside a head tag?</p>
<p>Won&#39;t be the output of of that end up like this?</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5863' value='Select Code' data-codeid='sfcode5863' /></p>
<div class='sfcode' id='sfcode5863'>
<div class=&#34;sfcode&#34;>
<div class=&#34;sfcode&#34;>
<p>&#60;html&#62;</p>
<p>&#60;head&#62;</p>
<p>&#160; //this the one you insert/included</p>
<p>&#160; &#60;html&#62;</p>
<p>&#160;&#160; &#60;head&#62;</p>
<p>&#160; &#60;/head&#62;</p>
<p>&#160; &#60;/html&#62;</p>
<p>//end</p>
<p>&#60;/head&#62;</p>
</div>
<p>&#60;/html&#62;</p>
</div>
</div>
<p>I suggest you try this first /jqgridwiki/doku.php?id=wiki:first_grid&#160;and then work&#160; from there. It sets the font-size as well. If you want to include a separate header file,there&#39;s should more tutorial on net, also your div menu shouldn&#39;t it belong to body element?</p>
</p>
<p>hth,</p>
</p>
<p>lupin</p>
]]></description>
        	        	<pubDate>Thu, 04 Mar 2010 09:12:12 +0200</pubDate>
        </item>
        <item>
        	<title>jin on Help with font size</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15343</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15343</guid>
        	        	<description><![CDATA[<p>Hi lupin,</p>
</p>
<p>The myfirstjqgrid.php and db.php are modified from the source code provided in the example. I just output a table with one colomn with the ID. The header.html is a separte file which has links to be shown in the top right corner, but when i include the header the fontsize of the table increases and does not look good.</p>
]]></description>
        	        	<pubDate>Thu, 04 Mar 2010 05:07:22 +0200</pubDate>
        </item>
        <item>
        	<title>lupin on Help with font size</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15289</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15289</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Seems your code and html is all gobbled up, if may I suggest you start here <a title="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:first_grid" href="/jqgridwiki/doku.php?id=wiki:first_grid" target="_blank"></a><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:first_grid" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....first_grid</a> then once you&#39;ve a working basic grid, you add more and more functionality.</p>
</p>
<p>hth,</p>
<p>lupin</p>
]]></description>
        	        	<pubDate>Tue, 02 Mar 2010 08:52:12 +0200</pubDate>
        </item>
        <item>
        	<title>jin on Help with font size</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15288</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-font-size#p15288</guid>
        	        	<description><![CDATA[<p>Hi i am new to web development and have been playing around with jqgrid recently. I tried to include a header but it seems to mess up the font size of the table. Could someone please let me know why this is happening and how i would go about fixing it.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3532' value='Select Code' data-codeid='sfcode3532' /></p>
<div class='sfcode' id='sfcode3532'>Header.html</p>
<p>&#60;html&#62;</p>
<p>&#160;&#60;head&#62;<br />&#160;&#160;&#60;title&#62;&#160;Bounding Box &#60;/title&#62;<br />&#160;&#60;/head&#62;</p>
<p>&#160;&#60;div id=&#34;menu&#34; align=&#34;right&#34; &#62;<br />&#160;&#160;&#60;a href=&#34;Main.php&#34;&#62;HOME&#60;/a&#62;<br />&#160;&#160;&#60;a href=&#34;Lookup.php&#34;&#62;LOOKUP&#60;/a&#62; <br />&#160;&#160;&#60;a href=&#34;Edit.php&#34;&#62;EDIT&#60;/a&#62; <br />&#160;&#160;&#60;a href=&#34;Create.php&#34;&#62;CREATE&#60;/a&#62;<br />&#160;&#160;&#60;/br&#62;<br />&#160;&#160;&#60;/br&#62;<br />&#160;&#160;&#60;/br&#62;<br />&#160;&#160;&#60;hr&#62;<br />&#160;&#60;/div&#62;<br />&#60;/html&#62;</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit6161' value='Select Code' data-codeid='sfcode6161' /></p>
<div class='sfcode' id='sfcode6161'>myfirstgrid.php</p>
<p>&#60;?php <br />&#160;ob_start();<br />&#160;include(&#39;Header.html&#39;); <br />?&#62;</p>
<p>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href=&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34; target="_blank"></a><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow" target="_blank">http://www.w3.org/TR/xhtml1/DT</a>.....strict.dtd&#34;&#62;<br />&#60;html xmlns=&#34;<a href=&#34;http://www.w3.org/1999/xhtml&#34; target="_blank">http://www.w3.org/1999/xhtml</a>&#34; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#62;<br />&#60;head&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;<br />&#160;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/redmond/jquery-ui-1.7.1.custom.css&#34; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;js/src/css/ui.jqgrid.css&#34; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;js/src/css/jquery.searchFilter.css&#34; /&#62;<br />&#160;<br />&#60;script src=&#34;js/jquery-1.4.2.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/src/grid.loader.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;<br />&#160;<br />&#160;&#60;script type=&#34;text/javascript&#34;&#62;<br />jQuery(document).ready(function(){ <br />&#160; jQuery(&#34;#grid&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160; <a href=&#34;http://www.trirand.com/blog/&#39;db.php&#39;&#34; target="_blank">url:&#39;db.php&#39;</a>,<br />&#160;&#160;&#160;&#160;&#160; datatype: &#34;json&#34;,<br />&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160; colNames:[&#39;ID&#39;],<br />&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id, width:500, sortable:false, editable:false},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems:false<br />&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160; rowNum:100000000,<br />&#160;&#160;&#160;&#160;&#160; rowList:[100000000, 10,20,30], <br />&#160;&#160; loadComplete: function() <br />&#160;&#160; { <br />&#160;&#160;$(&#34;option[value=100000000]&#34;).text(&#39;All&#39;); <br />&#160;&#160;&#160; },<br />&#160;&#160; <br />&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#gridpager&#39;),<br />&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160; sortorder: &#34;asc&#34;,<br />&#160;&#160;&#160;&#160;&#160; caption:&#34;Wines&#34;,</p>
<p>&#160;}).navGrid(&#39;#gridpager&#39;);<br />});<br />&#60;/script&#62;<br />&#160;<br />&#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />...<br />&#60;div id=&#34;jqgrid&#34;&#62;<br />&#160;&#160;&#160; &#60;table id=&#34;grid&#34;&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id=&#34;gridpager&#34;&#62;&#60;/div&#62;<br />&#60;/div&#62;<br />...<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit7276' value='Select Code' data-codeid='sfcode7276' /></p>
<div class='sfcode' id='sfcode7276'>db.php</p>
<p>&#60;?php</p>
<p>$page = $_GET[&#39;page&#39;]; // get the requested page<br />$limit = $_GET[&#39;rows&#39;]; // get how many rows we want to have into the grid<br />$sidx = $_GET[&#39;sidx&#39;]; // get index row - i.e. user click to sort<br />$sord = $_GET[&#39;sord&#39;]; // get the direction<br />if(!$sidx) $sidx =1;</p>
<p>$dbhost = &#34;localhost&#34;;<br />$dbuser = &#34;tester&#34;;<br />$dbpassword =&#34;test&#34;;<br />$database = &#34;tester&#34;;<br />// connect to the database<br />$db = mysql_connect($dbhost, $dbuser, $dbpassword)<br />or die(&#34;Connection Error: &#34; . mysql_error());</p>
<p>mysql_select_db($database) or die(&#34;Error conecting to db.&#34;);<br />$result = mysql_query(&#34;SELECT COUNT(*) AS count FROM testTable&#34;); <br />$row = mysql_fetch_array($result,MYSQL_ASSOC); <br />$count = $row[&#39;count&#39;];</p>
<p>if( $count &#62;0 ) {<br />&#160;$total_pages = ceil($count/$limit);<br />} else {<br />&#160;$total_pages = 0;<br />}<br />if ($page &#62; $total_pages) $page=$total_pages;<br />$start = $limit*$page - $limit; // do not put $limit*($page - 1)</p>
</p>
<p>$SQL = &#34;SELECT ID, ID FROM&#160;testTable ORDER BY $sidx $sord LIMIT $start , $limit&#34;;<br />$result = mysql_query( $SQL ) or die(&#34;Couldn t execute query.&#34;.mysql_error());</p>
<p>$responce-&#62;page = $page;<br />$responce-&#62;total = $total_pages;<br />$responce-&#62;records = $count;<br />$i=0;<br />while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;id&#39;]=$row[ID];<br />&#160;&#160;&#160; $i++;<br />}&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />echo json_encode($responce);</p>
<p>?&#62;</p>
</div>
<p>All it does right now is just show the primary key ID from my testTable. With the header iincluded the font-size seems to have increased.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 02 Mar 2010 08:08:29 +0200</pubDate>
        </item>
</channel>
</rss>