Tagged: javascript

JavaScript Image Thumbnails Preview Gallery 0

JavaScript Image Thumbnails Preview Gallery

Today, We want to share with you JavaScript Image Thumbnails Preview Gallery.In this post we will show you javascript image gallery with thumbnails, hear for CSS Image Thumbnail Viewer in javascript Gallery we will give you demo and example for implement.In this post, we will learn about Responsive Image Gallery with Thumbnail Carousel with an example.

JavaScript Image Thumbnails Preview Gallery

There are the Following The simple About JavaScript Image Thumbnails Preview Gallery Full Information With Example and source code.

As I will cover this Post with live Working example to develop jQuery Thumbnail Image Slider – CSS, JavaScript, so the css image gallery with thumbnails for this example is following below.

Example 1: JavaScript Image Thumbnail Viewer Tutorial

index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Simple javascript image gallery with thumbnails | Pakainfo.com</title>
<style>
.liveimgpreview {
width:640px;
height:360px}

.gallerythumb {
width:204px;
margin-right:3px;}

.defaultset {
border:3px solid #000000;}

.selected {
border:3px solid #ff0000;}
</style>
</head>
<body>
<h1>Image Thumbnail Viewer</h1>
<img id="0" class="liveimgpreview defaultset" src="" alt="preview" /><br />
<img id="1" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product1" onmouseover="liveimgpreview(this)"/>
<img id="2" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product2" onmouseover="liveimgpreview(this)"/>
<img id="3" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product3" onmouseover="liveimgpreview(this)"/>
<script>

    var lastImg = 1; //Set initial thumbnail and liveimgpreview
    document.getElementById(0).src = document.getElementById(lastImg).src;
    document.getElementById(lastImg).className = "gallerythumb selected";

    function liveimgpreview(img_param) {
        document.getElementById(lastImg).className = "gallerythumb defaultset";
        img_param.className = "gallerythumb selected";
        document.getElementById(0).src = img_param.src;
        lastImg = img_param.id
    }
</script>
</body>
</html>

Example 2: Simple JavaScript Image Thumbnail Viewer

<html>
<head>
    <title>JavaScript Thumbnail Slider</title>
    <style type="text/css">
        .img_container {
            margin: 0 auto;
            width: 191px;
            height: 113px;    
            border: 0;
            overflow: hidden;
            background-color: #FFFFFF;
            webkit-box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);
            -moz-box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);
            box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);    
            border: solid 0px #FFFFFF; 
            border-radius: 4px;
            -moz-border-radius: 4px;
            -webkit-border-radius: 4px;    
            display: block;
        }       
        #gallery {
            margin:0 auto;
            width:200px;
            height:20px;
            position:relative;
            top:-2px;
        }
        .thumbnailSlide {
            text-align:center; 
            width:100%; 
            display:block;
        }
        .thumbnailSlide .btSld {
            margin:3px; 
            padding:4px;
            height:4px;
            text-decoration:none;
            outline:none;
            cursor:pointer; 
            border:solid 2px #FFFFFF;
            border-radius:30px;
            -moz-border-radius:30px; 
            -webkit-border-radius:30px; 
        }
    </style>
</head>
<body>
    <p>Click the little circles below the Product Thumb to slide</p> 
    <div class="img_container">
        <a href="#" rel="">
            <img src="https://www.yourDomainName.com/2019/11/slide/image1.jpg" id="pb1" alt="" border="0" />
        </a>
    </div>
        
    <div id="gallery">
        <div class="thumbnailSlide">
            <input type="button" id="1" class="btSld" 
                style="background-color:#567DD8;"
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="2" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="3" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="4" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
        </div>
    </div>
</body>

<script>
    var array_Thumb = new Array();  

    array_Thumb[1] = 'https://www.yourDomainName.com/2019/11/media/Product1.jpg';
    array_Thumb[2] = 'https://www.yourDomainName.com/2019/11/media/Product2.jpg';
    array_Thumb[3] = 'https://www.yourDomainName.com/2019/11/media/Product3.jpg';
    array_Thumb[4] = 'https://www.yourDomainName.com/2019/11/media/Product4.jpg';

    var setThumb;
    var thumbnailCounter = array_Thumb.length - 1;

    var arrThumbCnt = new Array();
    for (setThumb = 1; setThumb < thumbnailCounter + 1; setThumb++) {
        arrThumbCnt[setThumb] = new Image();
        arrThumbCnt[setThumb].src = array_Thumb[setThumb];
    }
        
    function previewThumb(img) {
        document.images.pb1.src = arrThumbCnt[img].src;
            
        for (setThumb = 1; setThumb < thumbnailCounter + 1; setThumb++) {
            
            if (setThumb == img) 
                document.getElementById(setThumb).style.backgroundColor = "#567DD8";
            else 
                document.getElementById(setThumb).style.backgroundColor = "#CCC";
        }
    }
</script>
</html>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JavaScript Image Thumbnails Preview Gallery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

PHP AJAX Live Search Box Autocomplete Using MySQL Database 0

PHP AJAX Live Search Box Autocomplete Using MySQL Database

Today, We want to share with you PHP AJAX Live Search Box Autocomplete Using MySQL Database.In this post we will show you PHP Jquery AJAX Live Search Box Using MySQL, hear for PHP MySQL Live Search Box using Jquery Ajax Example we will give you demo and example for implement.In this post, we will learn about Jquery Ajax Live Search Box using PHP MySql with an example.

PHP AJAX Live Search Box Autocomplete Using MySQL Database

There are the Following The simple About PHP AJAX Live Search Box Autocomplete Using MySQL Database Full Information With Example and source code.

As I will cover this Post with live Working example to develop ajax live data search using jquery php mysql, so the some major files and Directory structures for this example is following below.

  • index.php
  • fetch.php

Step 1: Creating the Database Table

— Database: `member_list` >> — Table structure for table `member_tbl`

CREATE TABLE IF NOT EXISTS `member_tbl` (
  `MemberID` int(11) NOT NULL AUTO_INCREMENT,
  `MemberName` varchar(250) NOT NULL,
  `member_addr` text NOT NULL,
  `member_city` varchar(250) NOT NULL,
  `member_pcode` varchar(30) NOT NULL,
  `member_country` varchar(100) NOT NULL,
  PRIMARY KEY (`MemberID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

Step 2: Dumping data On Table

Dumping data for table `member_tbl`

//ajax live data search using jquery php mysql
INSERT INTO `member_tbl` (`MemberID`, `MemberName`, `member_addr`, `member_city`, `member_pcode`, `member_country`) VALUES
(1, 'Jaydeep Gondaliya', 'sejal Str. 57', 'Berlin', '12209', 'Germany'),
(2, 'Ankit Kathiriya', 'Avda. de la Ram park 2222', 'USA D.F.', '5021', 'USA'),
(3, 'Krunal Sisodiya', 'sardha 2312', 'USA D.F.', '5475', 'USA'),
(4, 'chirag dethariya', '120 dsp salon Sq.', 'London', 'WA1 1DP', 'UK'),
(5, 'Dhaval dave', 'Rua do Ganesh, 12', 'Resende', '56458-363', 'UEA'),
(6, 'Pooja solanki', 'ul. astha 68', 'Walla', '01-658', 'Poland'),
(7, 'Bhakti Banugariya', 'kavya 45', 'Helsinki', '2853', 'India'),
(8, 'Nilesh chandvadiya', '305 - 14th Ave. S. Suite 3B', 'Seattle', '98128', 'USA'),
(9, 'Hitesh Ajani', 'Rua do Ganesh, 12', 'Resende', '098952-363', 'UEA'),
(10, 'Mayur Dhameliya', 'bhakti 38', 'Oulu', '321452', 'India'),
(11, 'Stavan Patel', '2, rue du chandni', 'Reims', '350024', 'France'),
(12, 'Parag shukla', '722 Titupati Blvd.', 'Kirkland', '360002', 'USA'),
(13, 'Vijay bhanderi', 'Bhavanath. 48', 'Butte', '225010', 'USA');

Step 3: Creating the Search Form

index.php

This is where I will make a simple HTML form and PHP server side source code for our web application. To make the forms simply all souce code copy and write it into your any text editor Like Notepad++, then save file it as index.php.

 
  
  <title>PHP AJAX Live Search Box Autocomplete Using MySQL Database</title>
  
  
  
 
 
  <div class="pakainfo container">
   <br />
   <h2 align="center">PHP AJAX Live Search Box Autocomplete Using MySQL Database</h2>
   
   <b>Simple ajax live data search using jquery php mysql</b><br />
   <div class="pakainfo form-group">
    <div class="input-group pakainfo">
     <span class="input-group-addon pakainfo">Search</span>
     
    </div>
   </div>
   <br />
   <div id="result"></div>
  </div>
 


$(document).ready(function(){

 ajax_data_load();

 function ajax_data_load(query)
 {
  $.ajax({
   url:"fetch.php",
   method:"POST",
   data:{query:query},
   success:function(data)
   {
    $('#result').html(data);
   }
  });
 }
 $('#query_search').keyup(function(){
  var search = $(this).val();
  if(search != '')
  {
   ajax_data_load(search);
  }
  else
  {
   ajax_data_load();
  }
 });
});

Step 4 : Processing Search Query in Backend

fetch.php for PHP AJAX Live Search Box Autocomplete server side source code

 0)
{
 $output .= '
  <div class="pakainfo table-responsive">
   <table class="table table bordered">
    <tr>
     <th>Member Name</th>
     <th>member Address</th>
     <th>member_city</th>
     <th>Member Post Code</th>
     <th>member_country</th>
    </tr>
 ';
 while($memres = mysqli_fetch_array($result))
 {
  $output .= '
   <tr>
    <td>'.$memres["MemberName"].'</td>
    <td>'.$memres["member_addr"].'</td>
    <td>'.$memres["member_city"].'</td>
    <td>'.$memres["member_pcode"].'</td>
    <td>'.$memres["member_country"].'</td>
   </tr>
  ';
 }
 echo $output;
}
else
{
 echo 'Data Not Found';
}

?>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about PHP AJAX Live Search Box Autocomplete Using MySQL Database.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Best Most Popular JavaScript Frameworks comparison 0

Best Most Popular JavaScript Frameworks comparison

Best Most Popular JavaScript Frameworks comparison

Today, We want to share with you Best Most Popular JavaScript Frameworks comparison.
In this post we will show you Best Most Popular JavaScript Frameworks List, hear for Best JavaScript Frameworks, Libraries and Tools to use we will give you demo and example for implement.
In this post, we will learn about Most Popular JavaScript Frameworks List In Today’s Time with an example.

What is the best framework for JavaScript?

Simple Top Best 2018 JavaScript framework Like as, Angular.js, Vue.js, NodeJS React.js, Ember.js, Backbone.js etc.

The followings JavaScript frameworks are the best framework for the js.

AngularJS AngularJS is very easy DOM as it creates use of HTML as a componet and declarative js programming language.

ReactJS ReactJS is best to understand and easy how an HTML element is performed, and We simply Dsiplay HTML view at the All the js render function.

NodeJS The developers Most of the demand to utilize as well as very easy to user friendly rich customer main lightweight frameworks and run also on server-side web-APIs.

EmberJS EmberJS is main used to Client-side framework or MVC structure and also provide for browser DOM climbed web application a part from the HTML Dom view layer.

MeteorJS Meteor.js, It is the one type of the software development one best method is very easy and structure wise clear with the backend, and frontend and store database all the set formed into one simple perfect script.

JavaScript frameworks are the Main Display or View frontend Side heart of single page web-applications development for devloper and provide the super global force to view HTML DOM and js.

Here, List of the Top 10 JavaScript frameworks in feature rich, most All the function advanced, very popular among developers or users community.

1) Angular.js
2) React.js
3) Ember.js
4) Aurelia.js
5) Meteor.js
6) Backbone.js
7) Polymer.js
8) Knockout.js
9) Vue.js
10) Mercury.js

Best Most Popular JavaScript Frameworks comparison

Best Most Popular JavaScript Frameworks comparison

Accroding to me, There are the Three of the best JavaScript frameworks:-
– AngularJS
– Backbone.js
– Ember.js

We hope you get an idea about Top Javascript Front-End Development Frameworks to Learn
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.