PDA

View Full Version : Htranscluder



molendijk
07-11-2008, 11:15 PM
1) CODE TITLE: Htranscluder

2) NAME: Arie Molendijk

3) DESCRIPTION: https://svn.openplans.org/svn/standalone/htranscluder/docs/example/index.html offers a handy javascript-tool for inserting (parts of) external content into a document. Here are some remarks on using the script.

4) URL TO CODE: http://molendijk.110mb.com/include_via_htranscluder/main.html

Nile
07-11-2008, 11:18 PM
This is confusing to me.
So say I do this:


<a href="http://goog.com" rel="include">

That would show google.com?
Almost like PHPs: file_get_contents
?

molendijk
07-11-2008, 11:46 PM
Nile, good question.
I forgot to mention that this only works for external pages that belong to non-foreign domains.
If you do what you suggest, then there will automatically appear a 'replacement-string' linking to Google, though.
What you suggest can only be accomplished (on the client) by http://codinginparadise.org/weblog/2007_08_15_archive.html
---
Arie.

molendijk
07-12-2008, 09:04 AM
PS.:
Disable Javascript and see what happens on the page: the included text(s) will be automatically replaced with links to the external files.
---
Arie.