html

What sort of markup do you recommend for a table of contents?

I need to create a large table of contents for an HTML book but I can't decide what's the best solution for its markup. I have two options in mind: definitions lists or ordered lists. Would you consider this a personal style decision? And how about semantics? I like my list to be numbered but I have problems using "ol" with nestes list...

Live Audio Streaming to a browser methods, must be very simple.

I'm recording a mono audio stream using a PIC at 8-bit 8Khz and streaming it raw to another microprocessor that houses a web server. I'm currently buffering the data and turning it into a wav file that gets played in the browser. What I'd like to be able to do is continuously stream the audio as it's being recorded without putting a lo...

Internet Explorer cannot view my webpage the way it is supposed to.... Please help!

When I load my page in Safari and Firefox, even my ipod touch which is a variant of Safari it loads perfect. When I use any version 6, 7, or 8 of internet explorer problems arise. Basically, in IE 6 or 7 the banner ads look messed up, and the amazon code which is books go off the screen. In IE 8 everything is fine except the books fro...

asp:dropdownlist width: How to make the control narrower than the dropdown list

I have a web form with a dropdown list <asp:dropdownlist>, but for the sake of formatting I want the actual control (before you open the dropdown list) to be relatively narrow. When the user opens the contents of the dropdown, I want the actual list to appear wider than the control. Something like this: How can you achieve this funct...

Customize Python unittest report with HTML or Textile

Hey, I'm using unittest for testing my python code. I'm seeking a way that I can do the following: Customize the report of test run. Export it as HTML or Textile document. Any ideas? ...

Button to Copy a Text Box

I need a simple script that gives me a button that when clicked will copy the contents of a text input box to the clipboard. Or it could be a script that when you click on the text input box, automatically copies the contents to the clipboard and displays a "Copy" message next to the text input box. I've seen them all over the web, but...

jQuery Click Table Row Toggle Section

I have the following markup (which I have no control and must remain as is, however the JavaScript can be manipulated.) http://jsbin.com/uyifu3/edit What I'm trying to accomplish is that when the table row is clicked the the "Toggle Me Here" link is automatically clicked. I keep finding my self getting into a recursive loop with the...

Can I apply CSS to the elements within an iframe?

Hi folks, I often see sites using iframes containing an external site, and a top frame containing JavaScript functionality for the user. e.g. user analytics software, Digg bar, etc... Any tips for experimenting on something similar? =) Would be awesome to know ...

In css, how do I make one line only execute if it is IE6 or IE7

I have this code: #left-nav #left{ width:100px; height: 99px; float:left; border-bottom: 1px solid #344a53; margin-top:-1px; } I want to be able to only do the margin-top:-1px if it is not IE7 or IE8. Also does anyone know this problem with cross browser compatibility? I have to divs side by side in another div, but for so...

Change css locally per domain.

I want to add css to pages with a certain url in much the same way that greasemonkey adds javascript. I guess I could inject some css with a script but that isn't as clean. Are there any browser plugins that let me do this? Doesn't necessarily need to be a Firefox one. ...

update textarea value, but keep cursor position

I have an html textarea that will be updated periodically via javascript. when I do this: $("#textarea").val(new_val); The cursor moves to the end of the text. I would like to update the text without changing the cursor position. Also, if the user has a range of text selected, the highlight should be preserved. ...

Retrieving a file name to attach to an email with SwiftMailer and PHP

I am able to attach a file using SwiftMailer with its name hardcoded. But what if the file is uploaded by a user from an HTML form's 'file input type control and has to be sent with an email by a PHP script? How do I specify the file name in SwiftMailer? Thank you! ...

Can a ::before selector be used with a <textarea>?

I'm experimenting with some styles on <textarea>s and I tried doing some stuff with ::before and ::after selectors and I couldn't to anything to get them to work. So the question is: is this possible? I know the CSS surrounding forms is arcane beyond mention but it seems like this should work. ...

wrapper width:100%; works fine when browser is maximized but when not maximized it cuts off

Basically I'm creating this website and I have the wrapper set to 100% width and it works fine when the browser is maximized but upon not having it maximized and you scroll to the right the content cuts off at the end of the content container and doesnt stretch the full way?? I've looked around everywhere for a solution to this before as...

img:hover not working in ie

css: .myim { width:50; height:50; } .mydiv { float:right; position:absolute; -index:2; } .myim:hover { width:50; height:50; position:absolute; z-index:2; filter:alpha(opacity=95); filter:alpha(opacity=95) !important; opacity: 0.98 !important; -moz-opacity:11; } html: <div clas...

Setting overflow scroll without bottom scroll

How to set overflow scroll without the bottom scroll. I only need to show the side scroll for the wrapper of the content. regards - dj ...

How to tell Nokogiri when parsing a document not to convert it a different encoding (in my case not to convert &paund; to to anything else)

Question: how to tell Nokogiri when parsing a document not to convert it a different encoding (in my case not to convert to to anything else) I have a file with the following contents: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <span>&pound;</span> </body> </html> I p...

red free support for images

I am working on a web application for a opthology research firm. They work on cornea images and use red free light to identify lesions (artries and nerve fibers) easily. I have implemented the addAmbient() method provided by microsoft for this purpose and it is working fine. <img id="eyepic" src="GetImage.jsp" height="1291" width="1944" ...

Is there a way to tell browsers to ignore cache from before a certain date?

I have an updated stylesheet that I cannot rename or insert any ?nocahce=blah sort of thing - but browsers are still using a cached version. Can I put a meta tag in (or something like that) that effectively cancels any cache from a certain date? ...

Getting height and width of body or window of web page

Hi Depending on which mode of IE8 i'm in (quirks or standard) i get different values for the height and width. I've tried standard javascript and jquery but both return different results. In Quirks $('body').width = 1239 $('body').height = 184 document.body.clientWidth = 1231 document.body.clientHeight = 176 In stand...