Posts

Showing posts from February, 2012

Why String is immutable or final in Java

related link :::::   http://javarevisited.blogspot.in/2010/10/why-string-is-immutable-in-java.html

Differences between String, StringBuffer and StringBuilder in Java

You can find here: http://javarevisited.blogspot.com/2011/07/string-vs-stringbuffer-vs-stringbuilder.html

Key Differences between Vector and ArrayList in Java

related link::: http://javarevisited.blogspot.in/2011/09/difference-vector-vs-arraylist-in-java.html

Submitting form using Fancybox Ajax capabilities within an iFrame

there is two way: 1: $ ( "a.interested" ). fancybox ({                 'width' : 400 ,                 'height' : 400 ,                 'enableEscapeButton' : false ,                 'overlayShow' : true ,                 'overlayOpacity' : 0 ,                 'hideOnOverlayClick' : false ,                 'type' : 'iframe' ,                 'href' : "/components/profile/buyer/regbuyer1.php" //or any other url that contains the contents of that iframe             });   2:   $ ( "a.interested" ). click ( function (){     $ . ajax : {         type     : "POST" ...

How to fetch only data value using ajax

To fetch data from ajax response follow this...... $.ajax({           url: your_url,           success: function(req){             var data = new Array();             var pairs = req.split("&");             for (i = 0; (i < pairs.length); i++) {               var nameAndValue = pairs[i].split("=");               var name = unescape(nameAndValue[0]);               var value = unescape(nameAndValue[1]);               data[name] = value;                           }...

jquery code to detect ctrl+F1 key

jQuery(document).keydown(function(event){       if(event.keyCode==17)           {           jQuery(document).one("keyup",function(e){           if(e.keyCode==112)               $("#addSession").click();           });           }   });