html

Fixing a row and column excel style in asp.net

Is there a way to fix a column or row so when the user scrolls down or right, the first is always shown? I'd need to replicate this excel feature in asp.net and am using a ListView control. Is it at least doable in html? I'm open to any suggestion to accomplish this ...

Changing the look of form buttons

With this little bit of CSS, my form buttons now look flattened (2D) and I quite like the look: input { border: 1px solid #999; } However, for file fields (select file to upload), the button is still 3D. And then the border goes all around that button and the text next to it. I tried fixing this problem by renaming input to .input,...

iphone keypad 'go' won't work jquery submit

Hello, I have a form on a page that has a submit button. If I hit the submit button it posts a jquery POST to another page and logs a user in. Works fine if I use the submit button on the page. If I click 'Go' on the numeric keypad it just refreshes the page. I assume this is because he form is like this (using iWebkit)... <span class...

Overriding stylesheets

I have a link, where I want to change the color of the text away from the color that I set for hyperlinks. My code is: <span class="button"><%= link_to "Create new scenario", :action => "create" %></span> And my CSS is: a:link { color:rgb(50%, 15%, 5%); text-decoration:none; } .button { -moz-border-radius-bottomleft:6px; ...

How to get the html List value through Javascript?

I am trying to get values from html list <li>. <ul> <li><a>Main Menu</a> <ul class="leftbutton" > <li value="List1"><a>Sampe 1</a></li> <li value="List2"><a>Sample 2</a></li> <li value="List3"><a>Sample 3</a></li> <li value="List4"><a>Sample 4</a></li> <li value="List5"><a>Sample 5</a></li> <...

Organizing lists in HTML/CSS

I have a list and I need two sections in each item. I also need the first section to be of fixed width. How should I code it? I've tried using definition lists: <dl> <dt style="width: 2em;">foo</dt><dd>bar</dd> ... </dl> ... and user lists with span: <ul> <li><span style="width: 2em;">foo<span>bar</li> ...

Detect if image is loaded on page.

My question is not like this one: Browser-independent way to detect when image has been loaded I have advertisements on my site for which I get paid per impression, now recently I have seen a dramatic drop in the number of impressions that each ad has been getting however I have been getting more average hits/month. Is it possible for ...

properly disabling the submit button

this is the code that I use to disable the button $("#btnSubmit").attr('disabled', 'disabled') $("#btnSubmit").disabled = true; and this is my submit button <input id="btnSubmit" class="grayButtonBlueText" type="submit" value="Submit" /> the button although looks disabled, you can still click on it.. This is...

How to get the selected label from a html <select> ?

HTML Javascript question to get the selected value of a input-select I can use <select id="gender" name="gender" class="style12"> <option selected="selected">ALL</option> <option>Male Only</option> <option>Female Only</option> </select> document.getElementById('gender').value is there any easy way for me to get the sele...

How to make text look the same in IE and Mozilla?

So, there are 2 issues here: why does it look different (on IE it is bolder, more anti-aliased) how do I make the Mozilla rendering look like the IE one and what impact does this solution have (I am looking for minimal changes, so solutions such as - flash, silverlight or using images are out of the question) ...

How do I trigger a Javascript function AFTER the page loads?

** EDIT ** I'm afraid I wasn't in the right direction - the problem isn't what I asked about. the Javascript works as it should, it's the PHP that doesn't show what I want it to on the first "run" - and I'm stil not sure why. Sorry for somewhat wasting your time... ** I have a form that might or might not already contain data in its f...

strange border spacing in html/css

I'm trying to create a horizontal menu with a thick border bar that shows over the hovered item. However, for some reason there's a small gap at the right end of the bar in Firefox and Chrome. Strangely, IE displays it without the gap. Firebug doesn't show any reason for this gap. I tried using simple divs and still it appears. I've dis...

How can I write to XML via Java and display it via HTML?

How can we insert a record into an XML file using Java? How can we display one record from this XML file using HTML? ...

Links css underline

I have the following style for my footers in my css file: #footer { text-align: center; font-size: .7em; color:#000000; } This is the html for the footer part: <div id="footer"> <br> //google ad <br> <br> <A HREF="http://www.site1.com"&gt;Blog&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A HREF="http://...

Is there a validating HTML parser implemented in Java?

I need to parse HTML 4 in Java. Ideally I'd like an implementation that is SAX compatible. I'm aware that there are numerous HTML parsers in for Java, however, they all seem to perform 'tidying'. In other words, they will correct badly formed HTML. I don't want this. My requirements are: No tidying. If the input document is invalid H...

How to parse malformed HTML in python

I need to browse the DOM tree of a parsed HTML document. I'm using uTidyLib before parsing the string with lxml a = tidy.parseString(html_code, options) dom = etree.fromstring(str(a)) sometimes I get an error, it seems that tidylib is not able to repair malformed html. how can I parse every HTML file without getting an error (parsing...

CSS positioning images and text

I'm trying to get some text between two images. The images are positioned correctly, but there are some weird design issues that are cropping up. Current Page (web page) Design Plan (jpg) What I'm trying to figure out is this: Background must stop before the right edge of the right image (the girl) Background must extend the height...

Full-sized columns with floated content?

Hello folks. My site is up here: Green McP I'm trying to put my old WP powered site into Expression Engine (just for giggles), and I'm stuck with my project layout: I want a grid of my projects, each a div with a set height/width. If I don't float them left, they just stack vertically. If I do float them left, they arrange themselves a...

mysql not updating from php form

I have a very simple PHP form, which shows a checkbox, and will store if it is checked or not in a database. This works for the initial inserting, but not for updating. I have tested cases where $saleid equals $pk and it does not enter the if branch to update...why? <?php error_reporting(E_ALL); if (isset($_GET["cmd"])) $cmd = $_GET[...

How do I set Character Encoding to UTF-8 for default.html?

Hi all, I spent the last few hours getting my website to validate HTML 4.01 Strict and I actually have succeeded in that but there is still one warning which I can't get rid of. The warning is: Character Encoding mismatch! The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the ...