Sometimes we need to get values through the query string in the URL on the browser address bar. But the question is how to get these query string values in JavaScript or jquery because we need them on the client-side.
Tag » JavaScript
How to Use Individual JavaScript Plugin in Bootstrap
You can use individual JavaScript plugin in Bootstrap framework also, rather using whole Bootstrap JS file built on jQuery. Once I had need to include only Navbar component which depends on Collapse JavaScript plugin from Bootstrap.
Client Side Validation using ASP.NET Validator Controls from Javascript
We use the server side control in ASP.NET and for validating them, we use the server validation control. These ASP.NET validation controls provide functionality to perform validation using client script but these are handled at the end of the page by rendered validation script. When we want to post the data by AJAX or JavaScript that time Validation control won’t fire the validation.
difference between “==” and “===” in JavaScript
This is very common question asked in JavaScript related interviews because generally everyone is used to of “==” but we should know the difference between “==” and “===” in JavaScript.
How to set scroll position to bottom in a div using javascript
Generally we create a div with the content and dynamically update the content. Further, we want to maintain the scroll position according to updated content. So there is one question of how to set scroll position to bottom in a div using JavaScript. Same type of problem I faced few days ago when I was working with a ajax message application and I am trying to get a div to scroll to the bottom when chat is updated.
Get query string parameters values from URL in JavaScript
Sometimes we need to retrieve URL parameters values from browser address bar in our client side script to process some functioning like click to a button or show/hide some elements. Here I have created a function in JavaScript to get query string parameters from URL and displayed uses example.
Getting Checkbox Values in jQuery
Many times we use checkbox in the form control and post the form using jquery ajax and then we are required to access those form data from client side scripts, like Javascript. Among all possible form control, dropdown box, checkbox and radio buttons are having multiple options to select. So, we need to push all selected values of these form controls into an array using Javascript
Google Adwords Conversion with AJAX
I had a Google Adwords Conversion tracking code that I needed to implement basically on an onclick event. The form I am tracking, submits information using AJAX and then renders a ‘Thank you’ message to the page by replacing the form’s div with the ‘Thank you’ HTML.
Check undefined, null, empty or blank variable in JavaScript
There are already many answers exist to check for undefined, null, empty or blank variable in JavaScript and jQuery still sometimes they mislead if not understood well. So this article is a straightforward manner to determine if a variable is undefined or has null/empty value or whatsoever.
Uncaught SyntaxError: Unexpected token = in Chrome
While working on a project I got a JavaScript error saying Uncaught SyntaxError: Unexpected token = in Google Chrome while Firefox was performing fine. I searched on Google for similar questions but couldn’t get the issue with my code. Still later after finding solution for this Uncaught SyntaxError, I decided to post an article as below.