html

HTML Tidy, Don't move those comments!

I was working with html-tidy and a couple of my comments were moved from the head to the root of the document. Is there anyway to avoid this behavior? (I'm trying to turn some really really bad markup into xhtml complaint code) Oh and additionally it uses an in-house developed semi-server-side scripting language that uses comments to pl...

IE6 layout issue - absolute positioning

The following HTML looks as required in Firefox 2 & 3 and IE7. The Left button is on the left, the Right button is on the right, and the text in the middle is...in the middle! However on IE6 the Left button is misaligned - it appears center-aligned. Can anyone suggest why?? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...

Internet Explorer 6 aborts page request when javascript executes

The scenario is this. A web page contains: some DIVs whose visibility can be toggled with a javascript (fired from an hyperlink) a Submit button, whose response takes about 5 seconds The hyperlink code is <a href="javascript:void null;" onclick="MyFunction()">foo</a> The User: Presses Submit. While he is waiting for the respons...

How to get multiple separate HTML tables to all be the same width as the widest table

Problem: I have HTML markup to deal with that consists of multiple tables nested inside another table. I would like the "inner tables" to all be the same width. I would also like all of the "inner tables" to be no wider than the width of the widest "inner table" in its natural state. I do not want to simply set the width of all the tabl...

Change tab stop size in rendered HTML using Qt's QLabel class

I'm rendering some HTML in a QT QLabel. The HTML looks like this: <pre>foo\tbar</pre> (note that I've put "\t" where there is a tab chracter in the code). This renders fine, but the tab character appears to be rendered as eight spaces, whereas I want it to be redered as 4. How can I change this without having to change the source HT...

html table span entire width?

<table border="1" width="100%" ID="Table2"> <tr> <td>100</td> </tr> </table> This code still leaves and "inch" of space on both sides of the table. Trying to get the table to span the entire width of the page. Thanks. ...

Run JQuery in the context of another frame

Hi, The client I am working with has a frameset like so... <frameset rows="100,*, 0"> <frame name="theFrame" id="theFrame" src="blah.html" > <frame name="theSecondFrame" id="theSecondFrame" src="foo.html" > <frame name="importantFrame" id="importantFrame" src="myFrame.html" > </frameset> When a certain action takes place I need...

server-side includes and character encoding

Hi, I created this static website in which each page has the following structure: Common stuff like header, menu, etc. Page specific stuff in main content div Footer In the website linked above all the common stuff was duplicated in each page. In order to improve the maintainability I refactored the pages to use server-side includes...

What are the advantages of using an imageless button?

The discussion on this answer to the question "How can I use Google's new imageless button?" Has prompted this question. Google seems to think that going imageless is good for some reason, but from the comments cited, I fail to see the advantage. Is it worth it to send dozens of lines of HTML and who knows how much CSS to render these...

WYSIWYG editor vs Hand Code

What are the pros and cons of using a WYSIWYG editor for web page development vs hand coding? With the exception of just not knowing how to create something by hand coding is there any reasons to use WYSIWYG? ...

Getting contents of iframe

I'm trying to get the contents of an <iframe> from another page. The other page is a different website; I'm logged into that website and I get its contents and store it in the <iframe>. How do I get the contents of that <iframe> into the current window ? ...

Change Image Source using jQuery

I have a few images and their rollover images. Using jQuery, I want to show/hide the rollover image when the onmousemove/onmouseout event happen. All my images name follow the same pattern, like this: Original Image: Image.gif Rollover Image: Imageover.gif I want to insert and remove the "over" portion of image source in the...

dynamically generate textboxes using JavaScript

Hi, I want generate textboxes dynamically according to user input. If user enter the integer value in the textbox, if he/she enter 5 i want generate 5 textboxes. This code is working in Firefox but not working in IE and Netscape; please help me how to do this or point out any other mistake in this code to me. Also, the technology we are...

jquery change element type from hidden to input

I've got an input which it's type is set to hidden, I need to change it's type to text. Can't seem to figure this out or if it's possible with jQuery ...

problems once uploaded to server

This all works fine in MAMP but i've uploaded and now the problems start. heres an image of the code for the link and a grab of the result First image Second image any ideas? ...

What tools exist to debug css?

I am tearing my hair out over this one. What tools do people use to debug formatting issues with css? I have some relatively simple formatting for navigation using css which looks like this: /* sub navigation */ .sidenav { float: right; width: 218px; } .sidenav h1 { background: #BCB39F url(img/sidenavh1.gif) repeat-x; ...

How can I create a draggable table in jquery?

Hi, I have a table whose columns indicate a property of data items. Each item is then placed into its appropriate column, meaning some columns might be empty, and certainly the columns do not all contain the same number of elements (or rather, the last n elements in each column are empty, apart from the column that has the most elements...

Determine which element submitted a form from within onsubmit

Is there a way to determine which element submitted a form from within an onsubmit handler? Trying to write a generic handler that knows which element was clicked. For example, given this form: <form onsubmit="onSubmitHandler"> <input type="submit" name="submit1" /> <input type="submit" name="submit2" /> </form> How can I dete...

Multiple line code example in Javadoc comment

I have a small code example I want to include in the Javadoc comment for a method. /** * -- ex: looping through List of Map objects -- * <code> * for (int i = 0; i < list.size(); i++) { * Map map = (Map)list.get(i); * System.out.println(map.get("wordID")); * System.out.println(map.get("word")); * } * </code> * ...

HTML JS Layers

Hi, i want to know how gmail implements its add link to mail function - is it a div which changing it's display? is it another layer? is it something else? Thanks in advance, oz radiano. ...