Extension talk:Anysite

Thanks to User:Duesentrieb, extension got much safer.

Brilliant
works a charm - thanks soo much! i've been fluffing around with IFRAME nonscence for a whole day trying to find a workaround for it. you're a lifesaver. i can finally embed our 'easy to use' noticeboard within our intranet!

if you chuck some more search keywords (iframe wiki workaround etc.) in this page you're bound to rescue hundreds of others! =)

thnkx again - dave fear, new zealand.

More options
Options to specify iframe width, height, and border would be nice in order to not have to force global settings for every embed. —Eep² 11:27, 20 August 2007 (UTC)
 * OK, I will make new version to be able to choose that. --Gabeyg 11:46, 24 August 2007 (UTC)

Resize option
I made a few changes to get the iframe resize itself. Setting the width to 100% takes care of the horizontal scroll bar. Anysite.php code edit: function renderanyweb($input) { $output= '>'.' '; return $output; If you have content from the same domain you can access the parent document and resize the frame dynamically by adding a script to the iframe document. Iframe document code addition (see http://www.diplok.com/1ppl/html/article093.html): i = parent.document.getElementById("anyweb"); iHeight = document.body.scrollHeight; i.style.height = iHeight + 5 + "px"; If you don't have control over the content in the iframe you will have to add hieght:NNNpx; to the php code edit. Cheers, Wade
 * 1) The callback function for converting the input text to HTML output

Safe?
How is this safe? Can't javascript be inserted into the page that is shown and all kinds of nefarious things be done with it?

I admit to not being a guru when it comes to security. I would applicate a bit of info on how this is "Safe" as its tag line says it is. --Vaccano 16:27, 5 November 2007 (UTC)


 * Because I really wanted to use this extension I did some research and found that iFrames do not protect you from the content within them. Use this extension only if you trust everyone who can edit your wiki to know better than to include bad pages (something rarely possible).  Otherwise you are opening up your Wiki (and anything your wiki users can access) to nefarious activity.


 * A better option (though not fool proof) is Extension:Secure HTML or its similar editing rights based counterparts. --Vaccano 19:04, 28 January 2008 (UTC)

Would anyone work for me?
I allow anyone to change the source code of this extension. But if i find the code to make this extension instable, i will remove it.

I can't use this...
It just shows http://www.google.com


 * Same Here. It does not work.--Amglez 16:38, 28 January 2008 (UTC)
 * Same with me. Odessaukrain 02:29, 30 March 2008 (UTC)

coding not complete?
Hi, This seems a very useful extension but the code-example seems not complete (anymore?)