View Full Version : Random Iframe Laoding TEXT FILE

03-08-2005, 04:14 AM
Thanks for providing these scripts, I will link back to you.

I want to use the random ifram script (or possibly the ramdom day content one) to display a text file as its content.

This works but the text will not wrap in the window it just scrolls forever until there is a carriage return.

The reason I want to do this is to display random HTML in a text file so that users can copy and paste this to their websites. I could do this with putting the html in an html file - but then it wont copy properly, users would first need to paste it to a text file then recopy it and paste in into their editors (otherwise you get some strange html/asci symbols pasted).

Any ideas how this could work?

THanks! :eek:

03-09-2005, 09:46 PM
Hmm I'm not sure which browser behaves this way for displaying txt files inside an iframe, but regardless, unfortunatley there isn't a solution for this. The problem has to do with how browsers treats txt files when rendering them inside iframes, and can't be changed via a DHTML script.