valid

100% Min Height CSS layout

What's the best way to make an element of 100% minimum height across a wide range of browsers ? In particular if you have a layout with a header and footer of fixed height how do you make the middle content part fill 100% of the space in between with the footer fixed to the bottom ? ...

Producing valid XML with Java and UTF-8 encoding

I am using JAXP to generate and parse an XML document from which some fields are loaded from a database. Code to serialize the XML: DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.newDocument(); Element root = doc.createElement("test"); root.setAttribute("version", text); doc....

How to check if the input string is a valid VB string?

We know that VB string start and end with double quotes " " So we have to use "" if we want " in VB string. I wonder if there is a regular expression pattern which will match VB string?. Thanks. ...

How to check whether STL iterator points at anything?

I want to do something like this: std::vector<int>::iterator it; // /cut/ search for something in vector and point iterator at it. if(!it) //check whether found do_something(); But there is no operator! for iterators. How can I check whether iterator points at anything? ...

What is an XML infoset and in what ways is it different to an XML document?

I've tried to read http://www.w3.org/TR/xml-infoset/ and the wikipedia entry. But frankly I'm still not sure what the difference is. The quote : An XML document has an information set if it is well-formed and satisfies the namespace constraints. There is no requirement for an XML document to be valid in order to have an info...

Why isn't this XHTML valid?

Why isn't this XHTML valid? The HTML: <h2>earthquake warning <span>Posted 03/11/2009 at 2.05pm</span></h2> The CSS: h2 { font: bold 20px Arial, "Helvetica Neue", Helvetica, Geneva, sans-serif; padding-bottom: 5px; padding-top: 5px; text-transform: uppercase; } h2 span { font-weight: normal; text-transform: none; display: inline; } ...

HTML valid way of tracking outbound links via Google Analytics?

I am using http://bit.ly/5NNAIa, and I have it tracking an outbound link, but I want my page to be valid. This is the error I am getting: There is no "OnCick" attribute The HTML is: <p>View some of our student produced videos on <a href="http://www.youtube.com/user/johndoe" onClick="javascript: pageTracker._trackPageview('/outgoing/y...

Can a valid 13-digit ISBN have 'x as one of characters?

hi, can a valid 13-digit ISBN have any character other then digit 0-9? i.e., can a valid 13-digit ISBN contain character 'X'? ...

jQuery Validation doesn't highlight my select field on error *solved

Hey everyone, I am trying to apply a drop down validation (so if the value is equal to 0 of a <select><option value="0">) then it applies a background-color of yellow as it does for the rest of my input fields. Here is my code: <script src="jq.js"></script> <script src="validate.js"></script> <script> jQuery.validator.addMethod( "sel...

Correct way to leave empty elements in xhtml?

Hello. I've been experimenting with xhtml and now I'm wondering that is there a valid/correct way to add empty elements. Short question, but here's the two ways I've been using: <div> </div> <div>&#32;</div> <!-- Same as space --> Hope someone knows an answer for this. Thanks. ...

C# System.Drawing.Bitmap <-- how to check if image is valid before adding it to picturebox!

How do I do that in C#? :) Thx! ...

asp.net mvc and valid xhtml?

For some reason an html helper is outputting this html which doesnt validate. the validator tells me There is no attribute "Length" <%= Html.CheckBox("Medicamentos", Model.Medicamentos) %> is outputting <input type="checkbox" value="true" name="Medicamentos" id="Medicamentos" checked="checked" length="4"> ...

Does HTML and CSS needs to be valid before we apply JavaScript?

Hi all, I was thinking about Web standards, and i was wondering if we need to have valid HTML and CSS before we apply JavaScript? Can anyone enlighten me on the relation between valid HTML, CSS and JavaScript? For instance, does invalid HTML and CSS prevent JavaScript from working correctly? Best Regards. ...

Wordpress contact form 7 chrome issue?

Hi i'm using contact form 7 plugin for a really long form. My issue is that when I fill my form in chrome and press send to test the fields validation it clears my form of all my content. Yet I do not get this issure in ie7 or firefox. Is it to do with chromes interface? Thanks for all your help Regards Judi ...

Why is var m = 6 + + + + + + + + 6; valid in c#?

Title is most of the question, what allows this to be valid code? Is there any benefit or trick that would allow me to utilize this? ...

Using a Function returning apointer as LValue

Why cant I used a function returning a pointer as a lvalue? For example this one works int* function() { int* x; return x; } int main() { int* x = function(); x = new int(9); } but not this int* function() { int* x; return x; } int main() { int* x; function() = x; } While I can use a pointer variab...

Check if URL is a torrent in C# .NET

Hi! What's the best way for me to take url like: http://foobar.com/foo.torrent and check if that really is a torrent, not a html page or something else funny. Suggestions? Thank you :) ...

Check if address exists before use/jump in assembly?

Say i have loaded some random address like 0x00001234 into eax. Is there a way to test that this address is valid/exists before jumping to it or dereferencing it? Or do I have to implement an exception handler? ...

How to detect if *.ico file is a valid icon in PHP

I would like to test if *.ico images are valid icons in PHP. I tried to use getimagesize function but it doesn't support ICO files. ...

Are self-closing tags valid in HTML5?

The w3c validator doesen't like self-closing tags (those that end with "\>"). Are they still valid in html5? Some examples would be: <br \> <img src="" \> <input type="text" name="username" \> ...