html

Tidy gives non-standard HTML

Hi, I use Tidy to clean and make HTML files compliant to HTML/XHTML. However, output contains non-standard attributes values like : <table id='abc'>... or <input type='button' /> (look at the single quotes). How can I configure Tidy to give strict XHTML output? Thank you in advance! ...

How to get Content-Type when uploading file from flash - is it possible?

Hi, we have a small flash component on our website/application to upload multiple files. This works fine, however we want to get the Content-Type from the headers and its always set to 'application/octet-stream'. From what I've learned this is due to a security of flash sandbox and FileUpLoad will never give this to us. Is there any ot...

quicktime movie layering issues

I have a site (link below) where the clients work displays on a long horizontal page. The menu is fixed on the left hand side and the images disappear under the menu when scrolling across. The client has now uploaded quicktime movies which do not go under the menu like the images but scroll over the menu. http://www.calebchurchill.com/...

Rails: Best practice to generate custom HTML in Model?

Hi, I let users embed videos from Youtube, Google, Vimeo etc. I thought about the best and most secure approach (I don't want them to be able to include any flash and I also want to restrict the Videosites to exclude free porn websites etc.). So I thought the best and easiest thing would be to let the user just copy&paste the URL of t...

How do I create tab indenting in html

I have a situation as follows <body> Test<br /> test<br /> test1<br /> </body> I need to add a tab after the 2nd test and 3rd test so that it looks similar to this. Test     test         test1 Is there a special HTML entity or special character for TAB. eg. Non-breaking space == & nbsp ; thanks ...

innerHTML in javaScript for Internet Explorer

Hi, I have used innerHtml in my java based web application. JavaScript works fine with Mozilla Firefox but it is not working in InternetExplorer. Could you please tell me how to make it work in Internet Explorer too. or what is substitute of innerHTML in IE. Code is: function show() { if('number' == typeof this.rowIndex) { ...

how to make cells invisible without moving others in a row

Hi, I'm trying to add a cell to a row but making other cells not visible moves the cell down in order. For example: var celltwo = row.insertCell(0); var cellthr = row.insertCell(0); var cellfr = row.insertCell(0); var cellfv = row.insertCell(0); var cell = row.insertCell(4); celltwo.style.display = ...

How to show which form elements are already selected in PHP

How can I get this code to show which option is already selected? This is basically an edit page and it is pulling info from the database and populating the relative fields I have a drop-down menu, multiple select box, and radio buttons on a page along with some elements. The info is getting displayed in the elements fine, but I can'...

sprites vs image slicing

I don't have much experience with the sprite approach to images (http://www.alistapart.com/articles/sprites). Anyone care to share some pros/cons of sprites vs. old-school slices? ...

Output html code thats transperant

My site supports exporting data in a few ways, and one way i via iframe. <iframe src ="http://www.conanstats.com/Feeds/IFrame.aspx?Guild=30&amp;EventCount=15" width="270" height="400"> <p>Your browser does not support iframes.</p> </iframe> Currently the problem is that when its shown in a web site its going to have its own style,...

Can I do a TextBox Validation after an outclick event?

I have a javascript restricted calendar on a textbox, which prevents the user from selecting any more than 2 months prior. If the user manually enters the date and not select from the calendar, they can get past it. How do I do a Validation on a outclick, or tab event to check my conditions? ...

Create a transparent div over a td or tr element

Hello, I have a table and I would like to be able to set up a transparent div over the entire row to show that it is inaccessible at the moment. Here is my a row from my table: <tr id="post_1998"> <td id="post_1998_image"> ...content... </td> <td class="description"> ...more content... </td> <td class="buttons"> ...even ...

Tables Stretching divs

I'm using a div based layout and GWT which LOVES to use tables everywhere. The problem I'm encountering is that the tables can stretch beyond the height of the div they are contained in. Is there anyway to expand the div vertically if needed? BTW content is being added to the table using javascript if that matters. If you want to chec...

Why does Bing obfuscate their JavaScript?

I was surfing the web, as usual and I wanted to take a look at Bing's source code because I was curious and wanted to know what they were using to make their image fade in. I was surprised by what could only be qualified by the following line : Holy wall of text! And it made me wonder if there is any advantage to obfuscate your (X)HTML...

Removing the <hr /> border styling on IE

Why is it the simple things that IE manages to mess up the most? Anyway I want to replace a normal hr line with a single image a bit like the - § - symbol (on it's side). Trying to make it look elegant :) It appears the only way to actually get rid of the border in IE though is to set the color: css value. Doing this will override wh...

CSS: Image sticking to the bottom right hand side of the document

Hi I have a peculiar problem, which I think that a lot of other people have had before, but I'm not so sure there is a good (pure CSS) solution to it... I have a document with the following structure: TOP: 100% wide, 200px high MIDDLE: 100% wide, variable height BOTTOM: 100% wide, 200px high BOTTOM is essentially a background image...

How to save current state of OFFSET in SQL

I have 1000 rows of data but need to only display 100 rows at a time. I would like navigation buttons (like on google next, prev) to go thought the groups of 100 My C cgi application runs and exits every new query, so it can't save states. Question is: What is the most efficient way to save the current state of the OFFSET, so I can n...

Detect URLs in a string and wrap with "<a href..." tag

Hi, I am looking to write something that seems like it should be easy enough, but for whatever reason I'm having a tough time getting my head around it. I am looking to write a python function that, when passed a string, will pass that string back with HTML encoding around URLs. unencoded_string = "This is a link - http://google.com" ...

How to produce same result on different browsers when embedding SVG file in HTML code ?

Hello I begin to have a solution for my previous question Overlay SVG diagrams on google map. But I have another (smaller) problem. I am using Firefox 3.5 and Safari 4 (on Mac), and when I am embedding SVG in a XHTML, I do not have at all the same result. I can use the <object> or the <embedded> elements (but I think the last one is d...

Is it possible to hide the cursor in a webpage using CSS or Javascript?

I want to hide the cursor when showing a webpage that is meant to display information in a building hall. It doesn't have to be interactive at all. I tried with the cursor property and a transparent cursor image but I didn't make it work. Does anybody know if this can be done? I suppose this can be thought as a security threat for a use...