Profile

Cover photo
Yogesh Singh
Lives in India
15 followers|35,874 views
AboutPostsCollectionsPhotosVideos

Stream

Yogesh Singh

Shared publicly  - 
 
How to use jQuery UI slider to filter records with AJAX

A slider is a good to avoid bad input from the user if you want them to pick values within the range.

To add slider control I am using jQuery UI slider.

In the tutorial demonstration, I am list records from the MySQL database table and filter the list on salary basis using slider widget.
A slider is a good to avoid bad input from the user if you want them to pick values within the range. To add slider control I am using jQuery…
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
Capture Signature in the webpage with jQuery plugins

In this tutorial, I show you some jQuery plugins by using it you can capture the user signature on your web page.

They add a container on the web page where the user can draw its signature using mouse pointer.

I discuss the following plugins –

# jSignature
# Signature Pad
# jQuery UI Signature
In this tutorial, I show you some jQuery plugins by using it you can capture the user signature on your web page.
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
Attach event to Dynamic elements in jQuery

Once a document is being loaded, the same event handler is not being attached to newly created elements.

It seems like the event handler is being attached conceptually.

When you perform some action on new elements, then the event bound with it not trigger on the new element. But it is working on the elements which are created in the ready state.

This problem is common if the event handlers are not correctly attached.
In this tutorial, I show some of the ways by using it you can attach event handler to the newly created elements in jQuery.
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
How to Live search on the HTML table with jQuery

Whenever there is the large list of records which you are displaying in the HTML table. In this case, it’s better to allow the users to search text within the table.

You can easily do this on your Client-side with jQuery.

For searching text within HTML table columns I am using .contains() method.
Whenever there is the large list of records which you are displaying in the HTML table. In this case, it's better to allow the users to search text ...
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
How to use Order by with Multiple columns in MySQL
The data is not displayed in any particular order when you simply fetch it from MySQL table. For displaying data in some meaningful way ORDER BY clause is used.

This sorts your result on the basis of column name specified in the clause within the SELECT query.

It allows us to –

- Specify ordering in single or multiple columns
- Define sort results in ASC or DESC format.
The data is not displayed in any particular order when you simply fetch it from MySQL table. For displaying data in some meaningful way ORDER BY clause is ..
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
AJAX Pagination with jQuery and PHP

Using Pagination you can divide the huge list of data in multiple parts or pages. The user only able to see specific numbers of records and need to navigate for viewing another list of records.

In the demonstration, I am creating a table structure which shows the list of records. Adding AJAX pagination which has a previous and next button for navigation.
In this tutorial, I will show you how you can implement AJAX pagination in your project. I am creating a simple layout which has Previous and Next ...
1
Add a comment...

Communities

11 communities

Yogesh Singh

Shared publicly  - 
 
Page Redirect after specified time with JavaScript

For adding delay for execution of some action setTimeout() and setInterval() methods is begin used in JavaScript.

The setTimout() method execute the statement only once but setInterval() method execute repeatedly until the interval is not being cleared.

In this tutorial, I am using the setTimeout() method to stop the page from redirect as soon as the button gets clicked.
In this tutorial, I will show how you can use setTimeout() method to stop the page from redirect as soon as the button gets clicked.
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
Generate PDF from HTML with Dompdf in PHP

The Pdf file creation in PHP mainly requires when we need to generate the file on the basis of the available data otherwise, we simply create it manually with the external applications.

For example – generating the report, the user certificate, etc.

For generating pdf file I am using Dompdf library which generates the downloadable pdf file from HTML.
The Pdf file creation in PHP mainly requires when we need to generate the file on the basis of the available result otherwise, we simply create it ....
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
Prevent page from submit on Refresh in PHP

This usually occurs when the user already submitted data and tries to refresh the page. In this case, the browser will attempt to POST the page again.

If you do not perform any action then a new duplicate record inserted on the MySQL Database table.

In this tutorial, I show some of the ways which you can use to avoid it.
This usually occurs when the user already submitted data and tries to refresh the page. In this case, the browser will attempt to POST the page again.
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
.addClass() and .removeClass() methods in jQuery
In jQuery, there are various methods like – switchClass(), toggleClass(), addClass() and removeClass() by using them you can easily add or removes classes in the elements.

For using switchClass() method you need to include jQuery UI library within your page but you can simply use toggleClass(), addClass() and removeClass() without any dependency other than jQuery.

In this tutorial, I discuss about addClass() and removeClass() method.
In jQuery, there are various methods like - switchClass(), toggleClass(), addClass() and removeClass() by using them you can easily add or removes classes ..
1
Add a comment...

Yogesh Singh

Shared publicly  - 
 
Get checked Checkboxes value with PHP

The checkbox element in HTML allows us to select multiple items from the group of values.

When you use it in your form and try to read all checked values as any other elements like – text box, text area, radio button etc. you will get the last checked value.

You need to send the checkboxes value in the form of an Array when the form gets submitted then you can loop over $_POST values.

You need to send multiple checkboxes value in an Array format when the form submitted. You can loop over the $_POST checkbox using foreach and read values ..
2
Add a comment...

Yogesh Singh

Shared publicly  - 
 
How to Break the nested loop in PHP

The break statement is used to ends the execution of the current loop or switch case statement in PHP.

But when working with nested loops and wants to exit out from all or some of the outer loops. For this, you need to pass numeric value following with break statement.

In this tutorial, I show how to out from two inner loops and n number of nested loop.
The break statement is used to ends the execution of the current loop and switch case statement in PHP. But when working with nested loops and wants to ...
1
Add a comment...
Yogesh's Collections
Communities
11 communities
Work
Occupation
php developer at Welkin Systems
Skills
PHP
Basic Information
Gender
Male
Collections Yogesh is following
View all
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
India
Previously
Bhopal
Links