« Does size matter... | Main| Colour gradients on Gimp.. »

Ext quick tip .. String.format...

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


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

Gravatar Image1 - Sorry i'm a bit late to the { Link } party. Better late than never, right?

Thanks for the tips.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Welcome ..

View Scott Cochrane's profile on LinkedIn

My IdeaJams

tag cloud

MiscLinks

Googles

  • No Search Referers

OpenNTF

Poweredby

Domino BlogSphere
Version 3.0.1 Beta 9