Making a DOCTYPE-less HTML page W3C compliant.
How do i take a HTML site that currently has no doctype declaration and make it W3C compliant? ...
How do i take a HTML site that currently has no doctype declaration and make it W3C compliant? ...
I've never had a reason to put a label element inside of a legend element (never really thought about it or seen it done). But with the design I'm implementing, it's tempting to do so. Here's what I'm tempted to do: <fieldset> <legend><label for="formInfo">I would like information on</label></legend> <select id="formInfo"> <option val...
I need to convert a bundle of static HTML documents into a single PDF file programmatically on the server side on a Java/J2EE platform using a batch process preferably. The pdf files would be distributed to site users for offline browsing of the web pages. The major points of the requirements are: 1. The banner at the top should not be...
I have a picture that I need to resize to a specific dimension and then move one of the corner to a place higher than before so the image is not rectangular anymore but some kind of polygon. Is there a library that could help me with this kind of image manipulation or does someone knows the name of this operation? This is for a .NET app...
We have a POST to a PL/SQL database procedure that (a) does some database operations based on the POST parameters and (b) redirects the user to a page showing the results. The problem is, when the user does a browser "refresh" of the results page, that still has the original request, so it calls the database procedure and resends the pa...
Is there a good way to remove HTML from a Java string? A simple regex like replaceAll("\\<.*?>","") will work, but things like & wont be converted correctly and non-HTML between the two angle brackets will be removed (ie the .*? in the regex will disappear). ...
I have a backup server that automatically backs up my live site, both files and database. On the live site, the text looks fine, but when you view the mirrored version of it, it displays '?' within some of the text. This text is stored within the news database table. Here is a screen shot of it being on the live server and of it on the...
I'm wanting to add a class to the body tag without waiting for the DOM to load, but I'm wanting to know if the following approach would be valid. I'm more concerned with validity than whether the browsers support it for now. <body> $("body").addClass("active"); ... </body> Thanks, Steve ...
My HTML is as follows: <ul id="nav"> <li><a href="./">Home</a></li> <li><a href="/About">About</a></li> <li><a href="/Contact">Contact</a></li> </ul> And my css: #nav { display: inline; } However the whitespace between the li's shows up. I can remove the whitespace by collapsing them like so: <ul id="nav"> <li>...
How do I alternate HTML table row colors using JSP? My CSS looks something like: tr.odd {background-color: #EEDDEE} tr.even {background-color: #EEEEDD} I want to use <c:forEach> to iterate over a collection. <c:forEach items="${element}" var="myCollection"> <tr> <td><c:out value="${element.field}"/></td> ... </tr> </c:f...
I am currently validating a client's HTML Source and I am getting a lot of validation errors for images and input files which do not have the Omittag. I would do it manually but this client literally has thousands of files, with a lot of instances where the is not . This client has validated some img tags (for whatever reason). Just w...
I required to write a small web application that allow customer to select predefined layout template in html and be able to modify it. The application need to allow customer to add block text to pre defined area and images. The block texts need to be able to reorder based on customer need. eg. move up , move down or move to sidebar. THe ...
I have an embedded flash that is transparent so it looks like part of the background. I achieved that by setting wmode to transparent. My problem is that the area underneath the flash becomes inaccessible, even though the flash is transparent. Therefore I cannot click on any links or buttons that are under the flash object. How do I ma...
Recently I've been seeing a lot of this: <a href='http://widget-site-example.com/example.html'> <img src='http://widget-site-example.com/ross.jpg' alt='Ross's Widget' /> </a> Is it even valid to use single quotes in HTML? As I've highlighted above it's also problematic because you have to escape apostrophes. ...
Does the HTML "select" element have an on select event? what exactly is the name of the event? ...
I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code: <img src="image.py?text=xxxxxxxxxxxxxx"> The problem is that I expect in the future the "text" field will get very long and the URL will become too large. From Googling around there doesn't ...
In a .net web application I talk to a 3rd party CMS api which gives back html. I need to convert it to well formed xml, so I use an .NET wrapper around HTML tidy. This generates a nice DOM, but things go wrong when characters such as are used. I need those to be converted to their code format like   in order for an XmlDocume...
I have a <button> with an accesskey assgined to it. The accesskey works fine as long as the button is visible, but when I set display: none or visibility: hidden, the accesskey no longer works. Also tried without success: Use a different element type: a, input (various types, even typeless). Assign the accesskey to a label that wraps ...
I am writing a web application that will run in kiosk mode on a touch screen. I am currently only targeting it for running on Firefox 3. A few of the use cases I have need to visit external sites. I wish to do so with an embedded browser, which I'm tackling with the help of an <iframe>. I need back/forward buttons for the embedded home p...
I have YAML data that looks sort of like this, but ~150k of it: --- all: foo: 1025 bar: baz: 37628 quux: a: 179 b: 7 ...or the same thing in JSON: {"all":{"bar":{"baz":"37628","quux":{"a":"179","b":"7"}},"foo":"1025"}} I want to present this content in an expandable JavaScripty HTML tree view (examples: 1, 2...