Category Archives: Web

Wrap continuous string or text in javascript

Many times it is required to split a long continuous string or text basis of the width of the element in pixels. I had found a good solution on web and redesigned it to make it generic and cross-browser compatible.

You just require to call this javascript function

wrapText text , lengthInPixels , splitter ) 

Following is the usage of the function

 <html>
<script language=”javascript” src=”wrapText.js”></script>
<body>
<input id=”txt” size=”150″ /><input type=”button” onclick=”document.getElementById(‘lbl’).innerHTML=wrapText ( document.getElementById(‘txt’).value , 200 , <br/>’ );” value=”Wrap Text” />

<div id=”lbl”></div>
</body>
</html>

  [download id=”4″]

Enjoi!

Reblog this post [with Zemanta]

Google Chrome

Image representing Google Chrome as depicted i...
Image via CrunchBase

Google Chrome browser, which analysts say, will bring the revolution in the browsers market and will give a run for money to other browsers, mainly to Internet Explorer. On September 2, Google has launched their anticipated web browser named Chrome. Why has it named chrome? For the answer you and the technology behind it read the book on the Google Chrome site which they call it as Chrome comic.

After the launch of Google Chrome, lot of people (including me) has fallen in love with the Chrome. It is pretty fast, reliable and unlike Internet Explorer and Firefox stays still even though one of the tabs get crashed.

As Google’s other products, Google Chrome is also in beta version but still giving competition to the advanced and developed versions of Internet Explorer and Firefox. Google Chrome can be installed from here.

Reblog this post [with Zemanta]