xhtml

Is the 'name' attribute considered outdated for <a> anchor tags?

Visual Studio doesn't like on-page anchor tags: Validation (XHTML 1.0 Transitional): Attribute 'name' is considered outdated. A newer construct is recommended. I'm using name attributes in this way <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml...

HTML form submission with no submit button

I've got a form like this: <html> <body> <form onSubmit="alert('Just got submitted');"> <p> Hello: <input class="field" type="text"/><br/> Goodbye: <input class="field" type="text"/><br/> </p> </form> </body> </html> which in one browser submits happily on user...

Disable image from caching?

** edit it seems that when the javascript changes the image that the reflection gets an undefined src. Any thoughts on that ** I've got this problem where I'm using jquery to reflect an image. I've got this news title list and it's automatically jumping through titles. Each time it changes the image and the reflection. This works pref...

XHTML Strict Validation.

Really 2 questions. Why is it that these bits of code dont validate to XHTML 1.0 Strict. XHTML 1.0 Strict is a project requirement. Line 2 causes the problem document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. <for...

Why aren't checkboxes/radiobuttons and options resetable if they were set by PHP?

Working with XHTML 1.1 I have this login page managed in php. It contains several checkboxes, radiobuttons and a dropdownlist. There's a lot of formchecking behind it and if something doesn't check out, the page reloads and all values are filled back into their place, except for passwords. This means the <select>, <input type="radio" ...

How to make HTML underneath overlapping Flash accessible

I have a Flash header with a transparent background contained inside of a relative positioned div with a z-index of 10. The resulting effect allows my Flash movie with a transparent windowmode to overlap and hover over the HTML content. Unfortunately, the HTML that is underneath the invisible Flash is not accessible. For example, the ...

How can I get the index of this element with jQuery?

Hi... I am trying to get the index of an element using jQuery to send to a PHP script. Here is my XHTML <form action="/accreditation/questions/" method="post" id="questions-form"> <fieldset id="question-0"> <legend>Question</legend> <h3>What colour is grass?</h3> <ul> <li><input type="radio" n...

Is there a good PDF to XHTML strict converter

It is basically all in the title, I need to take a bunch of large PDFs and have them in XHTML 1.0 strict, close is good enough, then I can clean it up. Thanks ...

How would YOU do this: Tables or CSS?

Part I This layout can be done quite simply with 2 HTML tables, one nested inside the other, or even with a single table. It can also be done with CSS, though it might involve a little more thinking. This may not be a real world layout, but I have seen pages that are similar. Consider this a riddle; an exercise to buff up your CSS...

Mootools Lightbox for a html div?

I'm wondering if anyone has ever come across a plug-in for mootools that will show a hidden div (with embedded video in it) as a light box, upon a click on a link. What I wanted is somehow like how apple trailers site show the embedded quicktime player. ...

The best php basic framework

I'm wondering if there's any framework that I could use for basic website with cms features. Some features that I was looking for in the framework is, basic cms editing features, possibly easy way of constructing web forms, (contact us, feedback, subscription) pretty url with mod-rewrite. May be I'm asking too much. ...

TreeView CSS Friendly Output? Control Adapters? ASP.NET 3.5

I want my TreeView control to output <ul><li> tags instead of <tables>. What is the best way to do this. I heard about the CSS Control Adapters. Is this still the best way? How do you go about doing it? ...

Dynamically Scrolling a Textarea

Hello All I have a textarea html element on my page that gets reloaded via ajax. The whole textarea is returned each time not just its content, and the content grows over time. Along with the textarea i return the following piece of javascript: <script type="text/javascript" > var textArea = document.getElementById('outputTextResult...

Convert Wordpress theme to plain XHTML+CSS

So there is a lot of posts on the internet about how to convert your XHTML+CSS theme to Wordpress, but I have a Wordpress theme and want to convert it (or un-convert it) back to just XHTML+CSS. Has anyone done this before? Anyone know of any resources (tutorials etc.) that I can use to help me do this? Thanks ...

XHTML/CSS/Javascript way to make a TABLE COLUMN selectable?

I am using a simple TABLE to display tabular data where the rows need to line up but when it comes to selecting the table contents, I only want users to be able to select within each column. Default browser behaviour is to select as rows across all columns but we NEED somehow allow selection only within columns. I was hoping there was a...

ClassNotFoundException in Java Applet using <object> tag

Hi there. I'm trying to embed a Java Applet using the <OBJECT> tag, which is the XHTML Strict way of doing it. After browsing lots of sites, I tried this example which seems to work pretty well: <!--[if !IE]> Firefox and others will use outer object --> <object classid="java:Sample2.class" type="application/x-java-applet"...

How do you embed a SWF object in an XHTML 1.0 Strict webpage?

Hi there, simple question: I'm looking for a standards compliant way to embed a flash file. I've been using Dreamweaver for this project (not because I like it, but because my co-worker isn't an HTML guru) and it apparantly uses non-standard code to embed flash files. It's probably standard in HTML, but not so much in XHTML which I prefe...

ccs clear:both, don't understand

Hi I seem to be having issues getting my layout to clear properly. Look at link text I can't stop the item in the left column from pushing down the items in the right. Can anyone help? Here another link to a screenshot with some pointy arrows ...

ASP.NET SiteMap control invalid XHTML -title contains &

Hi all, I'm using the .SiteMap file and Sitemap control to create a sitemap on a page. The title of the page in the Web.sitemap is: "Out & About". When the page renders, the ampersand is shown as an & (Out & About) in the source, this obviously then causes validation errors. Any ideas how I can force good ol' .net sitemap to encode t...

Tick symbol in HTML/XHTML

We need to display a tick symbol within an internal web app and would ideally like to avoid using an image. Has to work starting with IE 6.0.2900 on a XP box, ideally we need it be cross-browser (IE + recent versions of FF). The following displays boxes although sets browser encoding to UTF-8 (META works nicely and not the issue). The ...