html

How would you fix this uncommon example of the common IE Z-index bug?

This may appear to be a common question that has already been answered because it refers to the well-known z-index bug in IE7 and lower. However, this situation is somewhat unique; I am using a CSS dropdown menu that uses nested lists for sub menus. I have used this many times on other sites, but usually with the first level being horiz...

How to fix innerHTML on IE not rendering entities with HTML5 doctype?

I'm observing that when using an HTML5 doctype (<!DOCTYPE html>), assigning a string containing HTML entities to a DOM object's innerHTML does not convert/render those entities on IE8 (and probably other IE versions). document.getElementById('some-div').innerHTML = 'Doesn&apos;t work.'; Does anybody have a solution? I've come across t...

Creating broken horizontal rule

Hi. I havee been looking at the source and stylesheet for the following address to work out how you can make a ... be "surrounded" by a broken horizontal rule. At the page http://www.joindiaspora.com/ there is a navigation menu having an example of it. In the html source there is used no tag so I am thinking it must be done using the st...

How to fix broken relative links in offline webpages?

I wrote a simple Python script to download a web page for offline viewing. The problem is that the relative links are broken. So the offline file "c:\temp\webpage.html" has a href="index.aspx" but when opened in a browser it resolves to "file:///C:/temp/index.aspx" instead of "http://myorginalwebsite.com/index.aspx". So I imagine that...

How to get the id value of a multiple SELECTION using javaScript?

I want to get the ID values of multiple selection list. The multiple selection list is generated dynamically. How to get that values? If i can able to get the values means, can I convert it to JSON object or, it ll be obtained as JSON object!!!! Here is my code to generate it dynamically. function displayMultipleList() { EmployeeM...

display xml data in html from an xml file specified within another xml file

Hi, can you help, I have a basic xml file which is displaying well in html. The xml file is as such... <videoList> <video> <pointer> <type><![CDATA[image]]></type> <lat><![CDATA[52.1]]></lat> <long><![CDATA[1.0]]></long> </pointer> <speaker> ...

Nested Doctype tags

Let's say I begin an HTML file with the usual DOCTYPE declaration. However, let's also assume that another instance of a DOCTYPE tag is introduced inside the body of that document via some soft of included content (eg. a content template). From my testing this doesn't seem to be a problem. But I was wondering if anyone know of a situa...

Select boxes by country and region

How can I customise a form to only show the relevant countries when selecting a region in my form below? This is my code <form id="sobi2Search" name="sobi2Search" action="index.php" method="get"><input type="hidden" value="com_sobi2" name="option"> <input type="hidden" value="search" name="sobi2Task"> <input type="hidden" v...

Two column layout with floating divs breaks when adding items to list using jQuery

The HTML looks like this. <div id="leftcontainer"> <div id="anothercontainer"> <ul id="items"> <li>Text</li> <li>Text</li> <li>Text</li> <li>Text</li> <li>...</li> </ul> <...

File upload progress bar

Can anyone suggest a good and easy way to include the file upload progress bar, while uploading a file. I know it would be a mix of javascript & php. Please suggest one ...

Can you provide a hint to a mobile device that an HTML input field is numeric-only?

I've been doing some usability testing on a website I'm developing, using an Android phone and an iPod touch. In both cases, when entering a numeric field (time, distance in metres, etc) I have to take a manual step to change the keyboard layout to show digits. As the app will only accept numeric values in the textbox, I'd like to save...

Which combination of tags should I use?

In my form I have 3 styles of text: styleA (size 16 and bold, more like a header) styleB (size 16, normal weight, the normal text) and styleC (size 14 and italic, a note at the end). Should styleA and styleB use <h?> tags and styleC use a <p> tag? Or should styleA use an <h?> tag, styleB use a <p> tag, and styleC use a <small> tag? Or i...

CSS Main Body does not stretch to page?

I am beating my head against a wall trying to figure out why the code I have written for a particular site doesn't quite work. The main body of my pages (the white area in link below) should be stretching from navigation to the footer but only does so on certain pages. The footer is automatically placed at the bottom of every page reg...

2 Column Div float right and left child divs outside parent

I can't find a good solution to this problem. I have 2 divs inside a parent div. When I try and float the divs right and left to make 2 columns inside the parent div, the child divs end up underneath the parent div. <head> <link rel="stylesheet" type="text/css" href="float.css" /></head><body class="wrapper"> <div class= "whole"> <div ...

How can I create an html input text area such that I can underline or format certain words?

I'd like an input field that I can have javascript set certain attributes for, for different parts of the input field. A simple example to demonstrate what I'd like to do: let's say I want to underline all curse words in an input text area. So the javascript would check the input text area when a new letter is inserted, and for any word...

General Questions About Image Maps

First off, I noticed that you can place the <map> tags anywhere in the document and the image map will work just fine. So, is it common practice for people to put the <map> tags in the <head>, or is it better practice to have it in the <body> immediately following the <img /> it corresponds to? Second, I know the map tags aren't depreca...

Would you prefer Aptana or Dreamweaver for front end development?

I have access to a copy of Dreamweaver CS5 which is paid for, so I am trying to decide if I would rather use Dreamweaver or Aptana. They seem fairly similar in basic function, but I'm sure their complete list of features differs a lot. The only thing I care about at the bottom line is which one is going to allow me to code HTML, CSS and ...

Display HTML elements overtop embedded QuickTime

I have a site where a jQuery dialog is used to show videos in a modal frame. I would like to be able to rest the close button so that it partially covers the embedded QuickTime object, much like the modal frame in this picture: http://ajaxdump.com/wp-content/uploads/2009/08/MooTools_SqueezeBox-Expandable-Lightbox-308x400.gif QT always...

Rereating the blocks content in ie7

Ie7 repeats the blocks content if i write float: left; to that block. Has anyone the same problem? How could I fix that? Any ideas? ...

HTML : PHP : Javascript - read & display a word document

is it possible to READ a Microsoft Word documents data\contents and display them in a web page... if yes then how AND how to display the documents particular page display a particular table in the document display a particular area or content in the document... p.s please remember READ the data and display them in webpage.. not em...