Running Javascript under Celerity[HTMLUNIT]

Lately there have been too many people wanting to know how to execute Javascript in Celerity. Let me show you how it done. First a quick note on JRuby installation. Here are few useful links to install JRuby under 1. Linux(ubuntu) should work for other linux packages as well. 2. Windows. Just to confirm,kindly type jruby -v on terminal or cmd depending on OS you are using and you should get the version of jruby you are running. Mine output

Continue Reading

Dynamically updating selectlist using Jquery and Ajax

In many web site we have seen that on selecting country, state or city list is updated. In this article i am showing how to update children select list on changing parent list. To do this i am using jquery and ruby on rails.although it will works for almost all languages For this article, I am updating city list on changing states. So one state has many cities,and city belongs to state. and city_list.xxx gives following html on processing state

Continue Reading

Select/Deselect Multiple CheckBox Using Jquery

In many website we have seen that on checked or unchecked one box all the check box are checked or unchecked. Now in this article i am showing how to checked unchecked all the check box In this setting checked attribute true/false alternatively by clicking on select/deselect for alternate removing and adding class not_checked depending upon that we are setting true and false

Continue Reading

How to include another html page into existing html page using jquery

We can include another html page using jquery load method example is as shown below <html xmlns="http://www.w3.org/1999/xhtml">    <head>       <title>Loading an Html page</title>      <script src="jquery.js" type="text/javascript"></script>     $(document).ready(function() {         $('#loadpage').load('load.html or any server side page');     }); </head> <body>    <div id="loadpage" ></div> </body> </html>

Continue Reading

Site Footer