html

How do you add a link that will add an event to your iPhone calendar from safari?

This seems like it should be simple but after a couple hours of googling I have not figured it out. I know I can add iCal links using ICS files, but this does not work on the iPhone. BTW, when I say iPhone I would like it to work on the touch also. Anyone have any luck with this? ...

Make <h1> tag the same maximum width regardless of capitalization of text within

I'm trying to display a series of titles varying from 60 characters to 160 or so and the capitalization varies, some of it all caps, some half caps. When it's mostly lowercase the whole 160 characters of text fits in the width I want, but when it starts getting more caps (they must be wider), it starts over flowing. Is there a way to u...

Where can I find some good information about how the new canvas HTML element works?

I keep reading about how great this new Canvas element for HTML5 is and I see amazing demos done with just javascript and no flash. Where can I find some good information on how to some of these things myself? ...

FCKeditor vs TinyMCE and XHTML Compliance

I'm after (short) opinions on FCKeditor vs TinyMCE and whether either or both are XHTML compliant. In the interest of keeping with the spirit of stackoverflow, if someone has already made your point, just upvote them. Thanks in advance. ...

HTML Data exceeds field length after being hex-sanitized

The problem is you can't really tell the user how many characters are allowed in the field, because the escaped value, obviously, has more characters than the unescaped one. I see a few solutions, but none looks very good: One whitelist for each field (too much work and doesn't quite solve the problem) One blacklist for each field (sa...

Do you validate your websites?

I recently read a great resource by the Opera developers, entitled, "Introduction to The Web Standards Curriculum". I thought the articles put forth some good reasons why you should look at validating your website, but I realize that not everyone validates their sites, including most of the big names (Google for instance). Do you validat...

How to get the charset from an HTML page

Hi all, I'm trying to get the charset attribute in any HTML meta tag. (ie.< meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >) Is there any way to do that in C++ under linux. I was using HTML tidy as a parser but I can't get that attribute to return me anything different from us-ascii (even if the encoding is utf-8...

Can I save a record in a Windows Gadget in a file or other storage (database, etc.)?

I'm planning to create a simple gadget to create a TO DO list application. This is just for practice and to explore Windows Gadget. How can I store the values in the database? As much as possible, I don't want to set up a local http handler file to be a means to store value to file or database. Note: I tag this with html and javascript...

HTML: POST for images?

Hello, I am working on a web-application in which dynamically-created images are used to display information. This data is currently sent to the images using a GET query-string but with more complex images and data I am worried about running into problems with the url character limit. I could simply pass the record ID to the image and h...

How to show fullscreen popup window in javascript?

Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This: window.open(src, fullscreen="yes") apparently only worked for old version of IE. ...

Is there a simple JavaScript slider?

I need to create a custom volume slider for a WMP object. The current slider is complicated to modify, and use, is there a simple way to generate a slider on an HTML page that can have it's value passed to a javascript function? ...

How should I express fractions like 15/16ths in HTML?

I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions? ...

Positioning flash content using CSS

I have a generated HTML page with flash content in it. I am trying to reposition the flash content and make it "absolute". I have tried to wrap the object tags with a div tag, but to no avail. Can anyone tell me how to do this? Removing the generated positioning attributes does not work. See relevant code below (it is not very neat, bu...

HTML newspaper columns

I'm trying to create newspaper style columns using a block of text. I would like the text to be evenly spread out across 2 columns which could react to change of length in the text. Is this possible using just HTML/CSS, if not could javascript be used? Thanks ...

.Net WebBrowser.DocumentText Isn't Changing!

In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I was returning. Now I set it up to grab all of the information on the client, wit...

How can I convert HTML to Textile?

I'm scraping a static html site and moving the content into a database-backed CMS. I'd like to use Textile in the CMS. Is there a tool out there that converts HTML into Textile, so I can scrape the existing site, convert the HTML to Textile, and insert that data into the database? ...

Disable anchors in Chrome/WebKit/Safari

Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not effect the href and onclick attributes. Do you have any su...

What is the preferred way to do a CSS rollover?

When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? ...

Opening a page using actionscript in a custom frame

Is it possible to open an html page using navigateToURL and specifying a named frame in your html document. For instance, if you have an iframe on the page called "Steven", can you call navigateToURL("someURL","Steven"); instead of something like navigateToURL("someURL","_self"); I have tried this and it opens the URL in a new wind...

Should I sanitize HTML markup for a hosted CMS?

I am looking at starting a hosted CMS-like service for customers. As it would, it would require the customer to input text which would be served up to anyone that comes to visit their site. I am planning on using Markdown, possibly in combination with WMD (the live markdown preview that SO uses) for the big blocks of text. Now, should ...