<?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: data concatination</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/data-concatination</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/data-concatination/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Energetic Pixels on data concatination</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/data-concatination#p18014</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/data-concatination#p18014</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>&#160; &#160; Ok, I know my string works when my application (through xml file) only has one picture to display. &#160;It generates an appropriate &#60;LI&#62;&#60;/LI&#62; tag.</p>
<p>&#160; &#160;My problem arises when the xml file has multiple &#60;pic&#62; elements that jqGrid must iterate through to generate the stacked &#60;li&#62;&#60;/li&#62; tags. &#160;I can see my problem when I dig into the DOM via IE Web Developer. I am at a loss as to how to get jqGrid to sequence properly. &#160;I can see in the DOM where jqGrid is generating the table. &#160;Inside the &#60;td&#62; tag for the images, jqGrid is grabbing ALL of the pic URLs and putting them all together as one URL (concatinated). &#160;It does the same thing to the title portion too.</p>
</p>
<p>&#160; &#160; I put a copy of the application up on my temp site (<a title="jqGrid app on my temp site" href="http://www.serco-hrc.com/testMe/index.html" target="_blank"></a><a href="http://www.serco-hrc.com/testM" rel="nofollow" target="_blank">http://www.serco-hrc.com/testM</a>.....index.html). &#160;Small Arms -&#62; A085 builds the &#60;li&#62;&#60;/li&#62; tag correctly. &#160;Small Arms -&#62; A106 has multiple pics (i.e., multiple &#60;li&#62;&#60;/li&#62; tags) to build. &#160;Make sure that you refresh your browser between viewing the rows as I have not developed the script to kill the cache from a previous operation.</p>
</p>
<p>I don&#39;t konw why jqGrid would work fine in one instance and not in another when the same script is doing the operation. &#160;I can see what it is doing wrong, just lost as to how to fix it.</p>
</p>
<p>Tony&#160;<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /><img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p></p>
]]></description>
        	        	<pubDate>Thu, 17 Jun 2010 18:59:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on data concatination</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/data-concatination#p17956</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/data-concatination#p17956</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure that I understand the problem. Also jqGrid does not closes any &#60;li&#62; tag. The problem is maybe how you write this long string.</p>
<p>I suggest you first to try with simple tags without classes and data and see if this work, then add step by step additional code and see the result.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 16 Jun 2010 13:37:22 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on data concatination</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/data-concatination#p17816</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/data-concatination#p17816</guid>
        	        	<description><![CDATA[<p>I am using jqGrid 3.6.4. &#160;In my onSelectRow, I am trying to develop an iterated &#60;li&#62;&#60;/li&#62; set for each picture data within a static xml file. &#160;This picture data then gets "appended" into a specific &#60;div&#62; to be used by galleriffic slide show application. &#160;I know galleriffic can handle &#39;stacked&#39; &#60;li&#62;&#60;/li&#62; sets when I tested it through hard-coding. &#160;When the xml file only has one set of picture data (one picture associated with object), my application works just fine between jqGrid and Galleriffic. &#160;Problem comes in when there are multiple picture data. &#160;jqGrid is concatinating all the urls together (one right after another one) and then it concatinates the titles together (one right after another one), instead of developing the &#39;stacked&#39; &#60;li&#62;&#60;/li&#62; like I want it to. &#160;Any suggestions on how I can get jqGrid to change its mind on how it sees multiple pictures???</p>
<p>here is my portion of onSelectRow script:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit885' value='Select Code' data-codeid='sfcode885' /></p>
<div class='sfcode' id='sfcode885'>$(&#39;#thumbs ul&#39;).append(&#34;&#60;li&#62;&#60;a class=&#39;thumb&#39; href=&#39;&#34; + data.piclocation + &#34;&#39; title=&#39;&#34; + data.pictitle + &#34;&#39;&#62;&#60;img src=&#39;&#34; + data.picthumb  + &#34;&#39; alt=&#39;&#34; + data.pictitle + &#34;&#39; /&#62;&#60;/a&#62;&#60;div class=&#39;caption&#39;&#62;&#60;div class=&#39;image-title&#39;&#62;&#34; + data.pictitle + &#34;&#60;/div&#62;&#60;/div&#62;&#60;/li&#62;&#34;);&#160;</div>
</p>
<p>And here is the portion of my xml file (5 pictures to be script developed):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2443' value='Select Code' data-codeid='sfcode2443' /></p>
<div class='sfcode' id='sfcode2443'>&#60;photo&#62;<br /> &#60;pic&#62;<br /> &#60;asset&#62;weaponLib/stillMedia/slides/A106.jpg&#60;/asset&#62;<br /> &#60;thumb&#62;weaponLib/stillMedia/thumbs/A106.jpg&#60;/thumb&#62;<br /> &#60;caption&#62;Side view of DODIC A106&#60;/caption&#62;<br /> &#60;title&#62;Side view of 22 caliber long rifle ball cartridge&#60;/title&#62;<br /> &#60;/pic&#62;<br /> &#60;pic&#62;<br /> &#60;asset&#62;weaponLib/stillMedia/slides/A106_A.jpg&#60;/asset&#62;<br /> &#60;thumb&#62;weaponLib/stillMedia/thumbs/A106_A.jpg&#60;/thumb&#62;<br /> &#60;caption&#62;Side view of DODIC A106&#60;/caption&#62;<br /> &#60;title&#62;Side view of 22 caliber long rifle ball cartridge&#60;/title&#62;<br /> &#60;/pic&#62;<br /> &#60;pic&#62;<br /> &#60;asset&#62;weaponLib/stillMedia/slides/A106_B.jpg&#60;/asset&#62;<br /> &#60;thumb&#62;weaponLib/stillMedia/thumbs/A106_B.jpg&#60;/thumb&#62;<br /> &#60;caption&#62;Side view of DODIC A106&#60;/caption&#62;<br /> &#60;title&#62;Side view of 22 caliber long rifle ball cartridge&#60;/title&#62;<br /> &#60;/pic&#62;<br /> &#60;pic&#62;<br /> &#60;asset&#62;weaponLib/stillMedia/slides/A106_C.jpg&#60;/asset&#62;<br /> &#60;thumb&#62;weaponLib/stillMedia/thumbs/A106_C.jpg&#60;/thumb&#62;<br /> &#60;caption&#62;Side view of DODIC A106&#60;/caption&#62;<br /> &#60;title&#62;Side view of 22 caliber long rifle ball cartridge&#60;/title&#62;<br /> &#60;/pic&#62;<br /> &#60;pic&#62;<br /> &#60;asset&#62;weaponLib/stillMedia/slides/A106_D.jpg&#60;/asset&#62;<br /> &#60;thumb&#62;weaponLib/stillMedia/thumbs/A106_D.jpg&#60;/thumb&#62;<br /> &#60;caption&#62;Side view of DODIC A106&#60;/caption&#62;<br /> &#60;title&#62;Side view of 22 caliber long rifle ball cartridge&#60;/title&#62;<br /> &#60;/pic&#62;<br /> &#60;/photo&#62;</div>
<p>Here is how it comes out in my DOM (IE7/8 Developer Tools):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9377' value='Select Code' data-codeid='sfcode9377' /></p>
<div class='sfcode' id='sfcode9377'>&#60;li class=&#34;selected&#34; style=&#34;filter: alpha(opacity=100); ZOOM: 1;&#34; jQuery1276015362777=&#34;156&#34;&#62;</div>
<p><input type='button' class='sfcodeselect' name='sfselectit3332' value='Select Code' data-codeid='sfcode3332' /></p>
<div class='sfcode' id='sfcode3332'>&#60;a title=&#34;Side view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridge&#34; class=&#34;thumb&#34; submitName=&#34;&#34; href=&#34;#1&#34; rel=&#34;history&#34; jQuery1276015362777=&#34;151&#34;&#62;</div>
<p><input type='button' class='sfcodeselect' name='sfselectit7145' value='Select Code' data-codeid='sfcode7145' /></p>
<div class='sfcode' id='sfcode7145'>&#60;img alt=&#34;Side view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridgeSide view of 22 caliber long rifle ball cartridge&#34; src=&#34;<a href="http://localhost/ameLib/weaponLib/stillMedia/thumbs/A106.jpgweaponLib/stillMedia/thumbs/A106_A.jpgweaponLib/stillMedia/thumbs/A106_B.jpgweaponLib/stillMedia/thumbs/A106_C.jpgweaponLib/stillMedia/thumbs/A106_D.jpg&#34;/&#038;gt" rel="nofollow" target="_blank"><a href="http://localhost/ameLib/weapon" rel="nofollow">http://localhost/ameLib/weapon</a>.....;/&#038;gt</a>;</div>
<p>jqGrid then closes my &#60;li&#62; tag.</p>
</p>
<p>How do I get jqGrid to quit concatinating the data?? &#160;It is probably something quite simple.</p>
<p>A working online version of my application can be seen at serco-hrc.com/testMe/index.html. &#160; Select "ok", then small arms menu.</p>
<p>to see the multiple item issue, select Dodic A106 (third one down on the jqGrid). &#160;Then select "slideshow" on the resulting tab that opens. &#160;The first two DODICs listed in the jqGrid work just fine if you wnat to see it work.</p>
<p>Tony<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" />&#160;<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /><img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 20:11:48 +0300</pubDate>
        </item>
</channel>
</rss>