html

Float Creates Overlapping Divs

Hi Everyone: I have two divs (one inside of the other) and am running into a bit of a problem when I float the one inside to "left". The problem is that the outer div doesn't expand its height to fit the text inside of the inner div. Since this is probably pretty confusing, I'll try to explain it with some code. HTML: <body> <div id...

Two Step View Pattern: XSLT vs. object graph

I intend to implement Martin Fowler's Two-Step View Pattern for rendering HTML in a web application I'm writing. The general idea is that rather than having the application output raw HTML, it outputs an custom intermediary XML which is then converted to HTML/CSS. This has a number of advantages including reduced code duplication and a ...

position a div to the right of a centered div?

I have a which is in the center of my page, but now i need to add a div which will be to the right of the center box, i am sure you can do this with CSS but can't think of a solution. So for example div#container{margin-left: auto;margin-right: auto;width: 396px;display:block;margin-top: 110px;} the div i need would be the same as tha...

User authentication in HTML, with no PHP, ASP or JSP

Can I create user accounts automatically using HTML, VBScript or JavaScript? By 'account' I mean being able to limit access to pages to authorised users only. ...

Generate html for a WSDL to test the api?

Is there any tool that can read a WSDL file and based on the input message definition, generate a html page which can be used to specify the inputs and invoke the apis. I do not have many complex types in the input message. I need this to build some test UI for a service. If I cant convert whole WSDL, an XSD parser which creates the ht...

Stop table from going longer in HTML

I have the following tables. I wanted it so when I make more boxes table. If there is no more room on in the table go below the other ones and to keep making the table long. <table width="417" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="413" height="179"> <table width="141" border="1" align="left" cellpadding...

Are absolute href's OK to use on production sites?

Because of some apache rewrite rules in a project I'm working on, it's convenient to make href's and links in general absolute, because that assures that the browser will find the file behind that link, no matter what the URL is. Example: <img src="http://localhost/project/gfx/abc.jpg"&gt;&lt;/img&gt; instead of <img src="gfx/abc...

Download any filetype from a webserver

I need a link in an HTML page that could use any JavaScript to "start downloading" a normal webpage / file that is on my webserver, either filetypes like PDF / ZIP or simply the outputs of PHP / ASP / HTML. I know this is possible with some server-side download script that returns a *mime_content_type* so the browser handles it based on...

JQuery append closing div tag only

Hello, I am building a "universal wrapper" for several different external sites that would build a nav and footer with jquery and xml. My problem: Since the script will be used on multiple sites that were built by other people, I need to build a container out just inside the opening and closing body tags. I have been able to target t...

How Semantic Can We Get With HTML 5?

This is a community wiki that asks the question, "Just how semantic can our HTML markup get thanks to HTML 5?" Below You can find the source code of a sample HTML 5 page. The object is to make a very usable, accessible, style-able webpage using as few classes and IDs as possible. Also, when do you plan to start implementing HTML 5? Are ...

Change Input Type

Hi Everyone: I am working on a fairly dynamic site, and I want the user to be able to choose what they want to input. The input choices are the various types of input (text, password, etc.) Is there some style/way to create this? I was thinking that they choose from a drop down menu and then Javascript takes care of the rest. But I ...

Javascript problems with IE, and Prototype 1.6.0.3

The code below works perfectly fine with Firefox, however, I am having problems with IE 8... and 7... instead of populating the select's with the options returned from my php script (like it does in FireFox) it is doing nothing in IE. I have narrowed the problem down to $('city').innerHTML -- works in Firefox not IE. Any ideas? This...

How to make a floated <div> use its maximum width

I have a simple layout with content floated-left and a fixed-positioned menu on the right. It works well for any of my pages that have enough content in the 'content' div so that the div grows to it's maximum width. However I have a couple pages that don't have enough text for the div to grow to its maximum size. The HTML: <div id="f...

Call program from within a browser without using a webserver

Hi, Is there a way to call a program (Python script) from a local HTML page? I have a YUI-colorpicker on that page and need to send its value to a microcontroller via rs232. (There is other stuff than the picker, so I can't code an application instead of an HTML page.) Later, this will migrate to a server, but I need a fast and easy so...

Create multiple Upload File dynamically

I was wondering if anyone knew the best way to dynamically create an upload form? Here's what I'm trying to achieve: The code shown below allows one upload, I want to have a button that when pressed, should add another form for file upload. So, if I want to upload - let's say 7 files, I want to press the button 7 times to create those ...

access html element using xpath

Hi, can you use xpath to access an html element? It must run in interenet explorer, and i am writing it in javascript I am trying to get the value of a specific input box in a specific row, but i don't want to have to iterate through all the cells to get the right one Any help would be appreciated Emma ...

Access and Display Images/ Prompt File Downloads that are located outside the application folder

How to access and display the images that are located outside the application folder? Let's say I have a file directory that stores all the images and other file types, and this file directory is located on a different drive then my application folder. For certain file types ( such as .pdf, .doc, I want to prompt the user to download tho...

Creating a div whose size is relative to a fixed width div and containing area?

I have a containing div (contentBody) that is N% wide. Within that div I have two other divs, contentLeft and contentRight. contentLeft is always 205px. I want contentRight to automatically fill the remaining space in contentBody. How can I achieve this? #div contentLeft{ width:205px; float:left; } #div contentRight{ width:<**1...

What's the size limit for a field in a form post?

The title is self-explanatory, if you're using a form field to post text of arbitrary size, what limits are considered relevant? Memory limits, browser limits, application server limits? Update: A form method=post is the case. The form field is being used to submit a file (its contents) to the server. The file is generated on the clien...

Need a unordered list without any bullets

Hi friends, I have created a unordered list, that is much useful for me to append and remove list item using jquery.. I feel the bullets in the unordered list is disturbing much, so i want to remove it. How its possible to have a list with out bullet. Please help me, Thanks, Praveen J ...