PDA

View Full Version : Help with Ext.View



gkassyou
10 Aug 2007, 6:44 PM
I'm using the Ext.View component to display items with the use of a template. I'm having problems calling a URL in my template below. I'm not sure if this is the proper way to use the Ext.View. Any help is appreciated.




var tpl = new Ext.Template(
'<p><b>{itemdesc}</b><br />'+
'Part #: {itemNum}<br />'+
'Brand: <strong>{bdesc}</strong><br />'+
'Retail Price: {retail}<br />'+
'Our Price: <b>{list}</b><br />'+
'<input type="text" value="1" name="qty" id="qty" width="60" size="4"> &nbsp;'+
'<a href="{url}"><img src="online_images/b_buy.gif" width="45" height="24" alt="" border="0"></a>'
);

gkassyou
12 Aug 2007, 6:42 PM
It worked after adding an id to the href for some reason. I'm using 1.0.1a

<a id="123" href="http://www.temp.com" class="nav">temp</a>

Not sure why.

BernardChhun
13 Aug 2007, 3:54 AM
hmm strange indeed. I was about to answer to you dude but I'm glad you founded it out :D