HTML - I Don't Want Rich Text!
My project is to construct a web site, step by step, with a view to teaching myself HTML, javascript, PHP, AJAX and who knows what next.
The site includes its own content manager. That is: I edit HTML on a web page, send it to a database, then retrieve it to build the pages of the site. Including the page on which I do the editing. It's gone very well so far. I can store large chunks of raw HTML, with all the markup, retrieve it and stick it into the innerHTML of a textarea. Many times over. But I knew it couldn't last. If the raw HTML includes a textarea definition then it edits and stores OK, but on retrieval it merges in with the containing page, losing a lot of my work by trying to render it below the textarea. I can find all sorts of free editors to embed in my page but they can all do too much! I don't want to embolden text, for example, because the text itself has to include the <b> markup. I don't think I want an iframe, because the initial contents have to come from the database rather than a pre-existing file, but at this stage of learning I'd like to do it using straight HTML and javascript. I want to define an area of my page which can be loaded with raw HTML from the database, allow editing and storing back to the database, time and again, and I don't want rich text. Has anyone got any ideas? Ed Similar Tutorialshi, i am developing a chat application. i want my chat text area shows bold text,text in different colors. basically i want my text area html tag compatible. how could i do so?. now if give bold text <b>here is text</b> the text area is also showing <b> tags. not the bold text. any help? Thanks R Hi and thanks for looking in, I posted last week about a problem that I had concerning firefox not reading my html as well as explorer, and received some great advice from this forum on the validator page which showed a staggering number of errors. WHen I checked out those errors, almost alll of them were related to the built in converter in Microsoft Word which I used to create the page. Does anyone know of a program or feature of some other program which will convert rich text documents in to html besides Word? Thanks in advance. htmldad i used javascript rich text editor in my code but when i reset form all the fields get reset except text area [javascript rich text editor]. even when i get value from javascript code it doesnt return value............ here is the code //text area <textarea cols="80" rows="10" name="news_description" class="widgEditor nothing">textarea> //reset code function resetTextArea() { document.form_addnews.txt_desc.value = ""; } //get value of text area...it does not work, odnt retyrn any value var cdescription = document.editnews.news_description.value.length; if(cdescription < 0) { alert(document.editnews.news_description.value); alert("Please enter Description"); document.editnews.news_description.focus(); return false; } 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 Hi All, I am new to this forum and is expecting an answer for this question. I have implemented a facebook type search to the database which displays the familiar text saved in the database when I type some text in the database. My issue is after I have used the search box for a couple of time the text box starts displaying a similar dropdown from its history which hides my database search. Does anyone know how to disable it using html or css. See the attached Image if my question is not clear. http://www.htmlforums.com/attachment...1&d=1306715905 here is the (ineffective) code currently: <img style="float: left; width: 169px; height: 73px;" src="img/logo1.png" alt="" /> <h1 style="text-align: center;">random text</h1> the image shifts the left margin such that the text is centered as though the page width was 169px less than it really is. i'm not debating the code itself; the code above behaves as its meant to. aka no surprises. i just cant figure out the appropriate code to center the text across the entire real width of the page as though there was no image. i've tried div tags & all the things google hunting advised. no luck. other than finding this forum, which seems like it'll be a boon! thanx in advance for advise/comments/feedback/help. 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 lot of text files(2-400) all have quite alot of text inside them so is there some software that can help me convert it all into html pages?? somthing that i am doing right now is: copied all of my text files pasted them into other location and editing each file and giving extention html/htm. now can u tell somthing better?? all the files will open in same frame(obviously one at a time), all have styling n everything same. Hi Can any one help. I have this form the user is ask to input a message and a number. I want to be able to add a line of text to the message, which the user can not delete. But is sent joined to the message. ie User input Message = "Hi Just would like to share this site with you" with added text: Message "Hi Just would like to share this site with you" + "mydomain.com" Can anyone help? =========================================== Here is my form so far <script language="javascript" type="text/javascript"> function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else { limitCount.value = limitNum - limitField.value.length; } } </script> <html> <body> <form action="stext.php" method="POST" name="number" id="number" style="width: 384; height: 372; "> <input name="number" type="text" id="number" style="position: absolute; left: 123; top: 287; color: #FFFFFF; width: 154px; border: 1px solid #ACC61B; background-color: #000000" size="20" tabindex="2"><p style="margin-top: 0; margin-bottom: 0"> <textarea name="message" cols="17" rows="1" id="message" onKeyDown="limitText(message,countdown,140);" onKeyUp="limitText(message,countdown,140);" style="position: absolute; left: 120; top: 105; width: 162px; height: 154px; color: #FFFFFF; font-family: Agency FB; font-size: 14pt; border: 1px solid #ACC61B; background-color: #000000" tabindex="1"></textarea> <br> </td> <input name="Submit" type="submit" id="Submit" value="!" style="position: absolute; left: 121; top: 329; color: #D95503; width: 157px; height: 23px; border: 1px solid #D95503; background-color: #D95503" tabindex="3"></p></form> <p style="margin-top: 0; margin-bottom: 0"><font size="4" face="Agency FB">Maximum characters: 140. You have <input readonly type="text" name="countdown" size="3" value="140"> characters left.</font> </font></p> <p style="margin-top: 0; margin-bottom: 0">nmgnm,</p> </body> Hi, I hope I'm posting in the right area as this is my first thread. The problem I'm facing is I have 7 links in a row | Link 1 | Link 2 | Link 3 | Link 4 | Link 5 | Link 6 | Link 7 | and below those links I have nothing. What I want is for Text to appear on rollover on Link 1 and stay there until Link 2 or another link is hovered over. Example: Mouse hovers on Link 1 - called Free Home Survey Text appears below row of links about Free Home Surveys that the company does Mouse hovers on Link 3 - called Personalisation Text appears below the row of links about Personalisation etc Any help would be greatly appreciated. Thanks in advance hi Everyone, I have a html form in which i have a text area.I enter some thing in the text area and when i again request for the same html page i want to now display the html page with the changes i made last in the texta area. Can anyone help me out with this doubt. Thanks in advance Hi, this is appleguy.......6142! I was wondering how to make a text box display something somewhere else for example (This does not work)---- ------------------------------------------------------------------ [page1.html] (Pretend this is a text box)>>> [Text Text Text...] [page2.html] -This is the text displayed in the text box->>>Text Text Text... HOW DO I DO THAT PLEASE HELP!! I want to implement a rollover (javascript or css) that changes text when you rollover it. E.g. someone's name and when you rollover it shows their address. I've googled this and found a css rollover which changes the color of the text but is there a way to completely change the text? Any help much appreciated, thanks I have seen this many times but can not figure how to do it. Its the transparent images or text in text boxes, one example of this is http://au.movies.yahoo.com/Coming+Soon/to-cinemas/ At the top right you can see that transparent yahoo image in the text box and when you click it it disappears then comes back? can someone tell me how this works? Thanks hello friends, I want to display the text in a textbox. But I dont want the user to edit it. How can the remove this editing feature in the text box. If possible can you please give me a sample code. With this code: HTML Code: <div style=" width: 220px; float: right; "> sidebar sidebar sidebar sidebar sidebar sidebar sidebar </div> <div> main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main </div> I obtain an output like this: Code: maintextmaintextmaintext sidebarsidebar maintextmaintextmaintext sidebarsidebar maintextmaintextmaintext sidebarsidebar maintextmaintextmaintextmaintextmaintext maintextmaintextmaintextmaintextmaintext maintextmaintextmaintextmaintextmaintext But I want to make that the code of the div of the main text is BEFORE the code of the sidebar div. How can I do? Thanks in advance. I got a problem.... Im not HTML freak but i made this homepage: www.thuroeminigolf.dk The text is sad in Explorer, but works well in Opera........ I used these standard things to help me out alot of the way: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> But in stuck on the text.... The background is a picture and the text is just outside the picture, not attached to it. Anyone got any idea of how to make text be the same on every browser? I dont want to change fundemental things like redesinging the whole picture and box system.... Just some easy text thing... Hope i dont confuse you to much hi, how do i stop the text (shopshopshopshopshop....) going outside the div and just continue onto the next line? thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>title</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="robots" content="all,index,follow" /> <link rel="shortcut icon" href="favicon.ico" type="image" /> <link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" /> </head> <body> <div style='width: 100%;'> <div style='width: 900px; margin: 0 auto;' > <div id ="logo" style='height:87px; background: red; padding: 30px; background-image:url(images/head.jpg)'></div> <div id="leftmenu" style='float:left; width: 100px; background: #f8eded ; padding:10px'> item<br> item<br> item<br> item<br> item<br> item<br> item<br> item<br> item<br> </div> <div id="content" style='float:right; width:760px;'> <div id="contentcol1" style = 'float: left; width: 660px; background: #DCEFCF ; '> SHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOPSHOP SHOPSHOPSHOPSHOPSHOPSHOPSHOP </div> <div id="contentcol2" style = 'float: right; width: 100px; background: #DCEFCF ;'>basket</div> </div> <div id="content" style='float:right; width:760px;'> <div id="contentcol1" style = 'float: left; width: 660px; background: #DCEFCF ;'>SHOP</div> <div id="contentcol2" style = 'float: right; width: 100px;background: #DCEFCF ;'>INFO</div> </div> <div style='clear:both; background: green ; height: 1px; '></div> <div style='background: cyan ; padding: 5px 0 5px 30px;'>Copyright</div> </div> </div> </body> </html> ne help pleas with code for text fields am new to html I have been making a new website and have come to a point where I cannot decide to take the blue pill or the red pill. I am wondering if I should use the <p> tags on a few of my divs because if I do use <p> I will have to do some formatting to remove the extra space it creates. If I do not use the <p> tags it looks fine. Is it ok to use text without the <p> if the only thing your doing with it is adding links in a straight line? <div id="navigationmenudiv">Home | Media | Link | Link2 | Link3 <hr></div> |