Results 1 to 2 of 2

Thread: Random Iframe Laoding TEXT FILE

  1. #1
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Random Iframe Laoding TEXT FILE

    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!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •