var qty = 2.56.6 if (!isFinite(qty)) { alert("false") }else{ alert("true") }
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Saturday, 4 October 2014
Exact Floating validation in javascript
Wednesday, 1 October 2014
Easy to integrate Facebook login to your web application
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();"> </fb:login-button> <span id="status"></span> <script type='text/javascript'> function statusChangeCallback(response) { console.log('statusChangeCallback'); console.log(response); if (response.status === 'connected') { testAPI(); } else if (response.status === 'not_authorized') { document.getElementById('status').innerHTML = 'Please log ' +'into this app.'; } else { document.getElementById('status').innerHTML = 'Please log ' +'into Facebook.'; } } function checkLoginState() { FB.getLoginStatus(function(response) { statusChangeCallback(response); }); } window.fbAsyncInit = function() { FB.init({ appId : "FB_APP_ID", cookie : true, // enable cookies to allow the server to access // the session xfbml : true, // parse social plugins on this page version : 'v2.1' // use version 2.1 }); //FB.getLoginStatus(function(response) { statusChangeCallback(response); }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); function testAPI() { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Successful login for: ' + response.name); var name = response.name; var email = response.email; document.getElementById('status').innerHTML = 'Thanks for logging in, ' + response.email + '!'; }); } </script>
How to resolve auto restart in Android mobile after Factory reset on your device?
Kindly follow steps to follw,
1. First to reset your device
2. To connect internet via wireless or mobile data to configure in Gmail Account first
3. Asking To insert SIM then to insert & restart your device issue solved
1. First to reset your device
2. To connect internet via wireless or mobile data to configure in Gmail Account first
3. Asking To insert SIM then to insert & restart your device issue solved
Friday, 26 September 2014
Push method for javascript array
JavaScript Array pop() Method
var actors = ["Rajini", "Kamal", "Ajith", "Vijay"];
actors.push("Surya");
The result of fruits will be:
Rajini,Kamal,Ajith,Vijay,Surya
var actors = ["Rajini", "Kamal", "Ajith", "Vijay"];
actors.push("Surya");
The result of fruits will be:
Rajini,Kamal,Ajith,Vijay,Surya
To remove array Last index value Javascript
JavaScript Array pop() Method
var actors = ["Rajini", "Kamal", "Ajith", "Vijay"];
actors.pop();
The result of fruits will be:
Rajini,Kamal,Ajith
var actors = ["Rajini", "Kamal", "Ajith", "Vijay"];
actors.pop();
The result of fruits will be:
Rajini,Kamal,Ajith
Thursday, 25 September 2014
How to add segment insertAfter specific id in jQuery?
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("<p id=3>Hello world!</p>").insertAfter("#1");
});
});
</script>
</head>
<body>
<button>Insert span element after each p element</button>
<p id="1">This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
How to connect to MySQL from the command line?
Connect to MySQL from the command line To connect to MySQL from the command line: Log in to your A2 Hosting account using SSH. At the command line, type the following command, replacing USERNAME with your username: mysql -u USERNAME -p At the Enter Password prompt, type your password. When you type the correct password, the mysql> prompt appears. To display a list of databases, type the following command at the mysql> prompt: show databases; To access a specific database, type the following command at the mysql> prompt, replacing DBNAME with the database that you want to access: use DBNAME; After you access a database, you can run SQL queries, list tables, and so on. Additionally: To view a list of MySQL commands, type help at the mysql> prompt. To exit the mysql program, type \q at the mysql> prompt.
Subscribe to:
Posts (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
-
To Resolve above the issue use below this code $(function() { $('#calendar').fullCalendar('render'); });