xhtml

use struts tags inside attributes in jspx files

I have some old jsp code that uses the struts tags inside attributes, like this: <link href="<s:url value='/styles/layout.css'/>" rel="stylesheet" type="text/css" media="all"/> I can't get this to work in jspx files though. Is there a good alternative to sort of get the same functionality without too much clutter? ...

Depiction vs. Depicts

I'm working with FOAF and RDFa, and struggling to figure out whether I should be using foaf:depiction or foaf:depicts and the correct way to use them. Here's what I've already established: <div class="profile" typeof="foaf:Person"> <p>Employee Name: <span property="foaf:name">Fred Flintstone</span></p> <p><img src="http://www.example.co...

What's the need for XHTML?

In an interview I was asked a question that I'd never thought about, which was "We already have HTML which fulfills all the requirements of writing a web page, so what's the need for XHTML?" I Googled a lot and also read many articles, but I'm not able to get properly why XHTML has been introduced. Please explain to me. ...

How to inline SVG in CruiseControl.NET reports?

I am trying to embed inline SVG within custom CruiseControl.NET reports. Since this is for internal use only, I just need a solution compatible with the last version of Firefox. Actually inserting the SVG XML into a custom CruiseControl.NET report is OK. But, but I am struggling with the HTML vs XHTML interpretation of the file by Firef...

XHTML compliant live messenger embedding

The following code can be embedded on a website to add windows live messenger functionality. Is there any way to make this XHTML 1.0 Translitional compliant? <div id="Microsoft_Live_Messenger_PresenceButton_e17530aa6eff7871" msgr:width="100" msgr:backColor="#DBDBDB" msgr:altBackColor="#F...

Webform Layout Question. Table or something else

Hi all, I have to create a webform that looks something like this column column - column column column column - column column label: input - label: input label: input - label: input - label: input label: input - label: input label: input label: input - label: input label: input ...

3 and 2 column full screen (width & height) layouts (CSS)

Hi all, I was wondering if there were any simple examples that did the following * A right and a left fixed column with a fluid center. With full height and width and a header and footer. * A single left fixed column with a fluid content column 2. With full height and width and a header and footer. * A single...

HTML, CSS Edit

i wrote some html code and want to edit its view using the css <div id="contact_4" name="contact" > <input type="checkbox" id="chk_4" class="contactChk"/> <img height="25" width="25" alt="" src="Images/Contacts/1.jpg" style="width: 30px; height: 35px;"/> <span class="contactItem" id...

Javascript syntax <script /> VS <scrip></script> - the weirdest thing

Duplicate Why don’t self-closing script tags work? I'm writing an ASP.net page, which have some Javascript code in JS file for client-side authentication. While using this code prevented from my server-side code from working: <script src="../../JavaScript/BaseJS.js" type="text/javascript" defer="defer" /> This code somehow ...

Search in html Javascript

I have the below html code, also i will have a textbox for entering the keyword, What i want is while the user writing in this textbox the javascript search in this html code using the FirstName and LastName , and while comparing items, if an item didn't match i want to display:none its container div. How can i do that using JS and work ...

Need help with setting up SSL

Newbie IIS question: I want to setup HTTPS access for my XHTML page (not asp.net) hosted on my IIS 6.0 server. So far I have done the following: In IIS Manager, for the particular folder, the following are set: Require secure channel (SSL) Require 128 bit encryption Ignore client certificates However when I try to access the page...

Why is my element with position:absolute always showing up underneath position:relative items?

It's all in the question but here's a simple example <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /> <ti...

XHTML bulk Validator for Windows?

I have several hundred (static - no includes or server-side parsing) HTML pages. I would like to validate the HTML (XHTML 1.0 Transitional), but the idea of plugging each of them individually into the W3C Validator - or even using a Firefox plug-in to open each one - fills me with dread. Does anyone know of any (Windows) apps that can d...

CSS question

I have the following code: what i want is using css put the "MYIMAGE" on the most right side. <div style="cursor: pointer;" onclick="javascript:SelectContact('17');" onmouseover="javascript:this.className='onfocus';" onmouseout="javascript:this.className='tempClass';" id="contact_17" class="tempClass"> <input type="chec...

XHTML validation, custom namespaces and attributes

I have a website that a client requires to be XHTML valid. They check it using the W3C validator. I want to add my own namespace and attributes so I can do things like this: <div my:userid="123"> ... </div> From what I understand, defining custom namespaces is perfectly valid XHTML, as long as I do this: <html xmlns="http://www.w3.o...

What's the best WYSIWYG editor when using the ASP.NET MVC Framework?

Hi, Was wondering what the best WYSIWYG editor that I can embed in a web-site based on the ASP.NET MVC Framework? Ideally it should be Xhtml compliant and allow users to embed images etc. The only one I've used before is the FCKEditor, how well does this work with the MVC - has anyone tried...? My main requirements are: Xhtml compli...

under what type to write javascript in html pages

What type should I use (If at all) in a javascript block inside html? application/x-javascript text/javascript something/other... ...

Configure Rails to output HTML output instead of XHTML

How do I configure Ruby on Rails to output standard HTML code instead of XHTML when using helpers (form, javascript, css, etc.)? I don't want to have the slash at the end: <input name="email" type="text" /> ...

Can anyone point me to a good article on "abstracting HTML"?

I'm currently working on a legacy eCommerce system front-end that has alot of duplicate HTML code. I'm trying to find a way to abstract out the complexity almost as you would when moving the similarities between similar classes into a shared abstract base-class. I.E. "Taking out what changes and abstracting it" I've used Java framew...

How can I keep content from re-sizing it's wrapper div?

I'm a css noob, and though I want this DIV to resize when the window is resized, I don't want inner content to change the size of it. ...