Welcome to TalkGraphics.com
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47
  1. #11
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Create a text file and call it ‘text.txt’

    I thought the question was something new.

    The topic of text in an iFrame has been discussed many times before. The forum search feature can help you find answers to most questions because it has probably already been asked numerous times.

    See the thread http://www.talkgraphics.com/showthread.php?t=37460 for one example.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  2. #12
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Create a text file and call it ‘text.txt’

    Still works the same with:
    <iframe name=placeholder src=text.txt width=100% height=100% scrolling=yes frameborder=1></iframe>

    See attached screenshots.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	capture094.jpg 
Views:	106 
Size:	73.5 KB 
ID:	68793   Click image for larger version. 

Name:	capture095.jpg 
Views:	105 
Size:	55.8 KB 
ID:	68794  


  3. #13
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Create a text file and call it ‘text.txt’

    Try removing mark of the web (second line in the code) from the exported html.
    John.

  4. #14

    Default Re: Create a text file and call it ‘text.txt’

    Testing this: <iframe name=placeholder src=MY PATH HERE/text.txt width=100% height=100% scrolling=yes frameborder=1></iframe>

    Regardless of FF, or IE8,
    Using the XARA preview I cannot get any of the text to show in the place holders using these iframe codes.





    I can get this to work in FF, but not IE8

    Create a text file, wrap it in font tag and name it
    ‘text.htm’
    Save it to the index_htm_files folder of your site
    Font Tag examples:
    <font size="3" color="red">This is some text!</font>
    Last edited by sadicus; 30 December 2009 at 06:28 PM.
    sadicus - Win10 ● nvidia 32GB ● XDP17

  5. #15
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Create a text file and call it ‘text.txt’

    Using the placeholder:

    <iframe name=placeholder src=http://www.michiganimaging.com/text.txt width=100% height=100% scrolling=yes frameborder=1></iframe>

    Preview shows the text for me. Without the domain name, preview shows nothing. If it were me, I would use what works and avoid what doesn't.

    Jim

  6. #16

    Default Re: Create a text file and call it ‘text.txt’

    Forget preview when using relative paths, this will only work after export because preview is using a local cache folder until after export.

  7. #17

    Default Re: Create a text file and call it ‘text.txt’

    ok thanks! (about the Xara preview)

    <iframe name=placeholder src=http://www.michiganimaging.com/text.txt width=100% height=100% scrolling=yes frameborder=1></iframe>

    I typed in your code into my place holder and Xara preview shows the text.
    ...now to get it to work with my text!

    The thing is I don't have the website uploaded! so all my tests are on my computer. I go to the Website folder and right click Open with> IE8, or FF, to see what the website will look like.
    sadicus - Win10 ● nvidia 32GB ● XDP17

  8. #18

    Default Re: Create a text file and call it ‘text.txt’

    IE won't show local iframe text content due to the 'Protected Mode' which is enabled by default.
    Disable this (Internet Options>> Security) and your content will show (albeit with warnings)
    Re enable it before normal web surfing.

    Also, instead of the <iframe tag - you can also use the <object tag:

    <OBJECT data="text.txt" type="text/plain" width="100%" height="100%"></OBJECT>

    You may however run into formatting errors in some browsers, which is why HTML was developed

  9. #19
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Create a text file and call it ‘text.txt’

    Quote Originally Posted by covoxer View Post
    Try removing mark of the web (second line in the code) from the exported html.
    You could always follow Covoxer's advice.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	mark-of-the-web.gif 
Views:	111 
Size:	50.0 KB 
ID:	68813  
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  10. #20

    Default Re: Create a text file and call it ‘text.txt’

    Have you tried this?
    It makes no difference with IE8 Bill.

 

 

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
  •