Convert object into query string in javascript
Sometime we need to append query string to the current url for filtering or searching specific data. we can convert an object or array into query string using following code
Sometime we need to append query string to the current url for filtering or searching specific data. we can convert an object or array into query string using following code
Falsy values are the values that return false.There are six falsy values in JavaScript.
In class-based object-oriented programming, a constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables. Since JavasScript is also an object-oriented programming launguage, there is also constructor methods in JS to create an object. […]
What is HTTP cookie? When a server communicates with client’s computer then for identification sever needs some sort of unique token from client side to identify specific client server and here comes the role of cookies. SO what are cookies. According to MDN An HTTP cookie (web cookie, browser cookie) is a small piece of […]
In the era of cloud , every application has been / being migrated from desktop to web server. And companies earlier having their older softwares on systems are creating the same as web app for easy and global approach of clients. Now the webapp could be categorized into two types – One is traditional Multi Page […]
So folks, sometimes it happens that you are saving some text with formatted data like HTML string but while displaying you don’t want to display it not as string but as formatted text.i.e. want to strip HTML tags from the content here is the slution for it:
Javascript Hoisting : Javascript a weekply typed language, and if we are not using the ‘strict’ mode in JS, there are so many code practices which can be avoided with Javascript unlike any other languages. One of these practise is that we can use a variable before declaring it.Yes, you heard it right; In JavaScript, […]
To populate a select box by cakephp ajax functionality. Step 1. In the end of your view (.ctp)file.This is your javascript code in cake. Step 2. In your controller file create function with that returns options string step 3. In the end or your layout file after your loaded scripts