A good web design involves the better user interaction and ability to fetch the data in a better way. For fetching user data, you may have to create a form wherein user can add multiple entries and submit them simultaneously.Thus for this you will need a way to add or remove fields dynamically into the HTML page. In
my previous article, I ...
jQuery is a small and wonderful JavaScript library that I use extensively in my work. I thought to write a tutorial about achieving UI Effects through jQuery. In
this post, I explained how to do fade in/fade out effect using jQuery. This time let us see all the tricks that we can do to manipulate ...
Introduction - Dojo is an Open Source DHTML toolkit / Dojo is JavaScript framework released as open source software. - Dojo delivers on the promise of Web 2.0 terms like Comet and Ajax by helping you create rich and interactive web apps. - It builds on several contributed code bases like widgets. It is unified toolkit. - ...
Since few days we have been registering heavy traffic spikes on our website. This lead to performance issues. As this site is currently hosted on a shared hosting server, it is very difficult to optimize the performance of the site.We are using
Wordpress as CMS for this blog, hence we decided to ...
Adding Elements like textbox, button, radio button etc in a html form using JavaScript is very simple. JavaScript's document object has a method called createElement() which can be used to create html elements dynamically.We had used this function in our tutorial:
Dynamic combobox-listbox-drop-down using javascript to add dynamic options to ...
While creating the jQuery plugin for
DIV TEXT BOX: Create orkut style status update box, I had a requirement where in I had to call a JavaScript function whose name is specified as a string in some tag. For example, user is giving name of function in a text box and you have to call that function.Calling simple JavaScript function is easy, just ...
Performance tuning of any website involves lots of things to be taken care of. For example, compressing the output / response of the website increase the performance by significant folds. GZIp and Deflate compression techniques are commonly used in servers like Apache, Tomcat, jBoss etc.Also the size of a webpage plays significant role in load time and their by affecting websites performance. Thus if we ...
Maxlength of Textarea Setting up maxlength of input text are easy. Just an attribute maxlength="##" does the work. But maxlength attribute does not work with textarea. I tried writing <textarea rows="5" cols="30" maxlength="120"></textarea> but this does not works.So what to do if we want to fix the maxlength of a textarea?Use following jQuery plugin for setting maxlength of any textarea on your page.First thing for ...
A lot of times we have requirement to do some stuff like invalidating session whenever user clicks browser close button thereby invoking close event in browser.Let us see how to achieve this using JavaScript. In JavaScript we have events such as onbeforeunload and onunload. These events as their name suggest, gets triggered whenever the page gets unload. This happens if user close the browser or ...
Problem in changing flash (swf) file location in embed or param tag using JavaScript Manipulating the DOM (Document Object Model) using JavaScirpt is known to all. Changing the src attribute of the img (Image tag) tag using JavaScript is very common. But I had a problem in changing the flash (swf) file location in embed or param tag using JavaScript. I had following html code for ...