Ext quick tip .. String.format...
Category Ext JavaScript
Bookmark :
This I thought was a another nice quick and easily used feature in Ext .. even within your current JavaScript code..
String.format( 'http://extjs.com/forum/showthread.php?t={0}&p={1}', record.data.topicId, record.id);
So basically provide the string and indicate where you want the remaining parameters placed..
Here {0} will be replaced by the value of topicId and {1} will be replaced with the id of the record.
Bookmark :
This I thought was a another nice quick and easily used feature in Ext .. even within your current JavaScript code..
String.format( 'http://extjs.com/forum/showthread.php?t={0}&p={1}', record.data.topicId, record.id);
So basically provide the string and indicate where you want the remaining parameters placed..
Here {0} will be replaced by the value of topicId and {1} will be replaced with the id of the record.
- 







Comments
Thanks for the tips.
Posted by Thomas J At 10:25:28 On 03/02/2009 | - Website - |