HTML - Reading From A Text File
How can I use HTML to read text from a text file and put it into a cell in a table? I want to have one main site that can have different content loaded into it. would I be better off using frames?
Sorry if this is confusing. Similar TutorialsHey all, My second question from the 'could be done another, easier way, but I want to do it like this' pile (I am really trying to avoid PHP..) At the moment I have created a basic website (just for funsies, and a little bit of learning) using CSS and such - nothing too complicated. I had a bit of a look around and found a basic script that would allow me to username / password protect the site, though I noticed that the username / password was stored in the HTML itself, so it sort of makes it useless. This got me thinking about more secure ways to do it, and I thought that if I could store the username / password combinations in a CSV file, and then check through that list on submit, that would be ok? So, firstly, is it possible to do it like this? Secondly, how would I go about doing it? I am probably in way over my head, but I will never know if I never try! Thanks in advance. ~J I'm trying to make a small page that reads a CSV file (exported from excel) that gives me a list of my DVDs with an img that is a link to the file to start the movie. It actually works fine (needs some formatting tweaking), but as it is below, it lists the movies vertically (up & down). Anyone know how I can make it list them horizontally? For whatever reason I prefer it that way. Any help would be appreciated. I'm testing using IE btw. movies-test.html ===== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Graphical list </title> </head> <body bgcolor=#C0C0C0> <object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <param nAme="DataURL" value="movies-test.csv"> <param nAme="UseHeader" value="true"> </object> <table CELLSPACING=25 datasrc='#data'> <tr> <td><center> <a href= <span datafld='location'> </span><img width=290 height=400 src=<span datafld='picture'></span> </a><br> <span datafld='name'> </span> <span datafld='time'></span> </center></td> </tr> </table> </body> </html> movies-test.csv ===== name,time,picture,location 8mm,123,C:/DVDs/images/8mm_cs.jpg,D:/8mm/video_ts/video_ts.ifo 12 Monkeys,131,C:/DVDs/images/12_monkeys_cs.jpg,E:/12_monkeys/video_ts/video_ts.ifo Thirteen Ghosts,91,C:/DVDs/images/13_ghosts_CS.jpg,E:/thirteen_ghosts/video_ts/video_ts.ifo 13th Warrior,102,C:/DVDs/images/13th_warrior_cs.jpg,D:/13th_warrior/video_ts/video_ts.ifo 16 Blocks,105,C:/DVDs/images/16_blocks_cs.jpg,H:/16_blocks/video_ts/video_ts.ifo I have several websites that I maintain and update. A lot of them are just textual changes and I would think my customers can do these themselves by editing a simple .txt file. I was hoping my choices are avalable so that I can just insert this tag into my web pages and then give them login info to their edit page or show them how to upload the .txt file. I hope this is an easy one with several answers. Is it possible these tags could discipline your rankings in the search engines? Thanks, Jason How do I Link text in a div, h1, h2, p to an external text file or xml file - I don't really know how to ask the question. I think I need an xml file that can be easily edited by a user saved to the server to update an xhtml page text without the user getting bogged down in html. I don't want to use joomla or cms. <Any ideas />? Best wishes, mas I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Hi friends , I want to upload the contains of the text file on jsp or html page . I can able to do it on desktop application using File handling function in java but not getting how to do it to upload the contains of text file on html page . And the contains of the text file is getting updated at every hour which also need to be reflected on the page . I want that all the contains get visibled on html page as it is in text file , without changing format Thanks HTML to look at text or xml file - is there a way of creating a HTML tag or Div to look at another text file that can be easily edited as the source to the content. Basically a paragraph that can be easily edited by someone who doesn't understand html that affects paragraphs in divs on a web page. - could someone point me in the right direction - I can't seem to get my head around what I need being only a tuesday and not getting stuck into the week. Thanks in advance... Hello! Is there a way to load a certain text/HTML file to a certain place in the HTML? I have a "linkbar" at the top of my page. Because i have bunch of "sub-pages" i would like to load that file with links to that position (linkbar), cause the links might change through time and i would have to update all HTMLs. Is that possible withouth frames in HTML? Thank you! I have a website that needs to display a meeting day and location for a group meeting. The area this is displayed (and the format) is the same for each page of the site. Typing this into the code for each page whenever a location changes is a pain in the ass and I would like to just edit a text(or other simple format file) to have it call and display the text on all pages. I don't want to call up a whole page in a frame though. That looks terrible and the site is nice and sleek Thanks for the help! Hello, I have the following data in a text file which then the page reads and displays on a table. ,Event,Member,Time ,3k Run,Tom Heather,9.25 ,3k Run,Alex Peck,9.50 ,3k Run,Leith Sahla,8.20 ,3k Run,Cassie Davis,8.40 ,3k Run,Holly Calender,10.23 ,3k Run,Alex Plunkett,10.45 ,3k Run,Joe Rugg,9.44 ,3k Run,Ben Frere,9.55 ,5k Cycle,Tom Heather,10.45 ,5k Cycle,Louise Peak,11.07 ,5k Cycle,John blackhall,10.22 ,5k Cycle,Frank Kelly,10.56 ,5k Cycle,Sophie Mayo,9.55 ,5k Cycle,Steven Collins,10.37 I have a table which displays this data on my page and then i want to produce a separate table which produces the fastest time for the 3k Run and 5K Cycle events. I figure you have to use the <PARAM NAME="Filter" VALUE="fieldname = value"> but stuck from here really. Some help would be greatly appreciated, Thanks The page code is below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Contact Us</title> <style type="text/css"> .style1 { text-decoration: underline; font-family: Arial, Helvetica, sans-serif; } </style> </head> <body> <table style="width: 72%; height: 7px"> <tr> <td> <p class="style1"><strong>Member Competitions </strong></p> </td> </tr> </table> <OBJECT ID = "data" CLASSID = "CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"> <PARAM NAME = "DataURL" VALUE = "data.txt"> <PARAM NAME = "UseHeader" VALUE = "TRUE"> <PARAM NAME = "FieldDelim" VALUE = ","> </OBJECT> <TABLE DATASRC = "#Data" STYLE = "border-style: ridge; border-color: #666666; background-color: #58595b"> <THEAD><TR STYLE = "background-color: 58595b"> <TH style="width: 164px">Event</TH> <TH style="width: 158px">Member</TH> <TH style="width: 149px">Time</TH> </TR></THEAD> <TBODY> <TR STYLE = "background-color: lightsteelblue"> <TD style="width: 164px"><SPAN DATAFLD = "Event"></SPAN></TD> <TD style="width: 158px"><SPAN DATAFLD = "Member"></SPAN></TD> <TD style="width: 149px"><SPAN DATAFLD = "Time"></SPAN></TD> </TR> </TBODY> </TABLE> <p class="style1"></p> </body> </html> Hello Basically what I need here is when someone donates to me, they get what I call a "Donor Key" this needs to be different for each person. This need to be added to this file: Clicky! It needs to be in ini format so: [*key here*] banned=no Is it possible that a key is randomly generated and added to that file? Hello all, I am very new to HTML and PHP coding so could you please bear with me. All I am trying to do is write a string to a text file, and I have tried many examples. Alot of them seem to be similar to this code and it doesn't seem to want to work... Code: <HTML> <HEAD> <SCRIPT language="JavaScript"> function WriteFile() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var fh = fso.CreateTextFile("c:\\MyFile.txt", true); fh.WriteLine("Some text goes here..."); fh.Close(); } </SCRIPT> </HEAD> <BODY> <P> <SCRIPT language="JavaScript"> WriteFile(); </SCRIPT> </P> </BODY> </HTML> What I do is I put this code in Notepad, save it has hello.html and I then open it in firefox. I then check the file and its still empty, then I open in it Internet Explorer and the same thing happens. Any help appreciated. Hi, I've never really done much with HTML so i was wondering how clever it really is. I have a form on a page where you can type into an input text box and hit submit but then i want the text you input to overwrite the content of a .txt file which is already there. Is that possible? and how? regards Greg hi, I had created a form using html.Can i collect all the data tht key in by the user at the form to .txt file? can ths be done by php or html? Can u please guide me step-by-step? Thanks in advance. Looking for a form / script to place on an HTML page that will accept not only a number of fields (name, email, etc) but a file (MS Word, TXT, or PDF) as well. Contents can either be stored in a SQL database, saved on server, or emailed to an account. Any help is appreciated. Hey everyone i'm new here..great forum.. I really need your help, i've literally been trying all day to save the form information entered on my site to a text file of xml or any type of document but i have not gotten through at all.. I'm creating a site that provide a service to the users, i would like them to leave information so that i can contact them, such as name number location.. I created the forms but cant get the text they type into the forum to save..after doing some reading, i learn that i need to use a script like php to write the form info to the text file.. Can someone please please please help me..im so tried..lol.. Any help would be greatly appreciated.. I'm writing my web site in Notepad++, using XHTML (source: w3schools tutorial) , and also getting into XML. This is my website. What I want to do is like this: 1) Move all the text content of my website to mywebsite.xml, organized in text blocks corresponding to each web page E.g.: I cut the text content from the HMTL of the "my profile" web page and paste it to the XML file as a text block under a suitable heading. By text content I mean all the text that is viewable, like "Autodidact. Freelance English-Spanish translator and style proofreader..." 2) Mark each text block in the XML E.g.: I mark the above mentioned text block with an id, "profile" 3) Place a link in the page's HTML to the corresponding text block in mywebsite.xml, so it calls the text when the page is loaded E.g.: where the original text content of the "my profile" page was, I place a link to the corresponding text block marked "profile", so the text is called and viewable when the page is loaded That way I'd manage text content more easily. For example, the text of my menu entries is the same in all pages. I want that when I need to modify the text of a menu entry (e.g. replacing "graphic design" by "visual art"), I can just do it in the XML file and that's all, instead of making the change in every web page. Also having all of my website's text content stored in a single file makes it easier to locate and modify strings. How can this be done? I have no clue. Thanks in advance. God bless you. I'm developing a small client / server application in HTML. It has a webserver which is hosting a page (login.html) the pages takes in login and password and lets you login into a console. The client just need a network access to reach the webserver. However, for audits / database i want to save the text entered into the username/password field into a file on my server machine. What i need to do? Is there a client side script that i need to write to do this or i could do it with HTML alone. Thank you I wish to change the html of my TD element by specifying a filename. The file I specify will include the new html I want the TD element to have. I do not know how to use innerHTML to do this. Thank you for any help you can provide. hi this is reddy i want to update the text box values in my website by using any note pad r some other with out updating the whole code in the server every time to change the value help me |