Rss Feed
    Showing posts with label jquery. Show all posts
    Showing posts with label jquery. Show all posts
  1. Alphanumeric, dash and underscore but no spaces regular expression check Javascript


    var regexp = /^[a-zA-Z0-9-_]+$/;
    var check = "checkme";
    if (check.search(regexp) == -1)
        { alert('invalid'); }
    else
        { alert('valid'); }


    Only Alphanumeric  regular expression check Javascript


    var regexp = /^[a-zA-Z0-9]+$/;
    var check = "checkme";
    if (check.search(regexp) == -1)
        { alert('invalid'); }
    else
        { alert('valid'); }

  2. Jquery get key press button event

    Friday, 25 April 2014

    <input type="text" name="txt1" onKeyPress="SearchName(event)" value="<Type To Search>" >

    function SearchName(e, txtObj, selObj) {
      evt = e || window.event;
      var keyPressed = evt.which || evt.keyCode;
    }

  3. Upload file via ajax jquery php

    Monday, 14 April 2014

     $.ajax({
              type : "POST",
             /* data : $('#reg-restaurant-form').serialize(),*/        
                    contentType: false,
                    processData: false,
             data :new FormData($('#reg-restaurant-form')[0]),
              url  : myBaseUrl+('/UsersActions/restaurantUserAdd'),
                    success : function(opt){
    }
    });


  4. Get value of checked checkbox Jquery

    Monday, 22 April 2013

    Get checked checkboxes

    Loops through all the checked checkboxes and adds checkbox value to an array using jquery :checkbox selector.


    $(":checkbox:checked").each(
        function() {
            $(this).val();
        }
    );


    Get unchecked checkboxes

    Loops through all the unchecked checkboxes and adds checkbox value to an array.
    $(":checkbox").not(:checked).each(
        function() {
            $(this).val();
        }
    );

    Refer:

  5. Jquery noConflict

    Wednesday, 10 April 2013



    Actual code
    $(document).ready(function(){
     
     $('li.mainlevel').mousemove(function(){
     $(this).find('ul').slideDown();//you can give it a speed
      });
     $('li.mainlevel').mouseleave(function(){
     $(this).find('ul').slideUp("fast");
      });
     
    });



    To avoid no conflictvar j = jQuery.noConflict();   // define and replace object $ with j
    j(document).ready(function(){
     
      j('li.mainlevel').mousemove(function(){
      j(this).find('ul').slideDown();//you can give it a speed
      });
      j('li.mainlevel').mouseleave(function(){
      j(this).find('ul').slideUp("fast");
      });
     
    });

  6. Website design tool and links

    Monday, 21 January 2013


    http://twitter.github.com/bootstrap/

    http://www.webdesignerdepot.com/category/code/



    Collection of HTML, CSS and JQUERY

    http://jqueryexample.com/

    http://www.htmldrive.net

    http://www.dynamicdrive.com/

    http://jqueryui.com/

    http://www.jacklmoore.com

    http://webdesignledger.com/tools/10-jquery-plugins-that-will-make-your-life-easier

  7. Right click disabled click!!

    Wednesday, 9 January 2013


    <script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>
    copy paste disable script
    <body ondragstart="return false" onselectstart="return false" >

  8. to know PHP

    Wednesday, 2 January 2013

    http://www.phpclasses.org/

    http://www.9lessons.info/

  9. Jquery image rotator plugin

    Tuesday, 1 January 2013

    http://www.1stwebdesigner.com/css/fresh-jquery-image-gallery-display-solutions/

    http://www.mind-projects.it/projects/jqzoom/

    http://malsup.com/jquery/cycle/

    http://sorgalla.com/projects/jcarousel/#Examples

    http://ryrych.github.com/rcarousel/#examples

    http://www.themepunch.com/codecanyon/showbiz/
         
             Download link : http://www.newone.org/showbiz-business-carousel-jquery-plugin-rip-codecanyon
                                     http://wordpressplus.org/showbiz-business-carousel-jquery-plugin/     -> working

    http://caroufredsel.dev7studios.com/index.php

    http://codecanyon.net/item/hoverex-jquery-image-hover-animation-plugin/full_screen_preview/3450469?ref=themespotters

    http://www.aepbox.com/script/41881-codecanyon-picanim-jquery-image-hover-effect-pulgin.html

    http://www.aepbox.com/dl/free+codecanyon+hoverex+jquery+image+hover+animation+plugin.html

  10. Jquery Prompt box

    Thursday, 20 December 2012

    Jquery Prompt box

    http://trentrichardson.com/Impromptu/

  11. Jquery multiple file upload!!

    Wednesday, 12 December 2012

    Links to get multiple file uplaod

    http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples

    http://www.cult-f.net/multiple-file-uploaders/

  12. Jquery redirecting to privious page!!

    Monday, 3 December 2012

    Jquery redirecting to privious page!!

     history.go(-1);

  13. Jquey to execute on page load



    $(document).ready(function() {
      // Handler for .ready() called.
    });


    Jquey to execute after page load




    $(function() {
     // Handler for .ready() called.
    });




  14. Jquery function passing parameters!!

    Wednesday, 28 November 2012




    php echo $row['id']; ?>">Edit User
    $('a.edit').click(function () {
        var id = $(this).data('id');
        // do something with the id
        return false;
    });

  15. JQuery website for ajax content, pagination, email check, and more....


    http://www.mix26.com/

  16. JQuery Auto complete plugin


    http://jqueryui.com/autocomplete/

    Html->script('jquery-ui'); ?>
    Html->css('jquery-ui'); ?>  

       

       
     


    Html form

    Form->input('place',array('label' => '','id' => 'LocationmasterName', 'title' => 'Local search...'));  ?>

  17. Jquery functions for event!!

    Monday, 26 November 2012

    Jquery functions for event



    $(document).ready(function(){
    $("#yourid").focusout(function() {

    alert('coding here');

    });
    });

  18. $('#yourElementId').attr('title', 'your new title');
    var assign = $('#yourElementId').attr('title');