html

Fixed-Size Box With Scrollbars on HTML Page?

I'm sure there's a simple answer to this... or not: I have a site that is a fixed height. I wish to have another box inside the site with scrollable HTML. One way to do this is with an iFrame, but I'd like to specify the HTML inline (i.e., not use an external file). Is there any other HTML tag (or similar) that will allow me to do this?...

WPF, Frame Control, HTML DOM Document access

Ive used WindowsHost to host a WebBrowser control, and that has allowed me to access the WebBrowsers Document/DOM directly, t read HTML content via mouse clicks on HTML document elements and also to invokes on submit forms. I never found a way even in Net 3.5 to do this when I was searching at the time. Ive found this post http://rhizohm...

Can I specify maxlength in css?

Can I replace the maxlength attribute with something in CSS? <input type='text' id="phone_extension" maxlength="4" /> ...

Close a bookmarklet after submitting form

This is related to question "http://stackoverflow.com/questions/1360618/bookmarklet-behind-elements". I want to either self close the iframe after form submission or if not possible, add a close button with the iframe to close it. my bookmarklet at the moment is javascript:(function(){var iFrame=document.createElement('IFRAME');iFram...

Aligning decimal points in HTML

I have a table containing decimal numbers in one column. I'm looking to align them in a manner similar to a word processor's "decimal tab" feature, so that all the points sit on a vertical line. I have two possible solutions at the moment but I'm hoping for something better... Solution 1: Split the numbers within the HTML, e.g. <td><...

Setting class on HR breaks TD colspan

Hi, I have a nested table arrangement for displaying data. I want the nested table to be in a TD that spans all the parent table columns. So I have colspan set. However I also want the user to be able to click on the parent to hide/unhide the child data. This works fine in IE8, but in FireFox and Chrome the nested table is ignoring the ...

Tomcat base URL redirection

Using tomcat, how do I get a request for http://www.mydomain.com to redirect to http://www.mydomain.com/somethingelse/index.jsp ? i haven't even managed to get an index.html to display from http://mydomain.com. ...

Best tool for message view?

I'm trying to set up a messages view with asp.net mvc that will display inbox, etc. What would be a nice tool to utilize for this implementation? ...

Is there a simple java program that can extract URL & title of html files

Hi I am looking for a simple URL & title extractor from html files in Java. I am trying to parse bookmarks.html (IE,Firefox) etc and add the title & url to a db. I need to do this in java (no 3rd party libraries allowed) so proably I have to use sax/dom/regex. ...

How to add a part of an image to a Button in HTML

Hi, I've a big image and I'd like to add a part of that image to a button. I've a css class that defines the left and top where the little part of the whole image I want is located. Let's say .image { left: -20; top: -200px; } I've defined another class that describes the place where I want to put this part of the image. .image1...

Firebug giving me a syntax error in OnClick function

Here's my HTML: <input type='checkbox' name='PatientReady1' value='Yes' checked onClick="PatientReady ("PatientReady1","111","PatientReady")"> And my javascript: function PatientReady(element, TriageNo, Field){ debugger; if (element.checked == 1){ new Ajax.Request ( "PatientReady.asp", { method: 'post', para...

JS: Displaying html w/ variables via document.write.

Hi all, I just started learning JS the other day and am (of course) having some difficulty. I usually grasp onto things quickly but I can't for the life of my find a solution to this. I'd like to understand why this is happening. My objective is to use 3 prompt boxes, all which come one after another, to print out a piece of html code,...

jQuery-like interface for PHP?

I was curious as to whether or not there exists a jQuery-style interface/library for PHP for handling HTML/XML files -- specifically using jQuery style selectors. I'd like to do things like this (all hypothetical): foreach (j("div > p > a") as anchor) { // ... } print j("#some_id")->html(); print j("a")->eq(0)->attr("name"); ...

Are large html tables slow?

I've recently been developing an application using tables with a large number (hundreds) of rows. The rows contain tabular data and each row contains two drop down lists as well as link which displays hidden table rows directly below it. I am currently experiencing lengthy delays when attempting to select a value from the drop down, an...

The best way to render list of items from database?

What would be the best way to render list of many items (like comments that follow articles or blogs) on the web page from a database? I've noticed in many sites 3 options: Table list of <ul> (ul under ul under ul...) list of <divs> (div under under div...) And what asp.net control should i use? Datalist, repeater? ...

Tools and Techniques for Reviewing a Website's Content and Structure

Can the stackoverflow community recommend tools, techniques, and processes for checking the structure and content of a moderately large, collaboratively edited, evolving website? This process is time consuming to do manually, and it would be desirable to automate this to the fullest extent possible via software. I am interested in check...

uncheck a checkbox when checking another

<?php session_start(); if (count($_POST) > 0) { $_SESSION['link'] = $_POST['link']; } ?> <form method="post"> Gmail: <input type="checkbox" name="link" value="gmail" id="gmail" <?php if ($_SESSION['link'] == 'gmail') echo "checked"; ?>> Hotmail: <input type="checkbox" name="link" value="hotmail" id="hotmail" <?php if ($...

how to check when field enter/return has been pressed on?

I have multiple fields, typically enter will be pressed on one of the two main ones. I want to know which field enter has been pressed on, how do i do this? (i dont know much JS) Possible Duplicates http://stackoverflow.com/questions/756786/javascript-capture-key http://stackoverflow.com/questions/1235716/disable-keyboard-e...

htmlentities in PHP but preserving html tags

Hi there, I want to convert all texts in a string into html entities but preserving the HTML tags, for example this: <p><font style="color:#FF0000">Camión español</font></p> should be translated into this: <p><font style="color:#FF0000">Cami&oacute;n espa&ntilde;ol</font></p> any ideas? ...

HTML parsing error

But I don't know what's causing it on my page at http://www.jazmyn.com/media.html I keep getting this message: HTML Parsing Error: Unable to modify the parent container element before ...