html

how can I create overlay div to fit the rest of the screen

How can create overlay div with black background lets say, I have an anchor that fires div to popup, here is the anchor: <a href="#" title="Open online form" id="open">Suggest</a> Here is the css of centered div : .centered { width:55%; position:fixed; left:18%; height:200px; border:2px solid red; display:none; } $("#op...

How to identify double click in SELECT element with multiple

I have a SELECT element with the MULTIPLE attribute. When double-clicking on an option in the list, I want to take an action based on the option being clicked. I understand that the OPTION element doesn't handle the ondblclick event. If I handle the dblclick event of the SELECT element, is there some way I can identify which option wa...

Why isn't this regExp working?

I have this to validate a textarea. Here is the exp: var desExp = /^\s*(\w[^\w]*){3}.*$/; This works fine when typing on one line something like "really nice car". But when typing into several lines like this: Got receipt. Brand new! // new line here Shipping included. // new line here 0704-256568 I think the error comes up be...

Use Java or html to convert a freemind map node to ical task

Hi, Is it possible using Java or HTML in some way to convert a node from a Freemind map to a task in iCal (Mac OS X)? Thanks ...

Radio buttons and label to display in same line

Why my labels and radio buttons won't stay in the same line, what can I do ? Here is my form: <form name="submit" id="submit" action="#" method="post"> <?php echo form_hidden('what', 'item-'.$identifier);?> <label for="one">First Item</label> <input type="radio" id="one" name="first_item" value="1" ...

Empty block elements (ex: <div>s) are rendered differently in Chrome and Firefox; when does it happen and who is right?

This page renders differently in Firefox and Chrome. Code <p style="border: solid 1px red">Test test</p> <p style="border: solid 1px red">Test test</p> <p style="border: solid 1px red">Test test</p> <div style="margin-bottom: 1em; overflow: auto;"></div> <p style="border: solid 1px red">Test test</p> <p style="border: solid 1px red">Te...

CSS for hiding a HTML element, keeping its with and height?

I need a CSS snippet for hiding a HTML <div class="my"> (with quite a lot of contents, including text and other divs), but still reserving space for it. Is there something better or faster than div.my{opacity:0;}? ...

Align Div To Bottom of Parent Div

This is the page: http://joe-riggs.com/chip/ Im developing with FF havent even tried to fix ie yet, I want the nav links to be at the bottom, like this: http://i.imgur.com/cYERA.png At some point I want to add the black lines,they are just there for reference. Thanks- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt...

Prevent Firefox autocompletion from popping up

Hi. I wrote an autocompletion script for an input field on a website. It uses jQuery and works fine. It should look something like this: Unfortunately, Firefox's own autocompletion gets in my way, overlapping some of the results: Is is it possible to prevent the Firefox autocompletion field from popping up? (Not only on my machine ...

css renders with strange characters.

Hi friends, I have an index.html and global.css files. When I open these files at Coda, Textmate, etc. , everything looks fine. than I try in firefox, index.html loads css from right path, but it doesnt take effect. than I tried to see css code from firefox, and I see signs like; ॵ氮扵汬整筰慤摩湧㨰‵灸‰′㕰硽畬⹢畬汥琠汩筬楳琭獴祬攺摩獣㭰慤摩湧㨲灸紮摲慷汩湥筢潲摥爭扯瑴潭㨱灸⁤慳桥...

What is difference between html and htm?

Hello, Another newbie question. I just wanted to know what exactly is the difference between html and htm extensions we see for webpages. Are they same? and if so then why two extensions for the same purpose? Thanks ...

What to do with a big image that's slowing website loading down significantly

Hi I'm working on a website that's already been designed by someone else. The designer has used a big image (900x700 100KB) which contains a big logo right across the top, then the background for two columns. This image loads every time a page is loaded as it forms the basis for the website. What should I do with it to improve loading ...

Is there an alternative to HTML Tidy?

Hi, I have embedded HTML Tidy in my application to clean incoming HTML. But Tidy has a huge amount of bugs and fixing them directly in the source is my worst nightmare. Tidy source code is an unreadable abomination. Thousand+ line functions, poor variable naming, spaghetti code etc. It's truly horrible. Worse yet, official development ...

What is the proper way to format a JavaScript tag?

Having developed web apps since 1996 I often find new ways of doing old things. So I was wondering what is the proper JavaScript tag to use on new development? Currently I use something like this for XHTML <script type="text/javascript"> /* <![CDATA[ */ /* ]]> */ </script> I have read somewhere that this may cause problem with olde...

How to rewrite a stream of HTML tokens into a new document?

Suppose I have an HTML document that I have tokenized, how could I transform it into a new document or apply some other transformations? For example, suppose I have this HTML: <html> <body> <p><a href="/foo">text</a></p> <p>Hello <span class="green">world</span></p> </body> </html> What I have currently written is a tokenizer t...

Tools and ways to generate HTML help for built-in help system (QtHelp)?

Hello, I'm in the progress of implementing a built-in help system based on QtHelp into my application. Since QtHelp is based on Qt's help collection files, I need to produce a set of HTML pages. Since I won't be writing the documentation alone (a few of my colleagues will write, too), I am looking for the best way to produce these file...

Creating HTML: PHP server-side vs. jQuery client-side

This is a design question. I have data that needs to go into an HTML table, which will later be manipulated by the user. Basically the user will be able to select items in the table rows. I have two options - in both cases I'm using AJAX to get the data: Create the HTML code using PHP on the server side, send it to the client as HTML....

Using SC.Timer to blink cursor

Hi I'm trying to have a cursor blink every 2.5 seconds but I'm not sure how tot use the SC.Timer object....The method I should be calling is _drawInsertionPoint(rect,context) every 2.5 seconds.... I found this var timer = SC.Timer.schedule({ target: this action: '_drawInsertionPoint(rec,context)', interval: 100, repeats: YES, until: ...

Encoding detection library in python

This is somehow related to my question here. I process tons of texts (in HTML and XML mainly) fetched via HTTP. I'm looking for a library in python that can do smart encoding detection based on different strategies and convert texts to unicode using best possible character encoding guess. I found that chardet does auto-detection extrem...

How to overcome IE7 padding issues?

IE7 is driving me crazy. I know is a small thing, but I don't know what else to google, and I know I am missing something very small. <div id="spotlightHolder"> <div id="spotlight"> <div id="spotlightMessage"> <h1 id="spotlightTitle">Lorem ipsum dolor sit amet.</h1> <p id="spotlightDescription">Lorem ipsum dolor, con...