PDA

View Full Version : href in xml grid.....



35628
10 Feb 2010, 10:27 PM
Dear All,

I am trying to show a link as one of the data in xml-grid.
I am connecting to backed preparing xml and in one of the tags i am sending href element but for that column no data is shown

sample xml WITHOUT href tag and working is :
<XML><Item><ASIN>1</ASIN><ItemAttributes><User>XYZ</User><UserName>11-02-2010 10:49:45 am</UserName><ProductGroup>BANK</ProductGroup><Dept>BANK</Dept></ItemAttributes></Item><Item><ASIN>2</ASIN><ItemAttributes><User
><a href='test.jsp'>3i</a></User><UserName>10-02-2010 10:50:03 am</UserName><Pro
ductGroup>BANK</ProductGroup><Dept>BANK</Dept></ItemAttributes></Item>
</XML>


sample xml WITH href tag and NOT working is :
<XML><Item><ASIN>1</ASIN><ItemAttributes><User><a href='test.jsp'>XYZ</a></Use
r><UserName>11-02-2010 10:49:45 am</UserName><ProductGroup>BANK</ProductGroup><D
ept>BANK</Dept></ItemAttributes></Item><Item><ASIN>2</ASIN><ItemAttributes><User
><a href='test.jsp'>3i</a></User><UserName>10-02-2010 10:50:03 am</UserName><Pro
ductGroup>BANK</ProductGroup><Dept>BANK</Dept></ItemAttributes></Item>
</XML>

Any help will be appreciated.

Eugen_
10 Feb 2010, 11:19 PM
Hi 35628,

try this


<User><![CDATA[<a href='test.jsp'>XYZ</a>]]></User>

35628
11 Feb 2010, 2:03 AM
Thank You. EUgen.
Here, the href is visible but its opening in same window.
How Can i open the link in new window ?

Thanks.

Eugen_
11 Feb 2010, 2:14 AM
<User><![CDATA[<a target="_blank" href='test.jsp'>XYZ</a>]]></User>

35628
11 Feb 2010, 2:19 AM
Thanks Eugen. :)