Topic: CSS

Simple Materialize CSS Autocomplete Ajax using PHP 0

Simple Materialize CSS Autocomplete Ajax using PHP

Today, We want to share with you Simple Materialize CSS Autocomplete Ajax using PHP.In this post we will show you Materialize CSS Autocomplete with AJAX in PHP, hear for Materialize autocomplete with dynamic data in jquery ajax we will give you demo and example for implement.In this post, we will learn about Materialize CSS Framework Ajax Autocomplete Example using PHP with an example.

Simple Materialize CSS Autocomplete Ajax using PHP

There are the Following The simple About Simple Materialize CSS Autocomplete Ajax using PHP Full Information With Example and source code.

As I will cover this Post with live Working example to develop Materialize Autocomplete using PHP with Demos, so the autocomplete textbox using jquery ajax for this example is following below.

Materialize Autocomplete using PHP – Example

Include JS and CSS CDN libs.
autocomplete textbox using jquery ajax Example

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
});
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js"></script>

And Then make a simple HTML input field and name it product

<div class="row">
<div class="input-field col s6">
<input id="product" type="text" name="product" class="validate">
<label for="product">Search Product here</label>
</div>
</div>

Now add the easy Devbridge autocomplete source code for the HTML input field with materialize autocomplete multiple.

$("#product").devbridgeAutocomplete({
	serviceUrl:"getProduct.php",
	type:'POST',
	onSelect: function (myproducts) {
	// $('#selection').html('You selected: ' + myproducts.value + ', ' + myproducts.data);
	},
	showNoSuggestionNotice: true,
	noSuggestionNotice: 'Sorry, no matching results',
});

Now make a PHP source code to file and copy and paste the below simple materialize css select code.

<?php
require("AmpersandDao.php");
if($_POST)
{
	$cname=$_POST['query'];
	echo '{"myproductss":'.json_encode( AmpersandDao::getProduct($cname) ).'}';
}
else
{
	echo "Good Luck!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
}
?>

HTML – Full HTML Source Code.

<!DOCTYPE html>
<html>
<head>
 <title>Pakainfo - Materialize CSS Ajax Autocomplete Using PHP and DevBridge</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css">


  <style type="text/css">
.autocomplete-myproductss { border: 1px solid #999; background: #FFF; overflow: auto; }
.autocomplete-myproducts { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-myproductss strong { font-weight: normal; color: #3399FF; }
.autocomplete-group { padding: 2px 5px; }
.autocomplete-group strong { display: block; border-bottom: 1px solid #000; }
  </style>
</head>
<body>

<div class="row">
	<div class="col s6 center">
		<h4>Pakainfo.com -  Materialize CSS Ajax Autocomplete Using PHP and DevBridge</h4>
	</div>
</div>
<div class="row">
	<div class="input-field col s6">
		<input  id="product" type="text" name="product" class="validate">
		<label for="product">Search Product here</label>
	</div>
</div>

<script src="3.2.1/jquery.min.js"></script>
<script src="materialize/0.98.1/js/materialize.min.js"></script>
<script type="text/javascript" src="jquery.autocomplete.min.js" ></script>
<script type="text/javascript">
        
        $(document).ready(function() {
                  $("#product").devbridgeAutocomplete({
                    serviceUrl:"getProduct.php", //tell the script where to send requests
                      type:'POST',
                      onSelect: function (myproducts) {
                         // $('#selection').html('You selected: ' + myproducts.value + ', ' + myproducts.data);
                        },
                    showNoSuggestionNotice: true,
                    noSuggestionNotice: 'Sorry, no Your matching products',
                  });
        });
      </script>
</body>
</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 Simple Materialize CSS Autocomplete Ajax using PHP.
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.

CSS Create Middle Border Line After Text Example 0

CSS Create Middle Border Line After Text Example

Today, We want to share with you CSS Create Middle Border Line After Text Example.In this post we will show you horizontal line before text css, hear for horizontal line with text in middle word we will give you demo and example for implement.In this post, we will learn about How to style a heading with horizontal lines either side using CSS with an example.

CSS Create Middle Border Line After Text Example

There are the Following The simple About CSS Create Middle Border Line After Text Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop Create line after text with css, so the css vertical line before text for this example is following below.

Example 1: Create Headings with Lines in CSS

HTML Part

<h2>Featured products</h2>
<h2>Here is a very long h2, and as you can see the line get too wide</h2>
<h2>Example</h2>
<h2>Demo</h2>

CSS Part

h2 {
    overflow: hidden;
}

h2:after {
    content:"";
    display: inline-block;
    height: 0.5em;
    vertical-align: bottom;
    width: 100%;
    margin-right: -100%;
    margin-left: 10px;
    border-top: 2px solid #195279;
}

Example 2: CSS Line-On-Sides Headers

HTML Part

<div class="wrapper">
  <p>Example</p>
  <div class="line"></div>
</div>

CSS Part

.wrapper {
  display: flex;
  align-items: center;
}

.line {
  border-top: 3px solid red;
  flex-grow: 1;
  margin: 0 10px;
}

Example 3: CSS line behind title text

HTML Part

<h2 class="background">horizontal line before text css</h2>
<h2 class="background"><span>css dotted line after text</span></h2>
<h2 class="background headerpart"><span>Create a colored border around text with HTML and CSS
</span></h2>
<h2 class="no-background"><span>How To Make Horizontal Lines In Html And CSS</b></span></h2>
<h2 class="no-span">horizontal line with text in middle word</b></h2>

CSS Part

h2 {
    font: 33px sans-serif;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
}

h2.background {
    position: relative;
    z-index: 1;
    
    &:before {
        border-top: 2px solid #dfdfdf;
        content:"";
        margin: 0 auto; 
        position: absolute;
        top: 50%; left: 0; right: 0; bottom: 0;
        width: 95%;
        z-index: -1;
    }

    span { 
        background: #fff; 
        padding: 0 15px; 
    }
}

h2.headerpart:before { 
    border-top: none; 
}

h2.headerpart:after {
    border-bottom: 1px solid blue;
    -webkit-box-shadow: 0 1px 0 0 red;
    -moz-box-shadow: 0 1px 0 0 red;
    box-shadow: 0 1px 0 0 red;
    content: "";
    margin: 0 auto;
    position: absolute;
    top: 45%; left: 0; right: 0;
    width: 95%;
    z-index: -1;
}

h2.no-background {
    position: relative;
    overflow: hidden;
    
    span {
        display: inline-block;
        vertical-align: baseline;
        zoom: 1;
        *display: inline;
        *vertical-align: auto;
        position: relative;
        padding: 0 20px;

        &:before, &:after {
            content: '';
            display: block;
            width: 1000px;
            position: absolute;
            top: 0.73em;
            border-top: 1px solid red;
        }

        &:before { right: 100%; }
        &:after { left: 100%; }
    }
}

h2.no-span {
    display: table;
    white-space: nowrap;
    &:before, &:after {
      border-top: 1px solid green;
      content: '';
      display: table-cell;
      position: relative;
      top: 0.5em;
      width: 45%;
    }
    &:before { right: 1.5%; }
    &:after { left: 1.5%; }
}

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 CSS Create Middle Border Line After Text Example.
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.

Google Responsive Charts (Pie Bar Column) Examples 0

Google Responsive Charts (Pie Bar Column) Examples

Today, We want to share with you Google Responsive Charts (Pie Bar Column) Examples.In this post we will show you Chart with Dynamic Data using Google Charts, hear for Google Charts Tutorials – chart js we will give you demo and example for implement.In this post, we will learn about Draw Multiple Responsive Charts with Google Charts with an example.

Google Responsive Charts (Pie Bar Column) Examples

There are the Following The simple About Google Responsive Charts (Pie Bar Column) Examples Full Information With Example and source code.

As I will cover this Post with live Working example to develop Draw Responsive Charts (Pie Bar Column) using Google Charts, so the some major files and Directory structures for this example is following below.

  • index.html
  • index.js
  • style.css

Creating The Interface

index.html

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.html.

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Google Responsive Charts (Pie Bar Column) Examples</title>
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
      <link rel="stylesheet" href="css/style.css">
</head>
<body>
  <div class="row">
  <div class="col-md-12 text-center">
    <h1>Google Responsive Charts (Pie Bar Column) Examples</h1>
    <p>Full blog post details <a href="https://pakainfo.com">Pakainfo.com</a></p>
  </div>
  <div class="pakainfo col-md-4 col-md-offset-4">
    <hr />
  </div>
  <div class="infinityknow clearfix"></div>
  <div class="col-md-6">
    <div id="responsive_chart1" class="liveChart"></div>
  </div>
  <div class="col-md-6">
    <div id="responsive_chart2" class="liveChart"></div>
  </div>
</div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://www.google.com/jsapi'></script>
    <script  src="js/index.js"></script>
</body>
</html>

Creating the Script

index.js

google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(liveMakeChart1);
function liveMakeChart1() {
  var data = google.visualization.arrayToDataTable([
    ['Year', 'status', 'points'],
    ['2204',  1200,      580],
    ['2205',  1500,      950],
    ['2206',  880,       1300],
    ['2207',  1050,      540]
  ]);

  var options = {
    title: 'Member Performance',
    hAxis: {title: 'Year', titleTextStyle: {color: 'green'}}
 };

var liveChart = new google.visualization.ColumnChart(document.getElementById('responsive_chart1'));
  liveChart.draw(data, options);
}

google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(liveMakeChart2);
function liveMakeChart2() {
  var data = google.visualization.arrayToDataTable([
    ['Year', 'status', 'points'],
    ['2113',  1200,      580],
    ['2114',  1500,      950],
    ['2115',  880,       1300],
    ['2116',  1050,      540]
  ]);

  var options = {
    title: 'Member Performance',
    hAxis: {title: 'Year',  titleTextStyle: {color: '#3d3d3d'}},
    vAxis: {minValue: 0}
  };

  var liveChart = new google.visualization.AreaChart(document.getElementById('responsive_chart2'));
  liveChart.draw(data, options);
}

$(window).resize(function(){
  liveMakeChart1();
  liveMakeChart2();
});

Creating the Style CSS

style.css

.liveChart {
  width: 100%;
  min-height: 400px;
}

.row {
  margin: 0 !important;
}

Demo – Make Google Charts Responsive

Google Responsive Charts – output

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 Google Responsive Charts (Pie Bar Column) Examples.
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.

Create Different CSS Geometric Shapes with Example 0

Create Different CSS Geometric Shapes with Example

Today, We want to share with you Create Different CSS Geometric Shapes with Example.
In this post we will show you CSS Shapes for Geometric with Example, hear for How To Create Different Shapes with CSS we will give you demo and example for implement.
In this post, we will learn about How to Quickly Create Shapes in Pure CSS with an example.

Create Different CSS Geometric Shapes

There Following some Create Different CSS Geometric Shapes with Example Custome CSS styles will come simple basically handy when We want to more button, any shapes draw geometric more good perfect shapes with these all the customes CSS without using any types of the images. Most of them are done using latest version of the CSS3 as well as There check if We your browser all the Geometric Shapes supports it.

Circle

HTML & CSS for Circle

<div class="circle"></div>

.circle { 
   width: 100px;
   height: 100px;
   background: #9400D3; 
   -moz-border-radius: 50px; 
   -webkit-border-radius: 50px; 
   border-radius: 50px;
}

Circle – Output

Oval

HTML & CSS for Oval

<div class="oval"></div>

.oval {
	height: 200px;
	width: 100px;
	background: #9400D3;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}

Oval – Output

Triangle

HTML & CSS for Triangle

<div class="triangle"></div>

.triangle {
	height: 0;
	width: 0;
	border-left: 50px solid transparent;
	border-right: 50px solid transparent;
	border-bottom: 100px solid #9400D3;
}

Triangle – Output

Triangle Sided

HTML & CSS for Triangle Sided

<div class="triangle-sided"></div>

.triangle-sided {
	height: 0;
	width: 0;
	border-top: 100px solid #9400D3;
	border-right: 100px solid transparent;
}

Triangle Sided – Output

Rectangle

HTML & CSS for Rectangle

<div class="rectangle"></div>

.rectangle {
   height: 100px;
   width: 200px; 
   background: #9400D3;
}

Rectangle – Output

Parallelogram

HTML & CSS for Parallelogram

<div class="parallelogram"></div>

.parallelogram {
   height: 75px;
   width: 150px; 
   background: #9400D3;
   -webkit-transform: skew(20deg); 
   -moz-transform: skew(20deg); 
   -o-transform: skew(20deg);
   transform: skew(20deg);
}

Parallelogram – Output

Trapezoid

HTML & CSS for Trapezoid

<div class="trapezoid"></div>

.trapezoid {
	height: 0;
	width: 100px;
	border-bottom: 100px solid #9400D3;
	border-left: 50px solid transparent;
	border-right: 50px solid transparent;
}

Trapezoid – Output

Cone

HTML & CSS for Cone

<div class="cone"></div>

.cone {
  height: 0;
  width: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-top: 100px solid #9400D3;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

Cone – Output

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 8 Examples of Unorthodox Shapes Created with CSS .
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.

How to Open URL in New Tab using CSS 0

How to Open URL in New Tab using CSS

Today, We want to share with you How to Open URL in New Tab using CSS.
In this post we will show you css3 – Use target=”_blank” in css, hear for CSS target-new property we will give you demo and example for implement.In this post, we will learn about Open Link in a New Window in CSS with an example.

My Paka Knowledgeable Ideas, Tips and Tricks, Useful Content, Jobs, Technology, Earn Money, gmail creation, skype, yahoo and more useful things.

In CSS, Open new window when target=”_blank”

<Link to="/about" target="_blank">About Pakainfo.com</Link>

CSS Overview with Features

There are the Following the List of Features For CSS Pure JavaScript Latest Frameworks.

  • Advanced Selectors
  • WebKit
  • Media Queries
  • At-rules
  • Values
  • Rounded Corners
  • Animations
  • Transitions
  • Box Shadow

CSS redirect to a new tab

CSS target-new Property

//Syntex
target-new: window|tab|none;

//example
a
{
	target-name:new;
	target-new:tab;
}

CSS Redirects

How to Redirect a Web Page using CSS

<html>
<head>
<title>CSS Redirects</title>
<style>
input[type="submit"] {
	background: #3d3d3d !important;
	float: left !important;
	height: 45px !important;
	margin: 15px 0 0 0 !important;
	padding: 0 9px 0 9px !important;
}
input[type="submit"]:before {
	content: "<a href="https://pakainfo.com/">";
}
input[type="submit"]:after {
	content: "</a>";
}
</style>
</head>
<body>
<input type="submit"></input>
</body>
</html>

Using JavaScript

window.location = "https://pakainfo.com/";
window.location.href = "https://pakainfo.com/";
window.location.assign("https://pakainfo.com/");
window.location.replace("https://pakainfo.com/");

jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :

Summary

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

I hope you get an idea about CSS target-new property.
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.

Responsive back to top using jquery 0

Responsive back to top using jquery

Responsive back to top using jquery

Learn how to sumple create a button of “scroll back to top” button jquery with CSS.
Create a simple button that will take and use css with jquery the user to easyly the top of the page when clicked on:
Back to top buttons are a easy to top great usability HTML element of a web page or apps, and having one on we website adds a small task but helpful more detail most of us are used to.

Include jquery

<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

Script.js

<script type='text/javascript'>
$(document).ready(function(){ 
	$(window).scroll(function(){ 
		if ($(this).scrollTop() > 100) { 
			$('#pagescroll').fadeIn(); 
		} else { 
			$('#pagescroll').fadeOut(); 
		} 
	}); 
	$('#pagescroll').click(function(){ 
		$("html, body").animate({ scrollTop: 0 }, 600); 
		return false; 
	}); 
});
</script>

style

<style type="text/css">

h1{font-size:45px;text-align:center; text-decoration:underline;}
h2{font-size:40px;color:#FA0530}
p{font-size:40px;}

#pagescroll {
position:fixed;
right:12px;
bottom:12px;
cursor:pointer;
width:60px;
height:60px;
background-color:#3498db;
text-indent:-9999px;
display:none;
-webkit-border-radius:50px;
-moz-border-radius:50px;
border-radius:50px
}
#pagescroll span {
position:absolute;
top:50%;
left:50%;
margin-left:-9px;
margin-top:-13px;
height:0;
width:0;
border:10px solid transparent;
border-bottom-color:#D3D3D3
}
#pagescroll:hover {
background-color:#F5f6e6;
opacity:1;filter:"alpha(opacity=100)";
-ms-filter:"alpha(opacity=100)";}
</style>

index.html

<body>
<!-- BackToTop Button -->
<a href="#" id="pagescroll" title="pagescroll to Top" style="display: none;">Top<span></span></a>

<h2>About Pakainfo.com – About Us</h2>
<br/>
<p>Welcome to Pakainfo.com – a blog my technologies blogs where you will learn about some Tips, Tricks and More…</p>
<p>In other words means other sens to say, it is a community type of new experiment and research or demo with example in It World (pakainfo).</p>
<p>Pakainfo.com was founded in april, 2019 with the aim of all kind of sharing a place for some Tips, some about it related Tricks and Other very dificult Informer articles or new information for it technologies,tutorials and related solutions very expert level high solution in easy and simplified way that more helps our some Tricks and Tips community including like as Windows and server like as a linux and OS,Google,Google Adsense ,Fiver ,Upwork and How to Make Money Easy way to get basic ideas, learning and understandings.</p>
<p>This blog offers wide range of Tricks and Tips topics including Google, Google Adsense, How to Earn Money using Blogger or Website, Fiver and many more.</p>
<p>Pakainfo.com is the right blog for anyone who is passionate about Earn or Make Money To Home without any InvestMent<br />
of Tips and Tricks methodology.So, grab the opportunity and start learning today!</p>
<br/><br/>
<h3>Why Pakainfo.com?</h3>
<br/>
<ul>
<li>Tremendous Opportunity for Growth</li>
<li>Equal Opportunity Every Person</li>
<li>Earn or Make Money To Home without any InvestMent</li>
<li>Open to New and Innovative Ideas</li>
</ul>
<br/><br/>
<p><b>pakainfo – Goal</b></p>
<br/>
<p style="text-align: justify;">Hello! I am angular king and pakainfo is my web technologies blog. My specialities are Vuejs,API,angularjs,Vuejs,PHP, API, jQuery,Earn money,HTML,CSS eCommerce,JS,Laravel, CMS and bespoke web application development.</p>
<br/><br/>
<p><b>pakainfo says</b></p>
<br/>
<p>We are Web Technology Experts and Team who provide you very Important information on Web Development information, Interview Questions and Answers, live project problem solution and their solution and online free tutorials – “Pakainfo.com”.</p>
<p><a href="https://pakainfo.com/" target="_blank" title="pakainfo" alt="pakainfo" class="download">Live Site</a></p>
</body>

Full Source Code : Example custom bootstrap back to top arrow

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery Back To Top Button by Pakainfo.com</title>
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type='text/javascript'>
$(document).ready(function(){ 
	$(window).scroll(function(){ 
		if ($(this).scrollTop() > 100) { 
			$('#pagescroll').fadeIn(); 
		} else { 
			$('#pagescroll').fadeOut(); 
		} 
	}); 
	$('#pagescroll').click(function(){ 
		$("html, body").animate({ scrollTop: 0 }, 600); 
		return false; 
	}); 
});
</script>
<style type="text/css">

h1{font-size:45px;text-align:center; text-decoration:underline;}
h2{font-size:40px;color:#FA0530}
p{font-size:40px;}

#pagescroll {
position:fixed;
right:10px;
bottom:10px;
cursor:pointer;
width:50px;
height:50px;
background-color:#3498db;
text-indent:-9999px;
display:none;
-webkit-border-radius:60px;
-moz-border-radius:60px;
border-radius:60px
}
#pagescroll span {
position:absolute;
top:50%;
left:50%;
margin-left:-8px;
margin-top:-12px;
height:0;
width:0;
border:9px solid transparent;
border-bottom-color:#ffffff
}
#pagescroll:hover {
background-color:#e74c3c;
opacity:1;filter:"alpha(opacity=100)";
-ms-filter:"alpha(opacity=100)";}
</style>

</head>

<body>
<!-- BackToTop Button -->
<a href="#" id="pagescroll" title="pagescroll to Top" style="display: none;">Top<span></span></a>

<h2>About Pakainfo.com – About Us</h2>
<br/>
<p>Welcome to Pakainfo.com – a blog my technologies blogs where you will learn about some Tips, Tricks and More…</p>
<p>In other words means other sens to say, it is a community type of new experiment and research or demo with example in It World (pakainfo).</p>
<p>Pakainfo.com was founded in april, 2019 with the aim of all kind of sharing a place for some Tips, some about it related Tricks and Other very dificult Informer articles or new information for it technologies,tutorials and related solutions very expert level high solution in easy and simplified way that more helps our some Tricks and Tips community including like as Windows and server like as a linux and OS,Google,Google Adsense ,Fiver ,Upwork and How to Make Money Easy way to get basic ideas, learning and understandings.</p>
<p>This blog offers wide range of Tricks and Tips topics including Google, Google Adsense, How to Earn Money using Blogger or Website, Fiver and many more.</p>
<p>Pakainfo.com is the right blog for anyone who is passionate about Earn or Make Money To Home without any InvestMent<br />
of Tips and Tricks methodology.So, grab the opportunity and start learning today!</p>
<br/><br/>
<h3>Why Pakainfo.com?</h3>
<br/>
<ul>
<li>Tremendous Opportunity for Growth</li>
<li>Equal Opportunity Every Person</li>
<li>Earn or Make Money To Home without any InvestMent</li>
<li>Open to New and Innovative Ideas</li>
</ul>
<br/><br/>
<p><b>pakainfo – Goal</b></p>
<br/>
<p style="text-align: justify;">Hello! I am angular king and pakainfo is my web technologies blog. My specialities are Vuejs,API,angularjs,Vuejs,PHP, API, jQuery,Earn money,HTML,CSS eCommerce,JS,Laravel, CMS and bespoke web application development.</p>
<br/><br/>
<p><b>pakainfo says</b></p>
<br/>
<p>We are Web Technology Experts and Team who provide you very Important information on Web Development information, Interview Questions and Answers, live project problem solution and their solution and online free tutorials – “Pakainfo.com”.</p>
<p><a href="https://pakainfo.com/" target="_blank" title="pakainfo" alt="pakainfo" class="download">Live Site</a></p>
</body>
</html>

Example

Example

Data auto Load While scrolling page down with jquery PHP and MySQL 0

Data auto Load While scrolling page down with jquery PHP and MySQL

Data auto Load While scrolling page down with jquery PHP and MySQL

In this Post We Will Explain About is Data auto Load While scrolling page down with jquery PHP and MySQL With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Data Load While Page Scroll with jQuery PHP and MySQLExample

In this post we will show you Best way to implement load data dynamically on page scroll using jquery ajax and php, hear for Data auto Load While Page Scroll down with jQuery PHP and MySQLwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

File Structure List

Index.php
do_result_data.php
get_data_list.js

create a table structure

CREATE TABLE IF NOT EXISTS `postdata` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comments` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Create Database Connection – db_connect.php

<?php
$host_servername = "localhost";
$username = "root";
$password = "";
$dbname = "pakainfo";
$dbcon = mysqli_connect($host_servername, $username, $password, $dbname);
if (mysqli_connect_errno()) {
	printf("simple Pakainfo.com - > Connect failed: %s\n", mysqli_connect_error());
	exit();
}
?>

Include External Libs

<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="bootstrap-theme.min.css">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<script type="text/javascript" src="get_data_list.js"></script>

index.php

<div class="container">
<h2>Example: Simple Data Load While Page Scroll steps with jQuery PHP and MySQL Devloped By Pakainfo.com</h2>
	<div id="results">
		<?php include('do_result_data.php'); ?>
	</div>
<div id="id_loader" style="text-align:center;"><img src="id_loader.gif" /></div>
</div>

get_data_list.js

$(document).ready(function(){
	$(window).scroll(function(){
	if ($(window).scrollTop() == $(document).height() - $(window).height()){
		if($(".total_nopage:last").val() <= $(".get_total_rec").val()) {
			var nopage = parseInt($(".total_nopage:last").val()) + 1;
			loadRecord('do_result_data.php?get_page='+nopage);
			}
		}
	});
});
function loadRecord(url) {
	$.ajax({
		url: url,
		type: "GET",
		data: {get_total_rec:$("#get_total_rec").val()},
		beforeSend: function(){
			$('#id_loader').show();
		},
		complete: function(){
			$('#id_loader').hide();
		},
		success: function(data){
			$("#results").append(data);
		},
		error: function(){}
	});
}

do_result_data.php

<?php
include_once("db_connect.php");
$perPage = 3;
$sql_query = "SELECT id, comments FROM postdata";
$get_page = 1;
	if(!empty($_GET["get_page"])) {
	$get_page = $_GET["get_page"];
	}
$first = ($get_page-1)*$perPage;
	if($first < 0) $first = 0;
	$query = $sql_query . " limit " . $first . "," . $perPage;
	$query_results = mysqli_query($dbcon, $query) or die("database error:". mysqli_error($dbcon));
	$records = mysqli_fetch_assoc($query_results);
	if(empty($_GET["get_total_rec"])) {
	$_GET["get_total_rec"] = mysqli_num_rows($query_results);
	}
$msgdis = '';
	if(!empty($records)) {
		$msgdis .= '<input type="hidden" class="total_nopage" value="' . $get_page . '" />';
		$msgdis .= '<input type="hidden" class="get_total_rec" value="' . $_GET["get_total_rec"] . '" />';
			while( $rows = mysqli_fetch_assoc($query_results) ) {
			$msgdis .= '<div class="well">' .$rows["comments"] . '</div>';
			}
	}
	echo $msgdis;
?>

Example

I hope you have Got What is load data while scrolling page down with jquery and php And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Custom Alert and Confirm Dialog Box using jQuery and CSS 0

Custom Alert and Confirm Dialog Box using jQuery and CSS

Custom Alert and Confirm Dialog Box using jQuery and CSS

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Custom Alert and Confirm Dialog Box using jQuery and CSS

In this post we will show you Best way to implement javascript – Custom alert and confirm box in jquery, hear for How to Free Awesome jQuery Plugin For Custom Alert Box with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

External include libs

At First of all you need to External include the jQuery CDN or library.

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="livedialog.js"></script>
<link type="text/css" rel="stylesheet" href="livedialog.css"/>

HTML markup Part(index.html)

<button onClick="livedialog('This is a notify dialog box, created by CodexWorld.');">Click here</button>

JavaScript Part (index.js)

// Global livedialog parameters
var $livedialog = null,
    $liveoverlay = null,
    $body = null,
    $window = null,
    $live = null,
    livedialogQueue = [];

// Add liveoverlay and set opacity for cross-browser new compatibility
$(function() {
    
    $livedialog = $('<span class="livedialog">');
    $liveoverlay = $('<span class="livedialog-liveoverlay">');
    $body = $('body');
    $window = $(window);
    
    $body.append( $liveoverlay.css('opacity', '.94') ).append($livedialog);
});

function livedialog(text, options) {
    
    // Restrict all simple blank modals
    if(text===undefined || !text) {
        return false;
    }
    
    // Necessary simple parameters
    var $cusme = this,
            $_inner = $('<span class="livedialog-inner">'),
            $_buttons = $('<span class="livedialog-buttons">'),
            $_input = $('<input type="text">');
    
    // Default config (edit purpose these to your simple liking)
    var config = {
    
        animation: 650, // Animation speed
        buttons: {
            confirm: {
                action: function() { $cusme.dissapear(); }, // livellback function
                classNacusme: null, // Custom class nacusme(s)
                id: 'confirm', // Elecusment ID
                text: 'Ok' // Button text
            }
        },
        input: false, // input simple dialog
        override: true // Override simple browser navigation and all the while livedialog live is visible
    };
    
    // cusmerge config with options
    $.extend(config, options);
    
    // Close current livedialog, exit
    if(text=='close') { 
        $live.dissapear();
        return;
    }
    
    if($livedialog.is(':visible')) {

        livedialogQueue.push({text: text, options: config});
   
        return;
    }
    
    // Width adjusting function
    this.adjustWidth = function() {
        
        var live_width = $window.width(), w = "20%", l = "40%";

        if(live_width<=800) {
            w = "90%", l = "5%";
        } else if(live_width <= 1400 && live_width > 800) {
            w = "70%", l = "15%";
        } else if(live_width <= 1800 && live_width > 1400) {
            w = "50%", l = "25%";
        } else if(live_width <= 2200 && live_width > 1800) {
            w = "30%", l = "35%";
        }
        
        $livedialog.css('width', w).css('left', l);
        
    };    
    // Close here function
    this.dissapear = function() {
        
        $livedialog.animate({
            top: '-100%'
        }, config.animation, function() {
            
            $liveoverlay.fadeOut(300);
            $livedialog.hide();
            
            // Unbind window listeners
            $window.unbind("beforeunload");
            $window.unbind("keydown");

            // If in queue, run it
            if(livedialogQueue[0]) { 
                livedialog(livedialogQueue[0].text, livedialogQueue[0].options);
                livedialogQueue.splice(0,1);
            }
        });
        
        return;
    };
    // Keypress down function
    this.keyPress = function() {
        
        $window.bind('keydown', function(e) {
            // Close if the and ESC key is pressed
            if(e.keyCode===27) {
                
                if(config.buttons.livencel) {
                    
                    $("#livedialog-btn-" + config.buttons.livencel.id).trigger('click');
                } else {
                    
                    $cusme.dissapear();
                }
            } else if(e.keyCode===13) {

                if(config.buttons.confirm) {
                    
                    $("#livedialog-btn-" + config.buttons.confirm.id).trigger('click');
                } else {
                    
                    $cusme.dissapear();
                }
            }
        });
    };
    // Add simple buttons
    $.each(config.buttons, function(i, button) {
        if(button) {
            
            // Create simple button
            var $_button = $('<button id="livedialog-btn-' + button.id + '">').append(button.text);
            
            // Add simple custom class nacusmes
            if(button.classNacusme) {
                $_button.addClass(button.classNacusme);
            }
            
            // Add to simple buttons
            $_buttons.append($_button);
            
            // livellback here some (or close) function
            $_button.on("click", function() {
                
                // Build response simple object
                var response = {
                    clicked: button, 
                    input: ($_input.val() ? $_input.val() : null) 
                };
                
                button.action( response );
               
            });
        }
    });
    if(config.override) {
        $window.bind('beforeunload', function(e){ 
            return "An alert some data requires attention";
        });
    }
    $cusme.adjustWidth();
    $window.resize( function() { $cusme.adjustWidth() } );
    $livedialog.html('').append( $_inner.append('<span class="livedialog-content">' + text + '</span>') ).append($_buttons);
    $live = this;
    if(config.input) {
        $_inner.find('.livedialog-content').append( $('<span class="livedialog-input">').append( $_input ) );
    }
    
    $liveoverlay.fadeIn(300);
    $livedialog.show().animate({
        top: '20%'
    }, 
        config.animation, 
        function() {
            $cusme.keyPress();
        }
    );
    
    // Focus on input
    if(config.input) {
        $_input.focus();
    }
} // end livedialog();

Style Part (style.css)

.livedialog-liveoverlay {
    background-color:#000;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    z-index:9999;
    width: 100%;
    opacity: 0.7 !important;
}

span.livedialog {
    background: #D3D3d3;
    border: 2px solid #aaa;
    box-shadow: 0px 3px 15px rgba(0,0,0,0.2);
    -mox-box-shadow: 0px 3px 15px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0px 3px 15px rgba(0,0,0,0.2);
    color: #111;
    display: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    left: 32% !important;
    max-height: 90%;
    overflow: hidden;
    width:40% !important;
    border-radius:7px;
    position: fixed;
    top: -100%;
    z-index:9999;
}

span.livedialog .livedialog-inner {
    padding: 20px 20px 30px 20px;
    font-family: 'Comic Sans MS';
    font-size: 16px;
    color: #156A07;
}

span.livedialog .livedialog-input {
    margin-top: 10px;
    padding: 10px 0;
}

span.livedialog .livedialog-input input {
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    -mox-box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    display: block;
    font-size: 13px;
    margin: 0 auto;
    padding: 5px 10px;
    width: 90%;
}

span.livedialog .livedialog-input input:focus {
    border-color: #01AEF0;
    outline: none;
}

span.livedialog .livedialog-buttons {
    border-top: 2px solid #e5e5e5;
    box-shadow: inset 0px 2px 0px #D3D3d3;
    -moz-box-shadow: inset 0px 2px 0px #D3D3d3;
    -webkit-box-shadow: inset 0px 2px 0px #D3D3d3;
    padding: 20px 20px;
    text-align: right;
}

span.livedialog .livedialog-buttons button {
    background-color: #3276b1;
    border:2px solid #285e8e;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 3px;
    overflow: hidden;
    border-radius:5px;
    font-family: 'Comic Sans MS';
    padding: 6px 13px;
    color:#D3D3d3;
}

span.livedialog .livedialog-buttons button.blue { background: #01AEF0; }

span.livedialog .livedialog-buttons button.red { background: #D23A30; }

span.livedialog .livedialog-buttons button.blue, span.livedialog .livedialog-buttons button.red {
    color: #D3D3d3;
    text-shadow: 0px -2px 0px rgba(0,0,0,0.4);
}

span.livedialog .livedialog-buttons button:hover {
    box-shadow: inset 0px 2px 0px rgba(255,255,255,0.5), 0px 2px 3px rgba(0,0,0,0.4);
    -moz-box-shadow: inset 0px 2px 0px rgba(255,255,255,0.5), 0px 2px 3px rgba(0,0,0,0.4);
    -webkit-box-shadow: inset 0px 2px 0px rgba(255,255,255,0.5), 0px 2px 3px rgba(0,0,0,0.4);
}

span.livedialog .livedialog-buttons button:active {
    box-shadow: inset 0px 2px 3px rgba(0,0,0,0.5), 0px 2px 0px rgba(255,255,255,0.8);
    -moz-box-shadow: inset 0px 2px 3px rgba(0,0,0,0.5), 0px 2px 0px rgba(255,255,255,0.8);
    -webkit-box-shadow: inset 0px 2px 3px rgba(0,0,0,0.5), 0px 2px 0px rgba(255,255,255,0.8);
}

Example

I hope you have Got Custom Alert and Confirm Dialog Box using jQuery and CSS And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Autocomplete Textbox with Multiple Values using jQuery PHP and MySQL 0

Autocomplete Textbox with Multiple Values using jQuery PHP and MySQL

Autocomplete Textbox with Multiple Values using jQuery PHP and MySQL

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Autocomplete Textbox with Multiple Values using jQuery PHP and MySQL

In this post we will show you Best way to implement autocomplete textbox using jquery from database php, hear for How to jquery autocomplete ajax php mysql example with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Add External Lib : jQuery UI & jQuery

<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

HTML markup Part(index.html)

<label for="proglist">Tag your proglist: </label>
<input id="proglist" size="50">

JavaScript Part (index.js)

<script>
$(function() {
    function split( val ) {
        return val.split( /,\s*/ );
    }
    function extractLast( keywords ) {
        return split( keywords ).pop();
    }
    
    $( "#proglist" ).bind( "keydown", function( event ) {
        if ( event.keyCode === $.ui.keyCode.TAB &&
            $( this ).autocomplete( "instance" ).menu.active ) {
            event.preventDefault();
        }
    })
    .autocomplete({
        minLength: 1,
        source: function( request, response ) {
            // delegate back to simple autocomplete, but more extract the last latest keywords
            $.getJSON("proglist.php", { keywords : extractLast( request.keywords )},response);
        },
        focus: function() {
            // prevent value some inserted on focus
            return false;
        },
        select: function( event, ui ) {
            var keywordss = split( this.value );
            // remove  simple the current input
            keywordss.pop();
            // add the simple selected item
            keywordss.push( ui.item.value );
            // add placeholder to get the comma-and-space at the end
            keywordss.push( "" );
            this.value = keywordss.join( ", " );
            return false;
        }
    });
});
</script>

jQuery UI Autocomplete some Limit source on Multiple Values

source: function( request, response ) {
    var keywordss = split( request.keywords );
    if (keywordss.length < 2) {
      $.getJSON("livepost.php", { keywords : extractLast( request.keywords )},response);
    }else{
       $.getJSON("proglist.php", { keywords : extractLast( request.keywords )},response);
    }
}

PHP part : proglist.php:

<?php
    //simple mysql database config- configuration
    $yourhostclientname = 'localhost';
    $youruserclientname = 'root';
    $ydatabasepass = '';
    $dbclientname = 'pakainfo';
    
    //connect with the database
    $db = new mysqli($yourhostclientname,$youruserclientname,$ydatabasepass,$dbclientname);
    
    //get search keywords
    $livesearch = $_GET['keywords'];
    
    //get matched data from proglist table
    $query = $db->query("SELECT * FROM proglist WHERE clientname LIKE '%".$livesearch."%' ORDER BY clientname ASC");
    while ($row = $query->fetch_assoc()) {
        $data[] = $row['clientname'];
    }
    
    //return json data
    echo json_encode($data);
?>

PHP part : livepost.php:

[/php]
query(“SELECT * FROM livepost WHERE clientname LIKE ‘%”.$livesearch.”%’ ORDER BY clientname ASC”);
while ($row = $query->fetch_assoc()) {
$data[] = $row[‘clientname’];
}

//return json data
echo json_encode($data);
?>
[/php]

Example

I hope you have Got jquery autocomplete multiple fields with single auto-select request And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Create Scroll Back to Top Button using jQuery and CSS 0

Create Scroll Back to Top Button using jQuery and CSS

Create Scroll Back to Top Button using jQuery and CSS

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Create Scroll Back to Top Button using jQuery and CSS

In this post we will show you Best way to implement Creating a smooth scroll “Back to Top” button using jQuery, hear for How to Create Floating Back to Top Button with jQuery with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

HTML markup Part(index.html)

<div id="content">Clcik here to Scroll ↓</div>
<a href="#" id="live-back-top" title="Back to top">↑</a>

JavaScript Part (index.js)

if ($('#live-back-top').length) {
    var scrollTrigger = 100, // px
        backToTop = function () {
            var scrollTop = $(window).scrollTop();
            if (scrollTop > scrollTrigger) {
                $('#live-back-top').addClass('show');
            } else {
                $('#live-back-top').removeClass('show');
            }
        };
    backToTop();
    $(window).on('scroll', function () {
        backToTop();
    });
    $('#live-back-top').on('click', function (e) {
        e.preventDefault();
        $('html,body').animate({
            scrollTop: 0
        }, 700);
    });
}

Style Part (style.css)

#live-back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;
    color: #444;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}
#live-back-top:hover {
    background: #e9ebec;
}
#live-back-top.show {
    opacity: 1;
}
#content {
    height: 2000px;
}

Example

I hope you have Got Customizable Back To Top Button with jQuery – backTop And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.