HTML - Converting A Physical String To A Integer
Hi all,
I am having a problem converting a physical string to a integer. I have a dropdown list of a few items but are numbers though in chracters. I ned to output the value and the text of the selected item. As I cannot use a if-else statement, any help would be great. HTML Code: <select id="std_num" onchange="displayValue()"> <option value="Two">Two</option> <option value="Zero">Zero</option> <option value="Five">Five</option> <option value="Three">Three</option> <option value="Two">Two</option> <option value="Zero">Zero</option> </select> HTML Code: function displayValue() { alert(document.getElementById('std_num').value); var c = (document.getElementById('std_num').value); } Similar TutorialsHello everyone, Hopefully this is simple: I have 2 definitions - and I don't understand what they are trying to say exactly. Definition 1: Logical Element: An element that describes the nature of the enclosed content (but not necessarily how that content should appear in the browser) Definition 2: Physical Element: An element that describes how content should appear, but doesn't indicate the nature of the content What is meant by "the nature of the enclosed content" ... and could someone please break these down for the beginner? Thank you. hello experts , i have a small problem i wrote these two inputs as hidden "total" is a integer value , set previously & "username" is a string , set previously . but when i am passing it and retrieving it i am getting the values as "total" & "username" , not 15 and 'kane' which i have set before. in short the values are not being passed to the form. Code: <INPUT TYPE='hidden' NAME='total' VALUE='total'>"); <INPUT TYPE='hidden' NAME='username' VALUE='username'> kane How do I go about converting an .htm file into a .rar? Or can you do that? hey, i was wondering if anyone know how to convert: sample.mp3 to <p><a href="sample.mp3">sample</a> I have embedded yahoo mp3 player into my website...but it requires that each mp3 be linked in this way. Since I have multiple songs, I think it would be much easier if I were to paste a list of the song names to a textedit file, then somehow make them say <p><a href="sample.mp3">sample</a> thanks for reading my post I'm converting my webpages from a .html file to a .shtml file because I'm using SSI in the page. Now, can I just change the file type or do I have to do other stuff to the file? Thanks How to change this table Code: <SELECT id=SelectPeriod style="FONT-SIZE: 11px; WIDTH: 250px; FONT-FAMILY: Tahoma;background:#cccccc;" onfocus="SetVisibility(Find('TrPrice'), 0);" name=SelectPeriod> <OPTION value="" selected dOption="">Избери</OPTION> <OPTION value="1" dOption="100">Да</OPTION> <OPTION value="2" dOption="4">Не</OPTION> </SELECT> to radio buttons Hello, wondering if someone can help me on the following: I am trying to convert a list of links over 350 collected over the years into html. The data is in text in the following format, <link title> "/" <actual http link> "/" <description> I could type each link into html but there is got to be a way to do it automatically.. since it is already formated in a text file with a clearly defined delimiter. Any ideas?? Thanks in advance for any ideas. Hello everyone, Nice to join a forum for the first time and hopefully this will add extra help when I'm working on my development projects. I have a web site of my own using HTML transitional, but am planning to go from HTML to XHTML strict in the near future. Since the site holds over 3500 pages, it would not be feasible to upgrade every single page. Is there a free program or a web service that can do that job? Im in the midst of converting my new CMS (phpnuke) into a css div layout rather than a table layout because the site has a rather slow loading time. Well, I got the header done nice, and then the footer, but I don't understand how the body structure works... I'm having a bit of a hard time trying to figure out how to get the body flowing nicely. to top it off, I want to move everything over to the left (all the blocks) and I did so in the admin panel, however some blocks still show up on the right (ie- rating blocks and such) and these blocks dont show up in my admin panel. Just a whole lot of questions and could use extensive help from anyone with cms experience. Thank you! http://www.pzproductions.com/home Currently my website uses frames and no css. I need to update it, but I'm in a huge time crunch!!! (And don't know css and only know very very basic HTML) I need my website to be functional (not in limbo) by next weekend, so it either has to stay how it is now (frames & older HTML) or be totally done by then. Is there anywhere that I can get help to do this automatically instead of waiting until later when I have way more time to learn it myself (that changes your code easily/automatically), or super awesome people who love HTML and will do it for me? It's a pretty simple/basic website and I would be SO so SO appreciative. Hi there, I have a form where people submit information to a site through a form; some people reference outside websites, but the links for them aren't clickable (no <a href... tag), just text so people would have to copy and paste it to use it. Is it possible to somehow check a submission for links and then add in the <a> tags if there are any? (without having to manually do it each time). Thanks for any help in advance! Gentlemen: I am new to both Html & Xhtml. Can anyone recommend a freeware editor for Xhtml & a conversion tool for Html to Xhtml? Does anyone know of a utility (Mac) or AppleScript (or Perl - or anything!) that will allow me to extract/convert just the data (that is, the content between TDs, what's in the cells) in an HTML table - and ideally export it into CSV, TSV, rtf or plain text etc? Thanks! Hello everybody I'm struggling with something, and was hoping somebody could point me in the right direction. I have a long list that I would prefer as a dropdown selection, but don't know how to do it. If you go to: http://pcbytes-inter.net/domain-needed Type in an imaginary domain that you will manage the DNS settings for then press continue. You will see the long list of hosting packages. I would like this to be 2 dropdown boxes, eg choose package type and choose billing cycle. It still needs to submit the same information it currently does though. It does not need to be dynamic, as every package will have monthly, quarterly and yearly billing cycles. The code for the current page is below, does anybody have any ideas? Many thanks Lee Code: <%= user_menu %> <div id='t-package-chooser'> <h2>Hosting Packages</h2> <form accept-charset='utf-8' method='post' action='basket'> <% if no_upsell? %><input type='hidden' name='no-upsell' value='1'/><% end %> <h3>Select a Domain Name</h3> <p>This will be the name of your web site.</p> <p>http://www.<select name='domain-'> <% domains.each do |domain| %> <option value="<%= domain.html %>"><%= domain.html %></option> <% end %> </select></p> <p>If the domain name you would like to use is not listed above, please <a href='domain-needed'>click here to search for new domains or transfer existing ones</a>.</p> <h3>Select a Web Hosting Package</h3> <p>Please pick the kind of hosting package you'd like to order.</p> <% i = 0 %> <% hosting_products.each do | product | %> <h4><%= product.name.html %></h4> <p><%= product.description %></p> <input type='hidden' name='base_renewal_period-<%= i %>' value="<%= product.base_renewal_period %>" /> <input type='hidden' name='quoted_unit_price-<%= i %>' value="<%= billing.price(product.unit_price) %>" /> <p><input type='radio' name='add-product' value='<%= product.specific_type.html %>:<%= i %>:base_renewal_period,quoted_unit_price,domain' /><%= billing.currency_symbol.html %><%= billing.price(product.unit_price, :use_tax_prefs) %> <% if product.base_renewal_period != 'never' %> every <%= product.unit_period.to_s_short.html %> <% end %> <% if product.setup_fee != 0 %> plus a one off fee of <%= billing.currency_symbol.html %><%= sprintf("%.2f", if billing.include_tax? then billing.price(product.setup_fee) else product.setup_fee end) %> <% end %> <% if product.has_free_products? %> <br /> includes free domains <% product.free_products_list.each do | free_product | %> <%= free_product["free_name"] %> <% end %> <% end %> * </p> <% i = i + 1 %> <% end %> <p><input type='submit' value='Add to Basket'/></p> </form> <% unless basket.nil? or basket.empty? or no_upsell? %> <p><a href='basket?add-no-product=package'>No thank you, please continue with my order ....</a></p> <% end %> <% if not billing.tax_applies? %> <% elsif billing.include_tax? %> <p>* Includes <%= billing.tax_name %></p> <% else %> <p>* Excluding <%= billing.tax_name %></p> <% end %> </div> Hi Guys, Not to sure if this is in the correct place to ask such a question, but iv recently down loaded the new version of Visual Studios, and all my projects were on my old laptop which recently died, before it did i managed to copy across all my projects on to a USB pen, My question is how do i transfer these projects to the newer version as they were built in visual studio 2008 and when i try and open one of them it gives me the option to convert which ideally is what i want to do, But it wont allow me to do so? Would it be worth me just installing the version they were orginally on? this is something i dont want to do because i prefer the lapout of the newer version but if it comes to it then i will. Hope some one can help me. Thanks in advance. I am combining 2 sets of code for my new website. I am combining my nold stuff with a piece of my new website. One piece is written in xhtml doctype traditional and the other is in xhtml strict. naturally I either lose the old part or the new parts. Is there a way to easily convert the traditional to strict, so the whole darn thing works right? I'm in charge of doing the coding for a site that's been designed by a graphic designer with no knowledge of code. I like his designs, and the client wants me to make the site look exactly like them. They're .psd files representing each page. He sent me almost all of the images, but not the background and not certain key decorations (the guitar pics). I told him I needed the background, but his hard drive died (without being backed up) before he could send it to me. He doesn't seem to remember what font he used either. In light of all that, and the fact that the client wanted to get a basic version of the site up asap, I just converted the PSD's to JPEG's, uploaded them as whole pages, and used div's and image maps to add links and additional content. But that is obviously not a long-term solution. In fact, it's causing browser compatibility issues right now. And it's not accessible . . . etc. So I need to replicate these page design images using HTML or XHTML, and CSS. I can probably find a similar background and font to work with, but I just don't know where to begin. I haven't worked with CSS in years, but it looks like I'd probably need to use it. I'm not asking anyone to do my job for me. I'm just wondering how you would approach this task. Does anyone have time to look at the images and point me in the right direction? Here's the embarrassingly incomplete site: http://www.musicisrevolution.com The navigation works with Safari and Firefox. I'm also attaching one of the images so that it'll be clear what I'm talking about. Suppose i have to files named 'main.html' and 'go.html' in same directory. and the url of - main.html = http://...../main.html?id=123 Now i want to read this string 123 and place it in an iframe inside main.html. as like- Code: <html> <body> <iframe style="vertical-align: middle;" height="30%" SRC="go.html#id" scrolling="auto" width="100%" frameborder="0"></iframe> </body> </html> is there any way i could get that string in SRC="go.html#id n replace id with 123. i thought SRC="go.html#<? print($id) ?>" may work.but it didnt. my host doesnt support url_fopen and curl..thats the problem..so php echo didnt work.. plz show a way guyz...i thing its nothing difficult for u . p/s:what do u think about javascript..? Hello, I've been trying to figure out how to separate part of string in html. I need to get one part from url (like this: www.youtube.com/watch?=xxxxxxxxxxx). How could I separate 11 characters after ?= (meaning the x part). Thanks already in advance! |