Reloading partial page content with JavaScript

If you need to reload a partial content (not the whole page) with JavaScript, you can easily use AJAX (jQuery is the simplest). But if the content is also from another website (eg: some API), then you can use JSONP (JSON with Padding) to get around the security protection of AJAX requests. And in the server-side javascript.php, you would return:

Labels:

0 comments

0 Comments:

Post a Comment



Home