html

Is there an html css normalizer that works?

Long ago, I wrote a style 'normalizer' program to scan the ASP/HTML code of a big pile of classic ASP pages (most of which were originally generated from MS-Word documents, so naturally they were littered with superflous stylesheets and massive one-off styles). The style normalizer generated a minimal set of stylesheets and styles and a ...

Good tool to minimize HTML footprint?

Does anyone know a good tool that can be run on a page (for asp.net, for example) to help to minimize the footprint size of the page? The page will have typical items: HTML, Javascript, etc. I've heard of Javascript crunchers in the past, that will make the size of the code as compact as possible (and obfuscate it, I suppose). The goa...

css li menu dynamic line widths in IE6

I've got a css menu like this: <ul> <li><a>Item1</a></li> <li><a>Item Two</a></li> <li><a>Item C</a></li> <li><a>A Rather Long Menu Item Down Here</a></li> </ul> I want to create this: |-----------------------------------| | Item1 | |-----------------------------------| | Item Two ...

How to embed a swf on top of a html page?

Hi, I want to embed a swf over a html page, like a floating video watching panel. I already have a swf file which will automatically adjust its size according to the browser size, and the swf file is partially transparent. I thought I can just add a div tag, make the position absolute and change z-index bigger, but that doesn't work be...

HTML - xml data islands

I am designing a web app and I intent to embed data on an xml island so that I can dynamically render it on an HTML table on the client-side based on options the users will select. I have the broad concepts, but I need pointers on how to use DOM in navigating my xml. And how to update my xml island possibly for posting back to the serve...

How to prevent text in a table cell from wrapping

Does anyone know how I can prevent the text in a table cell from wrapping? This is for the header of a table, and the heading is a lot longer than the data under it, but I need it to display on only one line. It is okay if the column is very wide. My (simplified) table is structured line this: <table> <thead> <tr> <th> ...

C# - Best Approach to Parsing Webpage?

I've saved an entire webpage's html to a string, and now I want to grab the "href" values from the links, preferably with the ability to save them to different strings later. What's the best way to do this? I've tried saving the string as an .xml doc and parsing it using an XPathDocument navigator, but (surprise surprise) it doesn't nav...

How do I get these strange characters when I try to "echo" the html string?

Hi, I am sending the echo to mail function via PHP from variable that includes HTML code. The strange thing is, that this <����}im� shows up AFTER the string.. but I do not manipulate with it anymore. The charset of mail function (the attachment) is same as charset of HTML code. ...

Jasper report column width

Hi, I have some Jasper reports which are displayed in HTML format. I would like the width of the columns in the HTML tables to automatically resize to fit the content of the widest cell (in that column), such that all the data is displayed. Currently this does not happen because the HTML generated by Jasper specifies fixed widths for t...

How do I display HTML stored in a database from an ASP.NET MVC view?

I have HTML code emitted by FCKEditor stored in a database and would like to display (well render) it onto a view. So, for instance, something stored as: &lt;&gt;pre&lt;&gt;This is some sample test&lt;&gt;pre&lt;/&gt Will be displayed to the user as: This is some sample text (With the appropriate style for preformatted-text) The v...

CSS way to horizontally align table

I want to show a table of fixed width at the center of browser window. Now I use <table width="200" align="center"> But Visual Studio 2008 gives warning on this line: Attribute 'align' is considered outdated. A newer construct is recommended. What CSS style should I apply to the table to obtain the same layout? ...

will a script in html's script tag with extension php be cached?

for example <script type="text/javascript" src="assets/scripts/somescript.php"></script> will my browser still cache this just by not setting this scripts headers meta tag cache to must-revalidate? ...

Find <a class="button"> elements that do not contain <img>

I have the following markup for buttons (can be changed, but I really don't want to): <a href="#" class="button"> Button text <img src="someimage.png" /> </a> This is styled using CSS to become a rather neat button with an icon on it. I am using jQuery to round the leftmost side of the buttons: $('a.button').corner('tl bl 10px');...

corrupted ajax result

Hello, I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv="Content-Type" content="text/html"; charset="iso-8859-1"> </head> <script language="JavaScript" src="ajaxlib.js"></script> <!--define the ajax javascript library--> <body> Click this <a href="#" OnClick="GetEmployee()">link</a>...

What's the standard way to give a set of different clickable options all submitting the same form?

I have a PHP-generated page which is displaying some data about a set of films. The page is updated using POST. The form only shows films starting with a particular letter. I want to present a set of clickable options at the top of the screen, each of which is a letter. So if you click on "B" it submits the form and re-draws the page sho...

JQuery tablesorter problem

Hi, I'm having a couple of problems with the JQuery tablesorter plugin. If you click on a column header, it should sort the data by this column, but there are a couple of problems: The rows are not properly sorted (1, 1, 2183, 236) The total row is included in the sort Regarding (2), I can't easily move the total row to a table foot...

displaytag table column totals

Hi, I'm using the displaytag JSP tag library to generate tables that show column totals. For example in the JSP code below, only those columns with the attribute total="true" will have totals generated. <display:table name="myTable" id="myTable" decorator="org.displaytag.decorator.TotalTableDecorator"> <display:column property="na...

Variable (dynamic) OPTION lists in HTML SELECT using IE

I'm trying to implement a dynamic OPTION list in JavaScript. Depending on other selections in the web form, some of the OPTIONS in a specific SELECT are not valid. Things I've tried that don't work in IE are: populate all options, then set the disabled property for those that are invalid populate all options and use option groups, t...

Do you generate nicely formatted HTML?

When using some server-side technology which is outputting HTML, do you try to format the output nicely? For example, adding line breaks and indentation? What are the pros and cons of either style? ...

Video in email?

We often send emails in HTML for clients (Dont like it but not my choice) Does anyone have any info or a link on support for the dynscrc attribute or img in email clients? ...