html

enter does not work in textarea in Internet Explorer 8.....

Hi, When I press enter in a textarea which has whitespace attribute is set to nowrap through css, it is ineffective. No new line is created. Instread a simple whitespace appears. This is only true in IE8. I Have tried current version of Opera,Chrome and Firefox and I have not encountered such problems. Do you have some solution for this...

.NET Html Parser

This must be the 20th duplicate or so, here is one: Looking for C# HTML parser I'm looking for an open source, fast, w3c-equivalent html/xhtml parser for C# without native dlls. Thanks. ...

Javascript and shrinking a div section

Hi I have a div section on my .ASPX form. The section just contains a load of links (standard document.getElementById('Side1').style.display = 'none'; This worked great but was a bit abrupt for what I wanted, so I wrote the little routine below (with a little help from the internet) but although the DIV dection shrinks, and the cont...

Simple page submit - vs - Ajax loader

There are many ways to handle forms. one is to simply submit the form and the get variables on php and another one that i'm thinking of, is to send data with ajax and during this process we can show a dialog and show the information about processing the data with a progress bar. despite the fact that ajax is faster than the standard tec...

Invoking :hover pseudo-class by transferring events via JavaScript

Here is the scenario: You have two images and they are stacked on one another. The highest-order z-indexed image is responsible for handling click events (think Google's Map API) and is transparent, while the image below is responsible for a visual representation. Here is a pseudo-HTML/CSS representation: div.visual-container { wi...

jcarousel slideshow problems

This question has been discontinued. ...

JavaScript error - please help

Using IE 6/7/8, I receive a JavaScript error code. The line of code is: document.getElementById('all').style.backgroundColor = color; The IE 6/7/8 is: Invalid property value Thanks in advance! ...

Equivalent of LaTeX's \label and \ref in HTML.

I have an FAQ in HTML (example) in which the questions refer to each other a lot. That means whenever we insert/delete/rearrange the questions, the numbering changes. LaTeX solves this very elegantly with \label and \ref -- you give items simple tags and LaTeX worries about converting to numbers in the final document. How do people de...

PHP: Formatting irregular CSV files into HTML tables

My client receives a set of CSV text files periodically, where the elements in each row follow a consistent order and format, but the commas that separate them are inconsistent. Sometimes one comma will separate two elements and other times it will be two or four commas, etc ... The PHP application I am writing attempts to do the follo...

Conceptual: bookmarklet to create a header form and remove it again after submit

Hi So I've been pondering this for some time and trying out various strategies. Basically I'm trying to create a bookmarklet that, when clicked, pops up a header on whatever page you happen to be on. In this header, there is a small form, the contents of which are submitted to a server. Once this is submitted, the header should disappea...

jquery IE Fadein and Fadeout Opacity

Hi Guys, I am getting this weird problem in IE with a CSS Overlay I am applying for a lightbox. Basically, I use fadein and fadeout for jquery - the problem is that everything works fine EXCEPT in IE. In IE - I get no fadein - rather it just goes straight to opacity background. On fadeout - it removes the "opacity" for < 1 sec second ...

text-align:center and short floated divs

I have an html file which looks something like this: <div style="float:right"> A line of text, floating to the right </div> <div style="text-align:center"> And here, several lines of<br /> text which I want to center. </div> Which renders (at least in Firefox) like this: And here, several lines of A line of text, floating ...

HTML EMail Template

Anybody knows where I can find nice HTML Templates to send email reports? Edit : Moved here http://doctype.com/html-email-template ...

does fltk toolkit support something like resource files?

does someone knows how can i embed html files into fltk gui toolkit not loading them but rather embed them like QT / WIN and so .. ...

Why is it a bad practice to return generated HTML instead of JSON? Or is it?

It is quite easy to load HTML content from your custom URLs/Web services using JQuery or any other similar framework. I've used this approach many times and till now and found the performance satisfactory. But all the books, all the experts are trying to get me to use JSON instead of generated HTML. How's it much more superior than HTML...

jQuery: submit disabled fields

I know the defined behavior for web forms is to not submit disabled fields... but that's not the definition I want. I want to use ajax to post the form and I want it to get all fields, even if they are disabled. I don't want to build a workaround where I make the field "look disabled"... or have to hack it where I enable the fields -> ...

HTML CSS and block level elements aligning at top of a block container

So i have this code <html> <head> <style type="text/css"> div.one { border:1px solid black; text-align:center; padding:.2em; height:300px; } div.one div {display:inline-block; height:100%;} </style> </head> <body> <div class="one"> <div style="border:1px solid red; width:40%"> <h3>1st div</h3> <p>line #1</p> ...

Facebook-like anchor scroll

Facebook has a nice scroll effect which I would like to replicate with jQuery. When you load a page it starts at the top then scrolls to the selected anchor. I've tried doing this (page.html#anchor) and using the scrolling plugin for jQuery however it just goes straight to that anchor without using the scroll effect. So can I delay the...

Designing a website for both javascript script support and not support

Okay i know that it's important for your website to work fine with javascript disabled. In my opinion one way to start thinking about how to design such websites is to detect javascript at the homepage and if it's not enabled redirect to another version of website that does not javascript code and works with pure html (like gmail) Anot...

CSS - border-radius help

Hi I'm using the following CSS to achieve a rounded border on my DIV border: 1px solid #999; border-radius: 6px; -ms-border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; But in IE 6/7/8, even though I'm including the IE specific radius, is not displaying a rounded DIV border (it's displays a square border). A...