Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Thursday, 6 March 2014

Fancy Multiple File Upload using Ajax, Jquery and PHP

                File upload is a very important utility for website to communication of source codes, examples, demos, and file to the between users and website holders.here user can easily transfer data via file upload from source to destination on the internet market.

  

              

                  in this post i have exaplained that how to upload file without page refresh using ajax,jquery and mysql database. This tutorials helps to you upload easy file upload without page refresh and powerful multiple file upload application with an option to remove file from the list see below example and you can free to download full source code by clicking download button.

if you have any query about this article than comment below for help.


Friday, 28 February 2014

autocomplete jquery example

                                The Autocomplate provide live search without page refresh while you type in the text field. in this example i have suggestions are tags for programming languages like click on demo and type programming languege name like php,javascript,html,css etc... here is the search datasource is a simple javascript string. follow some below step to implement autosuggestion in your website easily.



first include those file


 <link rel="stylesheet" href="jquery-ui.css">
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui.js"></script>

and put this code in side of the <head>



 <script>
  $(function() {
    var availableTags = [
      "PHP",
      "HTML",
      "HTML5",
      "CSS",
      "CSS3",
      "C++",
      "jQuery",
      "JavaScript",
      "Lisp",
      "Perl",
      "Python",
      "Ruby",
      "Scala",
      "Scheme"
    ];
    $( "#tags" ).autocomplete({
      source: availableTags
    });
  });
  </script>


html code


<div class="ui-widget">
  <label for="tags">Tags: </label>
  <input id="tags">
</div>





Wednesday, 19 February 2014

how to create tabs dynamic example in html

             
                  in this post to you provide how to create dynamic tab menu using jQuery. standards compliant with menu tabs and sub contents are defined using HTML.and contents of this menu are search engine friendly. here you should set one tab default when the page is loads. if your default tab contains a sub content, that content will be show. here follow some steps to create dynamic tab menu and use it where were you wish.

first create one index.html file and include below two .js file and one .css file.

<link rel="stylesheet" href="jquery-ui.css" TYPE="text/css">
<script src="jquery-1.9.1.js"></script>
<script type="text/javascript" src="jquery-ui-1.10.3.custom.min.js"></script>

Than put below jQuery code in <head> tag.

<script language="javascript">
$(document).ready(function() {
    var tabs = $("#container-1").tabs();
    var tabCounter = 1;

    $('#add_tab').click( function(){
        var ul = tabs.find( "ul" );
        var current_idx = ul.find("li").length + 1;
        $("<li><a href='#fragment-" + current_idx + "'>Menu</a></li>" ).appendTo( ul );
        tabs.append("<div id='fragment-" + current_idx + "'>Content of Added Menu" + current_idx + "</div>");
        tabs.tabs("refresh");
        tabs.tabs("select", 1);
    });
}); 
</script>

After follow abow step write few line html code look like this.

<div id="container-1">
    <ul>
        <li><a href="#fragment-1">Menu 1</a></li>
        <li><a href="#fragment-2">Menu 2</a></li>
        <li><a href="#fragment-3">Menu 3</a></li>
    </ul>
    <div id="fragment-1">Content of First Menu by easyscript4u.com</div>
    <div id="fragment-2">Content of Second Menu by easyscript4u.com</div>
    <div id="fragment-3">Content of Third Menu by easyscript4u.com</div>
</div>
        <button id="add_tab">Add Tab</button>
</div>

             now you can add new tab easily by clicking "Add Tab" button and enjoy. you can see live demo or free download complate example by clicking download button.

      
            if you have any query or problem in PHP or PHP framework like Codeigniter, WordPress, Magento than you can freely contact on this email : easyscript4you@gmail.com




Thursday, 2 May 2013

clickable responsive dropdown menu using jquery and css

           
          in this example you find the clickable drop down menu. and you can easily implement this menu in your site and also in your project....

            see attached screenshot and you can also download.this menu is responsive if you open your site in mobile ipad android phone or iphone than this menu is automatically take a size which are comfortable.see more screenshot to get more idea..

the below screenshot is a mobile size site.



Tuesday, 9 April 2013

Insert and Load Record using jQuery and Ajax in php

           you can insert record using jquery without page refresh in your web site.jquery is execute client side so provide result in less time.