Hello!
Is it "ok" to add attributes to various tags to use in JavaScript DOM parsing?
For example if I want to have required fields in a form, would it be a bad practice if I would do this:
<input type="submit" name="name" required="true"/>
Thank you.
...
Hello Everyone, I am trying to get a onmouseover and onmouseout effect in a xhtml page for my navigation menu.
This code only works in Firefox, but nothing else. Can someone please tell me how to get it to work on all browsers?
Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D...
Hi,
Is there any way to add both subscript and and superscript to the same element? If I do
Sample Text<sub>Sub</sub><sup>Sup</sup>
the superscript appears after the subscript. One I idea I had is to do something like:
<table>
<tr><td rowspan='2' valign='center'>Sample Text</td><td>Sup</td></tr>
<tr><td>Sub</td></tr>
</table>
It s...
I want to parse with XmlSlurper a HTML document which I read using HTTPBuilder. Initialy I tried to do it this way:
def response = http.get(path: "index.php", contentType: TEXT)
def slurper = new XmlSlurper()
def xml = slurper.parse(response)
But it produces an exception:
java.io.IOException: Server returned HTTP response code: 503 ...
I have the folowing html. It passes the w3 validator, but my javascript alert does not work. Can anyone see any problems or have any suggestions on how to get it to work?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"...
I have a text file which is the result of parsed HTML into plain text file. I need to get rid of which is something like XHTML comment like the following shows:
<!--
if (!document.phpAds_used)
document.phpAds_used = ',';
phpAds_random = new String
(Math.random()); phpAds_random =
phpAds_random.substring(2,11);
document.write ("<" +...
I need to open a popup window to a url with certain parameters. The parameters contain information that I would like to prevent from showing up in the browser history. The url points to a 3rd party site and I can't affect the way those parameters are transferred to them (can't use POST for example).
Currently I have worked around this s...
The following html(5) produces a black line at the bottom of the div. This is caused, because the div get's heigher than the contained image. But I wonder why this happens?
<!DOCTYPE html>
<html>
<body>
<div style="position:absolute; background:#000;">
<img src="http://images.google.com/intl/de_ALL/images/logos/images_logo_lg...
We are trying to find a java framework that requires the fewest changes to html/xhtml when we get it from the designer. So far to me it seems Sitebricks is the least intrusive, but it is still in alpha it seems and has been that way for a long time. Wicket seems to come in a pretty close 2nd. JSF, Stripes, and Struts requires a lot, w...
I want to use XHTML5 but apparently they two browsers don't accept the application/xhtml+xml MIME type. I read that they will accept text/xml (or application/xml not sure) but it is kind of hackish. So I was wondering if I should just serve HTML5 to IE7 and IE8?
Please don't go on talking about XHTML vs HTML advantages. I know.
...
Are XHTML style close tags valid in HTML? What I mean is, in XHTML we use <link href="style.css" type="text/css" rel="stylesheet" />. Is this valid in HTML? or should I be using <link href="style.css" type="text/css" rel="stylesheet"></link>?
...
How can I use this square cursor ( image below ) in the input tags ?
...
I use a foreach loop inside ASP.NET MVC View page. For each element of the collection that foreach operates on I create two rows - one for display, one for edit. I want to hide the edit row and only display it later depending on user action.
If I hide the edit rows with display: none, then jQuery's show() method cannot redisplay it agai...
I want compare two HTML documents, and want to know if they are the same. But only compare by DOM structure, which means ignoring the order of the attributes in a tag, for example, <table id="one" name="table">, <table name="table" id="one"> are the same.
...
Hi,
I have scoured the internet looking for a solution to this and I am sure it is right under my nose. Will someone please help?
I have a parent div with two children. Each child has static widths and I need each one to change their height to match the other according to the content. In other words, If "child-div-a" is taller than "c...
What's the most appropriate, semantically correct way to label checkbox and radio elements? Obviously, giving each one a unique id attribute is an option and using that in id a <label for="">, but this seems like it would break the semantic grouping. Putting unenclosed text next to the input element just seems...wrong.
Edit:
Additionall...
Are there any freely available tools that would check for things like a missing </p> or <br> (instead of <br />)?
Thanks!
...
Is it possible to remove the dotted line surrounding a selected item in a select element?
I have tried to add the outline property in CSS but it did not work, at least not in FF.
<style>
select { outline:none; }
</style>
...
Ok here is my challenge, I have some <h1> tags that I want to convert into a custom font and apply a gradient from left to right.
Initially I was going for the idea of using cufon as this does both, but it turns out cufon only supports top to bottom gradients.
My only other option as far as I am aware is sIFR which I believe may suppor...
Hi,
I spent all my afternoon building a navigation that changes the slideshow pictures on hovering a menu item in the navigation. After I finished, I realized that the menu item's tag makes use of href attribute to correspond changes in the slideshow. I need the href tag to have a link so that the menu can open a page as its meant to b...