HTML - Dynamic Text/label From Notepad?
Good day guy's.
Im very new to html programming and scripting, but I was wondering if it would be possabe to insurt a dynamic label field in you body where to content must be fetch from a notepad or wordpad ( /docs/someting.txt ) Thanks Similar TutorialsIs there a way to dynamically create text in html/jsp based on a value the user chooses? I have the following code in a jsp and based on the value of the returntype that the user chooses. The value SSN: has to change to SSN/FEIN: depending on what is choosen in the return type drop down (note, the change has to be in the text and not the inputType field). Is there an easy way to do this? Here is the form code... <form action="CompareData" method="post"> <center> <table cellspacing="5" border="0"> <col width=450> <tr> <td align = "LEFT" colspan=2><b>Please enter the parameters below to retrieve the information:</b></td> </tr> </table> </center> <center> <table cellspacing="5" border="0"> <col width=200> <col width=100> <tr> <td align = "LEFT"><b>SSN:</b></td> <td><input type="text" name = "SSN" value="000000000" ></td> </tr> <tr> <td align = "LEFT"><b>End Year:</b></td> <td><input type="text" name = "ENDYEAR" value="2007" ></td> </tr> <tr> <td align = "LEFT"><b>Num of Years:</b></td> <td><input type="text" name = "NUMYEARS" value="2" ></td> </tr> <tr> <td align = "LEFT"><b>Return Type:</b></td> <td> <select name="ReturnTypeDropDown" > <option value="WI">WI</option> <option value="IRS">IRS</option> <option value="Informational">Informational</option> </select> </td> </tr> <tr> <td><input type="hidden" name="RETURNTYPE" value="" ></td> <td><input type="button" value="Retrieve" onClick="validate(this.form)"></td> </tr> </table> </center> </form> Well, I think that's what it would be considered. Anyways, I have a simple project where I'm making a website that has a drop down menu with a list of items. I also have a table which will define the items. What i want to know is how to change the text in one of the table boxes when a new item in the drop down menu is selected. This is the code i have so far... Code: <html> <head> <title> My Definitions </title> </head> <body> <script type="text/javascript"> var define= new array() define["Unicode"] = "unicoded" define["Hexadecimal"] = "hex" define["Binary"] = "bin" define["Compiler"] = "compil" define["Interpreter"] = "inter" define["Topology"] = "top" define["Server"] = "ser" define["Overflow Error"] = "of" define["Phishing"] = "phish" define["Network"] = "net" function definition(def) { } </script> Select a definition from the list: <select id="list"> <option>Unicode</option> <option>Hexadecimal</option> <option>Binary</option> </select> <br> <br> <table border="1" width="100" cellpadding="5"> <th>Definition:</th> <th>Pictu </th> <tr><td>two</td> <td>one</td></tr> </table> </body> </html> any help would be greatly appreciated. Right - I am looking for way to do the following... I want to have a 3 URLs on a page > something like Code: <a href="http://www.somesitesomewhere.com" alt="no 1">Click here for option 1</a> <a href="http://www.somesitesomewhere.com" alt="no 2">Click here for option 2</a> <a href="http://www.somesitesomewhere.com" alt="no 3">Click here for option 3</a> which will take the viewer to another website landing page which will have a body of text that will contain an area that will be changed depending on which of the above links has been clicked... i.e.: Code: <p>this is copy for the body of the landing page. You clicked option {dynamic_text}, nice choice.</p> So the "alt" state appears dynamically - I know that the link will have the dynamic text elsewhere in the anchor tag (not in the 'alt' tag) - but am not sure where/how to implement. Can anyone help? Cheers YB is it a good editor to work with?? Hello Everyone, Can anyone help me with my html problem?? I have a form showing one chunk record at one time. This record is from a table. I want this form to bold certain text from that chunk of record. Since the record is not hardcoded/type inside the form. I want the bold funtion to be dynamic. Let say, Record one: I have an apple. I want to eat it now. Record two: I have a strawberry. I dun want to eat it now. First case, I want to bold the whole first line,with the word 'have' in it.. But this line can be anywhere in the page.. It doesn't always have specific position as long as the sentence have the word 'have' in it. Second case, I want the script to bold the word 'want' every time it finds it.. And only that word! Can anybody help me on how to do this.. I really dunno how to? Hello. I'm new here so I'd like to apologise for two things: 1. The possibility that I've posted in the wrong forum section - the problem contains what I believe to be an HTML issue primarily, as opposed to CSS; although I'm probably wrong due to my inexperience with web design. 2. That I haven't worded my title properly or that this problem has already been resolved. I've tried searching numerous forums but I'm having difficulty expressing myself articulately and consequently, I can't find anyone with a similar problem. Here's my problem: I'm building a website which contains the owner's latest tweet on the page, in this instance it's at the top. I'd like this text: 'Latest tweet:' to appear on the left-hand side of the actual tweet and for both items to be aligned to the centre of the X axis. Typically, all the options I've tried have resulted in 'Latest tweet:' appearing above the tweet or being occluded by the tweet. A simple solution would be to create a div containing 'Latest tweet:' and position it next to the div containing the tweet. The problem here is that the 'Latest tweet:' text will remain stationary, whilst the tweet will grow or shrink dynamically, depending upon the number of characters in the tweet. This will usually leave an unsightly gap between 'Latest tweet:' and the tweet. Is there any way I can get 'Latest tweet:' to appear right at the start of the tweet, regardless of its size? Here is a crude illustration of the gap:- Latest tweet:____________"This is a relatively small tweet." Here is what I'd like to happen:- Latest tweet: "This is a relatively small tweet." The relevant (I think) code is pasted below. I'd really appreciate the help of anyone who's reading this - even if you're not sure yourself! If you need more information or code then please let me know. I don't have a working link yet but I could upload it if necessary. Best wishes, thereisnoteapot. PS HTML <div id="twitter_div" style="position: relative; top: -35px; height: 35px; font: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; font-style: italic; font-size: 14px; display:inline;"> Latest tweet: <p id="twitter_update_list"> </p> </div> CSS #twitter_update_list { list-style-type: none; } #twitter_update_list span a { display: inline; color: #fff; } Hi, I want to create a header (<h1>,<h2>,...) like on the picture (see attachment) with html and css. It is possible to create sth like that without using pictures? Thanks anyone know how to merge this nifty little free tool into a webpage? So one could type and it saves to a notepad file? this would be on a closed network. might (most likely) have some paypal payment for a working project ktnx notepad-plus-plus.org I am trying to make a page that has a DTML (dynamic expanding links), and a right hand column - Below is my code. I want to make the right hand colunm (most common questions grey area) a fixed height. It seems to be the length of the page as if all the menus are clicked on and opened even if they are closed. How can I make it a fixed height regardless of how many links (dhtml) are opned or not so that most common questions are no longer than say 500 pixles. Any suggestions would be handy. I can send code / page as its to long to paste here! Thanks, Ryan My server switch me from Windows platform to Linux. now when I pull down one of my pages I have lost all my spacing formats. Is there anything I can do to stop this? Is Linux causing this? It looks like this now: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>No Magic Neon Street Magic LED DOT Approval Page</TITLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><META NAME="Keywords" content="DOT, DOT approval, led clusters, genesis, spyder, can-am spyder "><META NAME="Description" CONTENT="Street Magic Leds. Motorcycle Lighting Innovators, Not Imitators LED lights"><META NAME="Author" CONTENT="streetmagicleds@nycap.rr.com"><META NAME="ROBOTS" CONTENT="index,follow"></head><BODY BGCOLOR="#000000" TEXT="#000000" LINK="orange" VLINK="yellow" ALINK="#FF0000"><!--Take first section and duplicate on each page-change links--><div align=center><IMG SRC="logo sm-nmn 8-07.jpg" WIDTH=855 BORDER=0><p><table border=0 width=900 height=20 bordercolor="black" cellspacing=o cellpadding=0 bgcolor="black" > <tr><td><div align=center><A href="http://www.nomagicneon.com"><font color=#ffff99>Home</A> *<A href="http://www.nomagicneon.com/contact.html"><font color=#ffff99>Contact Info.</A Use to look like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>No Magic Neon Street Magic LED DOT Approval Page</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META NAME="Keywords" content="DOT, DOT approval, led clusters, genesis, spyder, can-am spyder "> <META NAME="Description" CONTENT="Street Magic Leds. Motorcycle Lighting Innovators, Not Imitators LED lights"> <META NAME="Author" CONTENT="streetmagicleds@nycap.rr.com"> <META NAME="ROBOTS" CONTENT="index,follow"> </head> <BODY BGCOLOR="#000000" TEXT="#000000" LINK="orange" VLINK="yellow" ALINK="#FF0000"> Thanks in advance if you have any ideas removed the message as help is no longer available I'm looking for a HTML/CSS/JavaScript etc. (all of those coding/scripting things that you use notepad for) editor that's a bit more advanced than notepad. It's not too important that it's free, as long as it isn't like.. USD $1000 I'm not looking for a WYSIWYG I've been writing all of my HTML in notepad since I started, and Id really like to keep it that way, but the browser seems to treat line breaks (in notepad) between elements as a space character in certain instances. For example, say I have HTML Code: <img1><img2> <img3> <img4> in the browser, that will render every image on the same line, but with a physical white space between img2, img3, and img 4 example: [1][2] [3] [4] in the past ive just sucked it up and put everything on the same line, but in larger projects that gets messy very quickly... any input that i'snt "use something better" is appreciated, thanks. I am trying to slowly put together a very simple content management site for a footy club i run, the data is stored in a mysql database and lined to the web page using a dynamic table from within dreamweaver, it displays all the info except one thing it appears in one huge paragraph, take a look at my page Link is at: http://itdesignz.co.uk/Clients/RTFC/cms/home.php The Data in the mysql has the spaces and enters breaks in it, but these are not reflected in my page. I am really new to dreamweaver and am not sure how to overcome this problem, Please help Andy I have a website that I'm using as a test project of sorts. The link is he http://www.RyanzLair.com/OnTheFarm/index.html What I'm wanting to do is, when the user clicks on one of the thumbnails, for there to be a dynamic text box above the image in the main window that will also change depending on the picture. Basically I'm wanting to caption my photos. Right now I'm using a php script to load the pictures into the main window (so I don't have to create a separate page for each image). I'm new to all of this, so I don't know if you need me to copy and paste any code or what not, but I can get whatever you require to help out. Thanks! Ok I'm still really new to HTML with no bad habits & would like to use a program that is really easy to use & geared toward function-ability. I've been using notepad for my HTML I would prefer to steer away from DreamWeaver as I dont plan on using a WYSIWYG So what are my other options for great programs to write HTML in? Thanks Hi, I've spend today (9am yesterday till 3am... now) trying to learn my way through HTML from pretty much scratch! I've been helping out at a Drum Shop who've just got a website made, and they've been offered the chance to do a free e-mail campaign to local students. The shop has been open 40 years, and both the staff have been there since it opened, so entering the 20th century with a website is a major achievement! Anyway, I've been trying to compose the e-mail in html, and I think I've got something that'll work... but as I'm VERY new to all this I'm worried about whether it'll work in different browsers etc and, well... at all really! I've attached the txt of the HTML so far.... I've no editor etc, so been using notepad... sorry if it's awkward to read etc. I'm really just hoping someone will take pity on my poor fried brain and have a look at the page / txt and maybe let me know if there's something wrong with it and, if you're feeling generous, offer some tips and advice on changes... unfortunately, my first ever HTML e-mail will be going to 20,000 people, so I'm rather nervous about getting it right! Thanks in advance and eh, thanks for the forum... it's been really rather useful whenever I've been stuck / made a mistake! Steve PS: The images I'm using at the moment aren't quite right, can't fix them till I get back to work tomorrow morning! For some reason when I right click to edit an HTML document, it uses Word instead of Notepad. I have no idea why it is doing this. It is like this in both SmartFTP and Windows Explorer. How do I change this? Thank you! Has anyone else had any problems when using notepad to edit code created with an WYSIWYG editor such as Frontpage or Dreamweaver? In particular, making links, that are correctly coded, work? Something even odder, is that this problem only occurs on the index.html page. If I rename that page the links work just fine. I have asked this same question in other forums and no one seems to have a clue. Has anyone else encountered this or have any thoughts? i have added dropdown list and associated label with it and i want to know the value for label and the value selected in dropdown list. How can I access both values inside javascript? can anybody help? |