html

YUI autocomplete misalignment problem

I am using the autocomplete YUI feature. However, as you can see I am having trouble aligning the suggestion drop down with the text input when I put a label in front of the text input. I am following the example here exactly except for this snippet of code where I simply replace the H3 with a label element in the form: <div id="myAu...

how to skip well-formedness check XML

Hi, I am using Xpath (and java) to extract information from some websites. However my problem is that since some of these websites are not well-formed, I cannot process them. Is there any way to avoid well-formedness check or alternatively specify tags that should'nt be checked for well-formedness? Thanks Rp ...

minimal web design

I am interested in minimal design, from design (ie. minimalist design) and performance view points. I am trying out "zero images" approach at the moment. (obviously no flash/silverlight/etc) pure html+css(+js) Has anyone tried it, seen it, thought about it. To give an example, craigslist would be minimalist design. It has 0 images, 1 ...

An online resource to back an argument for cleaner design

I am working in the web dept of a large legal firm, and among other things am responsible for maintaining a professional look for all our email communications (over 600 pieces per year). Right now I am in a rut. Using a lot of pressure and manipulation, a person in management got to "art direct" a couple of HTML emails working directly ...

How to safely allow embed content?

Hi guys. I run a website (sorta like a social network) that I wrote myself. I allow the members to send comments to each other. In the comment; i take the comment and then call this line before saving it in db.. $com = htmlentities($com); When I want to display it; I call this piece of code.. $com = html_entity_decode($com); This w...

Javascript and only one Checkbox - undefined

for (i = 0; i < document.checks.user.length; i++) //for all check boxes { if (document.checks.user[i].checked == true ) { document.checks.submit(); return 0; } } <body> <form action="" method=POST name="checks" ID="Form2"> I have a bike: <input type="checkbox" name="user" value="Bike" ID="Checkbox1"> <b...

Numeric Dropdown that 'turns into' a textbox when I select 'More'

I need to make a dropdown that has the numbers 0 through 10 in it, plus a "--More--" option at the bottom. If the user selects '--More--' then I want the dropdown to 'turn into' a textbox so they can enter a numeric value. I want the field name posted back to have the same form value regardless of which entry method was used. Preferably...

HTML Menu help

I have a page design with a menu as follows: Cat1 | Cat2 | Cat 3 | Cat 4 When I hover the word Cat2, The bgcolor of the whole box of Cat2 changes to blue color. Also, whole cell needs to be clickable and linked to other page. I can do that without having the symbol "|" by changing the bgcolor of the table cell and...

HTML Problem: form causing line break before (Rails button_to)

The button_to causes a line break before it in HTML. I have found a workaround which will work, but it's hardly ideal, because then the buttons are NOT real buttons. Is there any other way to avoid the line break before the form? Here's the resulting HTML <a href="/last_page">Back</a> | <form method="post" action="/next_page" class="b...

HTML / CSS autonumber headings?

Is there a way (ideally easy) to make headings and sections autonumber in HTML/CSS? Perhaps a JS library? Or is this something that is hard to do in HTML? I'm looking at an application for a corporate wiki but we want to be able to use heading numbers like we always have in word processors. ...

How to Overwrite the file saved in the Context Directory...

I created two files 1)index.html 2)player.jsp I am using Tomcat Server. In the index.html i created some checkboxes in a form and assigned the values... After clicking submit i forwarded these values to player.jsp... In player.jsp i dynamically generated an xml file named "generate.xml" . This XML file changes according to the user requ...

Needed: Light and free HTML editor with source control support

We're not doing real web development. We get our HTMLs from our designers, and have our web app generate those HTMLs (with some specific content). Simply put, we don't use any major web development infrastructure (ASP, PHP, JSP etc). Having that said, we sometimes do need to edit HTML, JavaScript and CSS files, and I'm tired of using roc...

Expand list with slideToggle

Hi. I have an unordered list like this one: <a href="#" id="myList-toggle">Show the rest</a> <ul id="myList"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> <li>Item 6</li> <li>Item 7</li> <li>Item 8</li> <li>Item 9</li> <li>Item 10</li> </ul> and this jQuery code: var list = $('#myList li:gt(4...

Charset for foreign languages

I'm currently doing some HTML that with urdu, farsi and chinese simplified characters. I'm having problems finding good resources online on what charset to use: <meta http-equiv="Content-Type" content="text/html; charset=???" /> Any suggestions? ...

Using HTML for Listbox items

Hello everyone, I was wondering if there was a way of using HTML for the content of my ASP:Listbox items instead of plain text? The reason I ask is because I'd like to do some extra formatting on each item in the list. Not just font changes, but perhaps icons alongside the text or table rows to divide up each list item. I'm vaguely awa...

pass value to iframe from a window

Hi friends, I need to send a value to a iframe, The iframe is present within the current window. How can i achieve this? I need to do with in javascript of the parent(current) window. ...

How to draw a line between draggable and droppable?

Hi guys, I'm using the exelent JQuery UI to do a "mapping" so the user can "map" persons from one program to persons from other program. using this simple JQuery: $(document).ready(function() { $("div .draggable").draggable({ revert: 'valid', snap: false }); $("div .droppable").droppable({ hoverCla...

Intermixing HTML form and table

For a standard "add item" form page it is desirable to have two submit buttons: an "OK" button and a "cancel" button, where the former POSTs the form to one URL, and the latter GETs some other URL. This obviously means that two separate FORMs are needed, and, if laid out with tables, the markup would go as follows: <form action="add.ht...

JavaScript: Insert ellipsis (...) into HTML tag if content too wide

I have a webpage with an elastic layout that changes it's width if the browser window is resized. In this layout there are headlines (<h2>) that will have a variable length (actually being headlines from blogposts that I don't have control over). Currently - if they are wider than the window - they are broken into two lines. Is there a...

Retrieve the content of an iframe

Hi, I have a window, with an iframe in it. When i clicking a button, then the iframe will load (loaded from a web site). Is it possible to retrieve the content of that iframe? How can I retrieve the content of that page? I can view the source code by left clicking iframes View Source. I need to store the source in a DB. 1. var ifram...