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"> '+
'<a href="{url}"><img src="online_images/b_buy.gif" width="45" height="24" alt="" border="0"></a>'
);
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"> '+
'<a href="{url}"><img src="online_images/b_buy.gif" width="45" height="24" alt="" border="0"></a>'
);