Javascrip/AJAX

Share

In this post i will show you a easy way to add different header images for each page or post in your blog / website. The fastest way to achieve this is to use Custom Fields, this allows us to add additional meta information to posts. In the next example the header image it is […]

Continue Reading  

Share

Let’s assume that we have to build a price calculator for a osCommerce website, that needs to have price based on dimensions(input from user – length, width), attributes,
for each attribute there are more than 1 options with different prices for each option.

Continue Reading  

Share

The client wanted to limit the access to certain pages based on user account and password. So some pages can only accessed by some users that gave them permission the site manager. For that i create two radio input type with “Yes” or “No” protect page options.When i selected “Yes” option i can chosen from […]

Continue Reading  

Share

In these days all web2.0 apps make use of AJAX to save bandwidth, user time or to display data without refreshing the page. When you make an AJAX request the response could be plain text, Html or JSON, but if you want to make a cross-domain AJAX call you can’t because the browser security model dictates that XMLHttpRequest must have the same domain in order to communicate. This is where you need to use JSONP, this technique will make the AJAX call and after will inject the response in a script tag and will pass the data to a specified function.
Some JavaScript Libraries help you dealing with JSONP and in this article I will show you how to make cross-domain AJAX calls with MooTools and jQuery.

Continue Reading  

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close