Java Programming – Word Wrap Problem – Dynamic Programming Given a sequence of words, and a limit on the number of characters that can be put in one line
How to remove non-alphanumeric characters from a string – Sounds like you almost knew what you basically defined it as a regex
How do we check with PHP if directory exists – Both would return true on Unix systems – in Unix is a file, including directories
Get first n characters of a string – The Multibyte extension can come in if you need control over the string charset.
PROBLEM: How to get window Width, window Height, page Width, page Height, screen Width, screen Height, pageX, pageY, screenX, screenY which will work in all major browsers? SOLUTION 1: If we are using jQuery, we can get the size of the window or the document using jQuery methods: For screen size we can use the […]
PROBLEM How to create Event binding on dynamically created elements? SOLUTION 1: As of jQuery 1.7 we should use jQuery.fn.on: Prior to this, the recommended approach was to use live(): However, live() was deprecated in 1.7 in favour of on(), and completely removed in 1.9. The live() signature: … can be replaced with the following on() signature: […]