html

A Firefox tool that shows object and element structure on hover?

on any element in the webpage. I need to look at what the element and children elements are. For e.g. ...

SQL query against a web page(or, advanced find)

Suppose I have a table. Now, I'm interested in Getting Useful Data Easily. This means I'd rather not drop it into Excel and go through contortions, nor somehow get it into CSV and then into a DB, and then into SQL. I'd like to be able to execute a SQL query directly against a table in HTML. Has anyone heard of a tool like this before? ...

Strange treatment of "plus" character (+) by Internet Explorer 7

This is really weird... When I open the following simple HTML document in Internet Explorer 7.0.5730.11 (on Windows Server 2003 Web Edition SP2) <html> <body> <p>+</p> </body> </html> it shows me a totally blank page. FWIW, this is just a trivial "repro" sample. In real HTML documents, I observed other, even more bizzarre effe...

How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)

Can you do it programmatically? ...

Embedding html code in stored procedures

We seem to have a few developers here who think creating stored procedures that spit out HTML or Javascript code is a legitimate thing to do. In my mind this is the ultimate abuse of the separation of concerns model. Is doing something like this people have often seen people doing? ...

Make a scrollable element stay "at the bottom" while adding content.

I am building a utility page for a web app that I am working on. I have an element that I want to use as a "console" of sorts. I get entries for the console via Ajax calls (using prototype's Ajax.PeriodicalUpdater). The problem I'm having is that when I insert new lines to the bottom of the "console", the scrollbar stays in the initi...

Prevent long word to add horizontal scroll to html view

On Windows Mobile, I am displaying my output in HTML. This includes lots of user-generated strings. Occasionally there are situations where a really large string is part of the output that has no whitespaces or punctuation. Unfortunately the Windows Mobile's HTML view (htmlview.dll, based on Pocket Internet Explorer) does not break the...

If the html says <div id="two words", how do I write the CSS selector in the style sheet?

If it said "oneword", then I could write "#oneword", but what do I write when there is a space in the word? ...

Why do I get a "Failed to export the report" error when I try to export a Crystal Report to an HTML file?

I'm trying to export a Crystal Report to an HTML file, but when I call the Export method, I immediately get this error: Source: Crystal Reports ActiveX Designer Description: Failed to export the report. I have tried both crEFTHTML40 and crEFTHTML32Standard as export format types - and both result in the same error. Here is a...

What is the best way to parse HTML from a Rich Text Editor in Perl?

Is there a Perl module out there that can take bad HTML (such as what is copied from Microsoft Word) and parse it into nicely formatted HTML? I have looked at HTML::Tidy, but it has gotten horrible reviews on CPAN. We have a custom legacy module that's basically a wrapper for the command line version of tidy (which seems to be pretty m...

HTML Table columns height; Works in Firefox not in IE

I have some HTML that displays fine on FireFox3/Opera/Safari but not with IE7. The snippet is as follows: <!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"&gt; <head></head> <body bgcolor="#AA5566" > <table width...

Password protected hyper link with target=_blank

I have a hyper link like this : <A Href=My_Java_Servlet?User_Action=Admin_Download_Records&User_Id=Admin onClick=\"Check_Password();\" target=_blank>Download Records</A> When a user clicks on it, a password window will open, the user can try 3 times for the right password. The Javascript looks like this : <Script Language="JavaScrip...

Invoking javascript in iframe from parent page

Basically, I have an iframe embedded in a page and the iframe has some javascript routines I need to invoke from the parent page. Now the opposite is quite simple as you only need to call parent.functionName() but unfortunately I need exactly the opposite of that. Please note that my problem is not changing the source url of the iframe...

Minimum time between subsequent AJAX calls

In AJAX applications that need to poll the server in regular intervals (like a chat applications), what is the recommended minimum time between two calls, so that the update is done as quickly as possible? What times are considered as hogs for the server and the client? ...

HTML UL width

Given the following markup: <ul> <li>apple</li> <li class="highlight">orange</li> <li>pear</li> </ul> Both the ul's and the li's widths appear to be 100%. If I apply a background-color to the list item, the highlight stretches the full width of the page. I only want the background highlight to stretch as wide as the widest i...

How is gmail source transformed?

I open gmail, click on an inbox item, and look at source of the page. It doesn't look like there isn't any proper html to relate to what is shown on the actual page. How is the source getting processed into the actual page? Is there some javascript processing this information? ...

Center Align on a Absolutely Positioned Div

div#thing { position: absolute; top: 0px; z-index: 2; margin: 0 auto; } <div id="thing"> <p>text text text with no fixed size, variable font</p> </div> The div is at the top, but I can't center it with <center> or margin: 0 auto; ...

<noscript> in <head>

Am I allowed to place <noscript> in the <head>? ...

Is it possible to simulate spacing between table cells such that vertical and horizontal spacing are different?

In CSS, you can specify the spacing between table cells using the border-spacing property of a table. However, this results in uniform spacing between columns and rows, and I am finding more situations where the designs I am using call for gaps between rows, but not columns, or visa versa. If I have a solid background, I can simulate s...

Fieldsets and legends

Alright, I know how the fieldset/legend works out in html. Say you have a form with some fields: <form> <fieldset> <legend>legend</legend> <input name="input1" /> </fieldset> </form> What should I use the legend for? It's being displayed as a title, but isn't a legend semantically an explanation of the contents...