
Search In
Custom Dialogs in android using DialogFragment:
DialogFragment is the fragment that shows dialog window on top of your activity.
We have to override DialogFragment class and implement onCreateView(LayoutInflater, ViewGroup, Bundle) to use the cont
Hello Readers,
The most important thing to use Node and Socket is to make connection. For this we should have two files one is Client.js(i.e. Client Side Javascript file) and other is Server.js(Server side javascript file).
Under Client.js file:
A
Hello Readers!
In almost every web application their will be a need of javascript function "document.getElementById" , lets understand this how it work.
Say suppose We have this HTML structure
<div id="scores" style="display:none;">
Hello Readers,
Their are many ways in javascript and jquery where we can trigger an event using Id or Class. Here's the example of how we can trigger the event using "addEventListener()" method.
Let's suppose we have have button having id="myBtn".
Hello Readers!
If you are creating any real time web application then node.js with socket.io is very worth for it. It connects client to server very easily with no time. Perfect example of node.js and socket.io is a Chat application or online real t
If you are making a Ajax request to submit a form that include files then HTML5 FormData is the solution for that. You can also used jQuery form for upload files using Ajax request.
First, we need to add jQuery code to submit function which is calle
AngularJS within it self provides many services that we can use in our application, such as
$http,
$resource,
$route,
$window,
$location etc
These Services are nothing but javascript functions defined inside Angular JS and they perform certa
jQuery-noConflict():
In order to resolve the conflict between Jquery & any other
JavaScript framework that also use the '$' sign as a shortcut the jQuery team implemented a
method called the noConflict() method.
&nbs
Drupal has hook_mail function to send emails. This function is capable of sending email to a single user.
If we need to send an email to multiple user then we can write a function and call this function within foreach loop. This should be a simple an
Hello Readers ,
Today we will going to understand the concept of PHP filters to Sanitize and Validate data.
PHP filters are used to validate and sanitize external input.
Validating data = Determine if the data is in proper form.
Sanitizing data =
