html

Divs sharing the total size (not percentage)

Is there away to connect the sizes of divs as I did with the frames below? I'm talking about the * in rows="*, 16", that takes the remaining space. <frameset frameborder="0" rows="70, *, 30"> <frame name="toolbar" src="toolbar.html" marginwidth="8px" marginheight="8px" /> <frameset id="lineNumFrameset" frameborder="0" cols="50, ...

[C#] How to output contents of tags <div> in listbox

On the form is textbox in which the site address is entered(http://localhost.com/index.html). I want that in listbox contents of tags were output. How it can be made? ...

Simple mechanism to transform dataobjects into HTML in ASP.Net.

Hello. I am looking for a mechanism to transform dataobjects into HTML. The elements in the dataobject are of both, simple and complex types. I have tried playing with HtmlTextWriter for rendering but got stuck with complex types. Mine is an ASP.Net website project. I have to avoid using server side controls (and therefore do away wit...

How do I position a Silverlight Control

I guess this is going to sound like a pretty basic question to any web developers out there, but HTML and CSS are not really my thing and I'm on a really steep learning curve, so please cut me a little slack. I have a silverlight control the I've developed with some animated graphics that I need to position at the bottom right hand corn...

Php automatic page reload when choosing a value from HTML's <select>

PLEASE NO JS!!! <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> </select> I simply want that whenever someone selects "saab", the page would reload. It's kinda like having the whole <select> inside a form (which is the ultimate solution), but I need no "...

"Scroll" to the very right of a long text input

I have an image selector that allows to choose an image from a gallery, then fills in the URL into a <input type="text"> field. The URLs can be awfully long, and always seeing the first half of the URL in the text field has very little informational value. Does somebody know a way to "scroll" to the very right of the text field so that ...

What is the state of the art in HTML content extraction?

There's a lot of scholarly work on HTML content extraction, e.g., Gupta & Kaiser (2005) Extracting Content from Accessible Web Pages, and some signs of interest here, e.g., one, two, and three, but I'm not really clear about how well the practice of the latter reflects the ideas of the former. What is the best practice? Pointers to goo...

Horizontal scrol bar for a div

Hai, I have a div with fixed height and width, lets say i have width:400px; and height:200px; for a div. How to bring the horizontal scroll bar for this div ...

How to avoid duplicate when a user click the "refresh" button of his browser?

For example, I ask this question and click "Post your question" and stay in the current page. Now I may click the "refresh" button of my browser to see new answers. But I find that on my website, if I click the "refresh" button, a duplicated question will be published. How to avoid this problem? I am using PHP. ...

TDs background color not visible in print preview

Hi, I have td like this: <td align="left" bgcolor="#FF0000"> In browsers, there is a red background color applied to it but when i see print preview of this, there is no red color in the background. also the font color is white but it also gets converted to white when print previewing it. Anyone knows what can be the reason? Thanks...

How to save information in inputs inside a form so it doesn't disappear when form is submitted to itself ?

I have a picture upload inside a form... The file is a php file btw... Problem is whenever this form is filled in, and the user clicks to upload the first picture, the form is submitted to itself and all the fields which the user may have filled in will go blank... I know of one way to do it, alot of 'isset' in my php code, but is the...

Multiple Submit Buttons -- Specifying default button

I have a form that has three submit buttons as follows: <input type="submit" name="COMMAND" value="&lsaquo; Prev"> <input type="submit" name="COMMAND" value="Save"> <input type="reset" name="NOTHING" value="Reset"> <input type="submit" name="COMMAND" value="Next &rsaquo;"> <input type="button" name="NOTHING" value="Skip &rsaquo;" oncli...

Prevent tidy from adding html tags

I have a class that generates some html (form elements and table elements), but this class returns all the html in one line. So I am trying to use tidy to beutify the code (indent the code, put line breaks, etc), the only problem I am having is that's also generating the tags I don't want. Here is the code: tidy_parse_string( ...

How to strip insignificant whitespace out of HTML

Hi, I have to compare different versions of HTML pages for formatting and text changes. Unfortunately the guy/company who creates them uses some kind of HTML editor that re-wraps all the HTML every time (and adds tons of whitespace), which makes it hard to diff them. So I am looking for a tool (preferrably a Java library) that can refor...

Date Picker with Simple Javascript or Jquery

Hai, I have a form with multiple date fields, Can anyone suggest me simple date picker in jquery or in simple javascript? Note: My form contains multiple date fields ...

PHP library for converting html to image?

Is there a free (or commercial) PHP library which would help me convert a piece of HTML to image? I googled it but haven't found anything. thanks in adv ...

Split Div Into 2 Columns Using CSS

Hi Everyone: I have been attempting to split a div into two columns using CSS, but I have not managed to get it working yet. My basic structure is as follows: <div id="content"> <div id="left"> <div id="object1"></div> <div id="object2"></div> </div> <div id="right"> <div id="object3"></div> <div id="object4...

Another "is ASP.NET MVC right for me?" question

Here's my particular situation... I have a decent amount of experience with webforms, and I must say, a lot of it has been pretty frustrating. I like that there are lots of built-in controls, but then I discover that they don't quite do what I want, out of the box. I end up rolling my own controls (that inherit from the built-in control...

'Remember' form drop list value when submitting to SELF ?

I know how to 'remember' some form values whenever submitting the form to itself, in this case because of a picture upload function which requires the form to be submitted to itself. I simply want it so that if the user has filled out all fields and then uploads an image, the form doesn't get resetted (cleared). I have solved this in re...

Html.BeginForm() with an absolute URL?

I need to have the POST action be to an absolute URL (e.g., http://www.cnn.com). Is there a way to use Html.BeginForm() helper and pass it the url? ...