Web Hosting, Design, & Coding forum

Question

<embed> not quite what I was hoping for...

by vmars316 / October 6, 2012 11:00 AM PDT

I want to display a .txt file dynamically (everytime .html is loaded, I want the (current) .txt to be loaded).
I am using <embed> (see below),
But browser jams everything into a tiny scrollBarBOX .
How can I enLarge the BOX.
Or get rid of the BOX altogether.
====
<span id="INSERTION_MARKER"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Minimalist Html Code</title></head><body><br>
<span><embed src="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt">
<span>

<span></body></html>
====

Thanks...Vernon

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: <embed> not quite what I was hoping for...
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: <embed> not quite what I was hoping for...
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Re: include text file
by Kees_B Forum moderator / October 6, 2012 8:21 PM PDT
Collapse -
Include an external file inside of HTML
by vmars316 / October 7, 2012 4:41 AM PDT
In reply to: Re: include text file

I am trying to Include an external file inside of HTML that will work as crossBrowser:

I have come up with three methods of coding it, but only Chrome works for all 3 methods.
Anyone know of different ways to do this ?
Thanks...Vernon


Including an external file inside of HTML:

In the 3 methods below ,

for GoogleChrome, all Methods(1,2,3) work ,
and all methods show search results.

For InternetExplorer, all Methods(1,2,3) show something ,
BUT ONLY 'Method 2' shows search results.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Minimalist Html Code</title>

</head><body>
<br><br>
Method 1
<br>
<embed src="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt">
<br>
<br><br>
Method 2
<iframe src="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt" width="800" height="800">
<a href="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt">Hmm, you are using a very old browser.
Click here to go directly to included content.</a>
</iframe>
<br>
<br><br>
Method 3
<object width="800" height="800" data="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt"></object>

<br>

<br>
</body></html>

Collapse -
Just a comment.
by R. Proffitt Forum moderator / October 7, 2012 4:57 AM PDT

When dealing with Microsoft stuff I steer clear of filenames that contain non-Alphanumerics. Also for web work I stick to all lower case.

I know that many folk will write this should work but then again I don't have to do as many bug hunts as other folk.

With that out of the way, you know that HTML browsers CACHE content. You'll have to deal with that. I won't write about such as setting the expiry is just a little setting or code. Your choice.
Bob

Collapse -
How would " setting the expiry " work in this case ?
by vmars316 / October 7, 2012 9:52 AM PDT
In reply to: Just a comment.

HI Bob,
[ When dealing with Microsoft stuff I steer clear of filenames that contain non-Alphanumerics. Also for web work I stick to all lower case. ]
Yes, that sounds right.

[ With that out of the way, you know that HTML browsers CACHE content. You'll have to deal with that. I won't write about such as setting the expiry is just a little setting or code. Your choice. ]

I am not sure what you mean here, other than I often click on ReLoad Button.
<div>How would "

setting the expiry

" work in this case ?</div>Thanks....Vernon

Collapse -
How would "setting the expiry" work here ?
by vmars316 / October 7, 2012 9:56 AM PDT
In reply to: Just a comment.

Hi Bob,
I do fairly often use the ReLoad Button.
<div>How would "setting the expiry" work here ?
Thanks...Vernon
</div>

Collapse -
It's an old issue.
by R. Proffitt Forum moderator / October 8, 2012 6:18 AM PDT
Popular Forums
icon
Computer Help 51,224 discussions
icon
Computer Newbies 10,453 discussions
icon
Laptops 20,090 discussions
icon
Security 30,722 discussions
icon
TVs & Home Theaters 20,937 discussions
icon
Windows 10 1,295 discussions
icon
Phones 16,252 discussions
icon
Windows 7 7,684 discussions
icon
Networking & Wireless 15,215 discussions

Finding the best 360 camera

GoPro, Pixpro, or Ricoh?

You can spend hundreds or even thousands of dollars on a 360-degree camera. We tested three of them to find out what kind of quality and ease of use you can expect at each price point.