Skip to content

Instantly share code, notes, and snippets.

View rajneeshbhandari's full-sized avatar

Rajneesh Bhandari rajneeshbhandari

View GitHub Profile
/**
* Convert iframes to divs via ajax iframe_to_div jQuery Plugin
*
* Uses javascript to replace iframes with divs containing their source content
* by loading via ajax. If you use this to load vanilla html snippets, this has the
* effect of applying the page's css to your vanilla html snippet.
*
* This will not work if the iframe src is not a relative link due to ajax restrictions across domains.
*
* As an example: