Posts

Showing posts with the label javascript

reg-expression for URL check

reg-expression for URL check And here is the rest of it. ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9A-Z]+([\-\.]{1}[a-z0-9A-Z]+)*\.[a-zA-Z]{2,5}(:[0-9]{1,5})?(\/.*)?$

Structure for Javascript Development

Image
It is not a core developer stuff to read, for designers !! Whenever i start client side javascript programming, used to struggle where to start from start i. So, my designer 'mind found' this snippet, useful to start. Happy coding! var ProjectName = function() { var fnNameA = function() { console.log("fnNameA called")}; var fnNameB = function() { console.log("fnNameB called")}; return { init: function() { // init table, chart fnNameA(); fnNameB(); } }; }(); function FnNameC (){console.log("fnNameC called")}; jQuery(document).ready(function() { ProjectName.init(); // function that need to initialise on start FnNameC(); });

Fix Your Site With the Right DOCTYPE!

by JEFFREY ZELDMAN You’ve done all the right stuff, but your site doesn’t look or work as it should in the latest browsers. You’ve written valid XHTML and CSS. You’ve used the W3C standard Document Object Model (DOM) to manipulate dynamic page elements. Yet, in browsers designed to support these very standards, your site is failing. A faulty DOCTYPE is likely to blame. This little article will provide you with DOCTYPEs that work, and explain the practical, real–world effect of these seemingly abstract tags. by JEFFREY ZELDMAN You’ve done all the right stuff, but your site doesn’t look or work as it should in the latest browsers. You’ve written valid XHTML and CSS. You’ve used the W3C standard Document Object Model (DOM) to manipulate dynamic page elements. Yet, in browsers designed to support these very standards, your site is failing. A faulty DOCTYPE is likely to blame. This little article will provide you with DOCTYPEs that work, and explain the practical, real–world effect of these...

What is JQuery

Image
jQuery is an amazing JavaScript library that makes it easy to create wonderful web effects in just a few lines of code. As the website says:” “ jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.” Maybe you are thinking… “Why I would need another JavaScript library”? Just give a try and you will see how simple and powerful it is even if you have already used Moo.fx, Scriptaculous, TW-SACK or Prototype. Why I should use jQuery? Simple. In just one glance at the source code of a page using jQuery you’ll see how easy it is to use, how much it accomplishes in so few lines of code, and how graceful it is. My mind was opened one day when I stumbled across some code written with jQuery. I was flipping through the RSS feeds and reading my daily dose of web design blogs when I came across an e...

jQuery

jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript. jQuery is an amazing JavaScript library that makes it easy to create wonderful web effects in just a few lines of code. As the website says:” “jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.” Maybe you are thinking… “Why I would need another JavaScript library”? Just give a try and you will see how simple and powerful it is even if you have already used Moo.fx, Scriptaculous, TW-SACK or Prototype. Why I should use jQuery? Simple. In just one glance at the source code of a page using jQuery you’ll see how easy it is to use, how much it accompli...