View Full Version : Include external content via ajax + hidden object

06-10-2008, 02:25 PM
1) TITLE: Include external content via ajax + hidden object

2) AUTHOR NAME/NOTES: Arie Molendijk

3) DESCRIPTION: External content that is fetched with Ajax doesn't display foreign characters (, etc.) well. At least, this is true if the transformations are performed on the client (Google the Internet to see what I mean; see this (http://www.dynamicdrive.com/forums/showthread.php?t=29157&highlight=ajax+foreign+content), for instance).

This problem does not occur if external content is extracted with the help of a hidden object (or iframe) and innerHTML (see this (http://www.dynamicdrive.com/forums/showthread.php?t=31541)). But that method has its own limitations: it does not allow us to automatically access the js and the css belonging to the external files.

So I combined the two methods

4) URL TO CODE: http://molendijk.110mb.com/include_via_ajax_and_object/includer.html