JQuery

    pageX and pageY not working in IE

    pageX and pageY didn't work in IE browsers as IE missing these attributes so we need to add those manually as it is called it will not give any error.

    Galleria showing theme not found error in IE7 and IE 8 ?

    Theme is not able to load properly and its showing this error alternatively use following jquery code in the head of the document.
    <script language="javascript">
    $(document).ready(function() {
    Galleria.loadTheme('JavaScript/galleria.classic.js');
    </script>
    });

    How to hide div when clicked outside it?

    Use following jquery code to do so?
    <script language="javascript">
    $(document).ready(function () {
        $('.drop_div').hover(function(){
          var mouse_over=true;
        }, function(){
          var mouse_over=false;
        });

        $("body").mouseup(function(){
          if(! mouse_over) $('.drop_div').hide();
        });
    });
    </script>
    Any problem in implementation contact us

    How to hide div when clicked outside it?

    You can use the following code:
    var mouse_inside_div = false; //globally declared

    $(document).ready(function()
    {
        $('#div_id').hover(function(){   
            mouse_inside_div=true;
        }, function(){
            mouse_inside_div=false;
        });

        $('body').mouseup(function(){
            if(! mouse_inside_div) $('#div_id').hide();
        });
    });


    where #div_id is used as id of the div to hide when clicked outside it

    Image processing with jquery

    How to send array of checkboxes in jquery with $.get and $.post ?

    JQuery Code
    var consult_days = $('.consult_days input:checked').map(function(i,n) {
        return $(n).val();
      }).get();
    if (consult_days.length==0) {
      consult_days = 'none';
    }
    var week_days = $('.week_days input:checked').map(function(i,n) {
        return $(n).val();
      }).get();
    if (week_days.length==0) {
      week_days = 'none';
    }
    $.get("/consultation/save", {'c_days[]':consult_days, 'w_days[]':week_days},
         function(response){
           alert(response);
      });
    HTML code