Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Displaying the AJAX content in a separate window

Write the following piece of code in your call back function to display the AJAX content in a separate browser window.
function(data) {
var myWindow = window.open('','Name of the Window','');

myWindow.document.open();
myWindow.document.write(data);
myWindow.document.close();
}

Note: You need to make sure your browser pop up blocker has disabled.

Useful AJAX Modal windows using javascript frameworks

This is an interesting link which has 30 useful AJAX Modal windows implemented using javascript frameworks.
These have neat little descriptions about the framework it uses.
It is easy to pick the solution based on the current javascript framework your using !

http://www.dottony.com/30-useful-ajax-lightbox-and-modal-dialog-solutions/

Python contextlib for Timing Python code

If you've ever found yourself needing to measure the execution time of specific portions of your Python code, the `contextlib` module o...