Monthly Archives: March 2014

How to redirect URL in Javascript or jQuery

snippets

How to redirect URL in Javascript or jQuery I will present some ways to redirect the user to another page from the client side using only plain javascript. 1) Using window.location.href you obtain a similar behavior  as an HTTP redirect

2) Using window.location.replace

window.location.href VS window.location.replace It is better than using window.location.href, because replace() does not put

Change value of selectbox in Zurb Foundation via JavaScript

snippets

Change value of selectbox in Zurb Foundation via JavaScript Some of us tried to change or will have to change via javascript a select-box that is generated from the custom forms of Zurb Foundation  framework. You noticed or you will notice that it is not as simple as changing a default html select-box. Why ?

Working with mailchimp newsletters

Working with mailchimp newsletters I’ve wrote another article not so long ago with some of the best newsletter services that you can use with your websites or business, between the first in the list there is Mailchimp. I have been personally using it for a long time now with really good support overall. There’s also

How to invoke dynamically a class method in PHP?

snippets

How to invoke dynamically a class method in PHP? Today will talk about calling a method from inside class, however you are in the situation of calling a method dynamically in a loop, for each element of an array. To do this we will make use of a php function called call_user_func.Using this function, you

Request an article ←