html

Any means of reading third party cookies from "friend" sites?

A recent question made me post this one. I'm working on a set of web pages that have some very simple user login, and store the user id in a cookie. Let's say that due to certain decisions which I'm in no position to overrule, the pages use several alternate domain names. I.e., the login page uses one domain name, and the page that shou...

generated template not rendering correctly

So I have this code in a google app engine template: <select name='voter'> {% for voter in allowed_voters %} <option {% ifequal voter last_voter %}selected="yes" {% endifequal %} value='{{voter}}'>{{voter}}</option> {% endfor %} </select> The page doesn't render with the correct person selected, defaulting instead to the ...

do not display text in div of background-image

I have this div: <div class="inauguration-image"> I do not want this text to display, just here for description </div> Here is the css for it: .inauguration-image { margin-top:5px; margin-left:auto; margin-right:auto; background: url("/images/inauguration_block.png") no-repeat; position:relative; width:760px...

Accessing frames via the DOM in IE

OK, every other browser works fine with the method I have coded so far but for some reason Internet Explorer will not work. I have spent hours of time (more time than actually developing the feature!) on compatibility and am close to giving up! I have a forum and one of its neat features is the WYSIWYG editor. For that, I essentially ha...

Minifying HTML

I've googled around but can't find any HTML minifacation scripts. It occoured to me that maybe there's nothing more to HTML minifacation than removing all unneeded whitespace. Am I missing something or has my Google Fu been lost? ...

change image-border on mouseover

hey there i have a problem, i'm working on a gallery php script and need help, i have a picture, it has a lightgray border around, and if theres a mouseover event, i want the border to turn gray. how can i do that? thanks in advance ...

Graceful degradation of anchor tags with javascript

I currently rely on anchor tags to perform AJAX requests on my web application (using jQuery). For example: <script type="text/javascript"> $(document).ready(function() { $("#test").click(function() { // Perform AJAX call and manipulate the DOM }); }); <a id="test" href="">Click me!</a> </script...

How to hide the SCRIPT html tag?

I am using HTML, and I'd like to hide the SCRIPT tag from the user's view. When the user views the page source, the definitions should not appear. How do I accomplish this? Example <script type="text/javascript" src="My1.js"></script> <script type="text/javascript" src="My2.js"></script> <script type="text/javascript" src="jq...

How can I make a thumbnail <img> show a full size image when clicked?

Normally you have an image tage with the src as the source of the image and the alt as the alternative text: <img src="image1.gif" alt="Image 1" /> Can you have something like is?: <img src="image1.gif" alt="image2.gif" /> So that means the src has an image source and the alt also has an image source. What I want to do is pul...

Best Ways to Get Around CSS Backgrounds Not Printing

It often works out great that the CSS backgrounds don't print, however, sometimes I use them to convey contextual information. What is the best way for getting around CSS backgrounds that don't print but you really want to display. The example, I'm currently working on is a table that displays financial information. Different backgrou...

In CSS, how do I get a left-side fixed-width column with a right-side table that uses the rest of the width?

So I've tried to work with the pure-CSS, never-use-tables-for-layout gospel, I really have. But after an incredible amount of pain and anguish, I'm just about ready to give up. I'm willing to go to some effort to accomplish things in CSS, don't get me wrong. But when it seems like some of the most asininely simple things that can be d...

Is there a good website with lessons to learn HTML?

I am looking for recommendations for a starting website to learn how to write HTML code ...

Meaningful markup of a Domain Object in a Webapp

Hello, I'm looking to represent some domain model objects in a web app I'm writing and I'm looking for best-practices for markup. For example in yaml: --- !ruby/object:User email: [email protected] first: John last: Doe login: jdoe member_since: 2009-01-22 00:54:08.128094 -05:00 What would be a sensible way to present this? Or the bes...

Input type=password, don't let browser remember the password

I remember seeing a way to have an <input type="password" /> such that the browser will not prompt the user to save the password. But I'm drawing a blank (its late...). Is there an HTML attribute or some JavaScript trick that will do this? ...

What's a good html e-mail template system that also, correctly, renders a text/plain alternative?

We have a web application that periodically sends out e-mails to users. At the moment we generate the html version and the text version in the code. However, this is cumbersome to maintain. Is there a good e-mail template system out there that can generate both the html and text versions of an e-mail from the same template for Java? So...

"Operation aborted" error message when loading a webpage in Internet Explorer

Hi friends i design a page for my project. In that I display data from database. The problem is that it displays the data, but then a message box appears stating: Internet explorer cannot open the internet site 'http://localhost/....' operation aborted Please help me to fix this problem. ...

<button> vs. <input type="button" />. Which to use?

When looking at most sites (including SO), most of them use: <input type="button" /> instead of: <button></button> What are the main differences between the two, if any? Are there valid reasons to use one instead of the other? Are there valid reasons to use combine them? Does using <button> come with compatibility issues, seeing i...

IE caches dynamically added iframe. Why, and how do I prevent it?

I have the following HTML / JS: <html> <body> <script> function foo(){ var html = "<iframe src=\"foo.html\" />"; document.getElementById('content').innerHTML=html; } function bar(){ var html = "<iframe src=\"bar.html\" />"; document.getElementById('content').innerHTML=html; ...

HTML Text Input allow only Numeric input

Any quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes(plus '.')? ...

HTML table with alternating row colors via XSL

What is the easiest way to alternate row colors in an HTML table (a.ka. striping). Most of my tables are created in XSL templates like the following, with the table, thead, etc.. defined in another template. <xsl:template match="typ:info"> <tr> <td> <xsl:value-of select="typ:dateAccessed" /> </td> <td> <xsl:val...