JQuery error() method

What is the error() method of the jquery and how to use it.This article is describing how to use it,usages,issues and so on.The error event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly.
Syntax : .error(handler(eventObject))
Continue reading JQuery error() method

Java Script check date range is valid or not

Q:- I want to validate date range or if exist date range by using java script.
Answer :-
This is can be done using Date() object.Look at the following function.It will return date range is valid or not.Simply you have to pass start date and end date only.

Continue reading Java Script check date range is valid or not

How can I detect iFrame using PHP

How to detect this is a iframe or not, using php.You can check the referrer to determine if a request came from a another page on your own site or from a third-party site, or if it was direct traffic.So $_SERVER[‘HTTP_REFERER’] can be use to this.
As noted this method is not foolproof, but may provide more information than your application currently receives.
Continue reading How can I detect iFrame using PHP

How to delete all cookies using Java Script

Here is a simple small function to delete all cookies using java script.You have to only call to this function.You can test this using firebug console.You can only remove cookies created by JavaScript.If a cookie was create by the server, then you cannot remove it through JavaScript.
Continue reading How to delete all cookies using Java Script

WordPress get meta data from wp_options table

How to get data/meta data from the wp_options table in the wordpress .In this table, option_values¬†are(some values) saved as serialized .So directly we can’t get those values.Now I’ll tell you easy method to get this value from wp_options table.
I want to get option name – “feedburnercount/feedburnercount.php”, values.
Values like this. Continue reading WordPress get meta data from wp_options table

Magento can’t login admin panel after installed

If you are not installed magento previously this is a problem you faced.After installation magento returns a message that the installation was successful and you can proceed to the administration panel. Although providing the correct username / password, magento does not show anything. Providing wrong username / password , magento returns the message “Invalid Username or Password”.If you login from different browser same effect will happening.

The login attempt was made through the “localhost ” or ” 127.0.0.1? socket , but you can’t log in to admin panel.The problem occurs because magneto could not store cookies. Localhost and “127.0.0.1? are not true domains , and browsers allow only real domains to store cookies ,that’s why login stops without any indication.
Continue reading Magento can’t login admin panel after installed