html

Gracefully closing a frame (toolbar) around an iframe

I've created a tool that is used with a fairly popular music retailer. The tool provides an enhanced search feature (transparent last.fm results, no ads, no lameness, nothing creepy) and I've found the most useful and unobtrusive way to display the search is as a toolbar using the much maligned iframe. This allows users to load search w...

Javascript to detect whether the dropdown of a select element is visible

I have a select element in a form, and I want to display something only if the dropdown is not visible. Things I have tried: Watching for click events, where odd clicks mean the dropdown is visible and even clicks mean the dropdown isn't. Misses other ways the dropdown could disappear (pressing escape, tabbing to another window), and...

Is there an alternative to conditional display:none

I inherited an application where display:none was used to control conditional display of input elements based the values of other input elements. The way this was handled is by running some pretty ugly code to evaluate field values and reset the display property in the during page load. Every time. Isn't there a better way? ...

Problem with :hover in IE7

Hi all, I've got such a simple code: <div class="div1"> <div class="div2" >Foo</div> <div class="div3"> <div class="div4"> <div class="div5"> Bar </div> </div> </div> </div> and this CSS: .div1{ position:relative; } .div1 .div3 { position:absolute; top:30px; left:0px; width:250px; ...

How to control mobile softkeys from Flash application embedded in HTML

I have a flash application running Flash 9 (CS3). Application is able to control the Softkeys when this flash application is loaded in the supported mobile device. But, the application doesn't have control when the same is embedded in HTML page and browsed via supported mobile device. Any ideas how to make this work? Thanks Keerthi ...

Recommended HTML formatter script/utility?

Simple question - I've got a bucketload of cruddy html pages to clean up and I'm looking for a open source or freeware script/utility to remove any junk and reformat them into nicely laid out consistent code. Any recommendations? If it's relevant I generally manipulate HTML inside Dreamweaver - but by editing the code and using the wys...

How to determine from Javascript if an html element has overflowing content

I am interested to know if there is any way i can check from javascript code if an html element has overflow in it's content (but with the overflow property set to visible - so no scrollbars on the element). Can i check irrespective of scrollbars for overflow content (in a div tag for instance)? Thanks in advance. ...

Collapsable Drop Down List Box in HTML

Is there any sort of free control which does what the Occupation field does on http://monster.ca? That is allow for grouping of the options in a drop down box with expandable sections? I just learned about the optgroup tag which is close to what I want, but not quite. ...

What's the future of the web? XHTML 2, HTML 5, or something else?

I'm confused by the discussion and advancement both of a new version of HTML and a new version of XHTML. Are they competitors? If so, what is likeliest to be the adopted future of the web? If not, what is the differing non-competing purpose for each? Are we due to have a BluRay/HDVD battle here? Is there ultimately any clear decision? I...

Is HTML considered a programming language?

I guess the question is self-explanatory, but I'm wondering whether HTML qualifies as a programming language (obviously the "L" stands for language). The reason for asking is more pragmaticI'm putting together a resume and don't want to look like a fool for listing things like HTML and XML under languages, but can't figure out how to ...

Change the value of a text box to its current order in a sortable tab

Edit: I have solved this by myself. See my answer below I have set up a nice sortable table with jQuery and it is quite nice. But now i want to extend it. Each table row has a text box, and i want i am after is to, every time a row is dropped, the text boxes update to reflect the order of the text boxes. E.g. The text box up the top a...

Javascript Events: Getting notified of changes in an <input> control value

I have the following problem: I have an HTML textbox (<input type="text">) whose contents are modified by a script I cannot touch (it is my page, but i'm using external components). I want to be notified in my script every time the value of that textbox changes, so I can react to it. I've tried this: txtStartDate.observe('change', fu...

REGEX: Grabbing everything until a specific word

ex: <a><strike>example data in here</strike></a> I want everything inside the a tag, to the end /<a>([^<]*)<\/a>/ It works when there are no additional tags within the <a> tag, but what if there are? I want to know if you can tell it to grab everything up to [^</a>] instead of [^<] only. Doing it with /<a>(.*)<\/a>/ doesn't wor...

Are there any free ways to turn an html page into an image with .net

I want to take html, including the text and images and turn it into one image containing everything. Is there a free way to do it? This is using .net 3.5. See also: Server Generated web screenshots? What is the best way to create a web page thumbnail? ...

Hiding table rows without resizing overall width...

Is there a way to hide table rows without affecting the overall table width? I've got some javascript that shows/hides some table rows, but when the rows are set to "display: none;" the table with shringk to fit the contents of the visible rows. ...

How to force a DIV block to extend to the bottom of a page, even if it has no content?

Hi, I'm trying to get the content div to stretch all the way to the bottom of the page but so far, its only stretching if theres actual content to display. The reason I want to do this is so if there isn't much content to display, the vertical border still goes all the way down. Here is my code <body> <form id="form1"> <div id...

Page working in FF, not in IE, where to start

I have a page which is largely created by DOM script, which generates a table of images (normal img elements) from several webcams (helping out a friend with a pet boarding and my HTML/DOM is a bit rusty). It works fine in FF3 or Chrome, but not in IE7, In fact, the whole table is not visible in IE (but the body background-color is app...

Good HTML Templates for form based Web Applications

Hi, I would like to refer HTML templates designed/developed especially for form based Web Applications. I have been searching them but am not able to find out which I find better. Regards, Jatan ...

What is your favourite Java Script WYSIWYG Editor component?

I definitifely like the one at stackoverflow, because it's clean and simple. Also the live preview with code/syntax hilighting is really helpful (and motivating). What is your favourite Javascript Editor Framework and why? ...

.html() jQuery method bizzare bug -   resolves to empty space locally, but not on production.

I'm making a simple jquery command: element.html("&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"); using the attributes/html method: http://docs.jquery.com/Attributes/html It works on my local app engine server, but it doesn't work once i push to the google server. The element empties, but doesn't fill with spac...