html

Find "’" and other interesting characters.

When inserting copy into an HTML document I get from sources such as word documents or PDFs I'd like to make sure that the special quotes and apostrophes get replaced with their generic counterparts. In other words, I'd like to replace things like ’ with ' and then “ and ” with ". Is there maybe some kind of add on for visual studio t...

how to clear file input with javascript?

I want to clear the file input in my form. I know about setting the sources to the same method... But that method wont erase the selected file path. Is there a way to clear the path inside the file input? NOTE: I dont want to reload the page, or reset the form... NO AJAX... So, impossible? Thanks ...

Float over two elements

My problem is rather complex to explain, so I'll show you an example: http://ewolf.bplaced.de/misc/float.htm I want to have a floated element (the blue box) to be be placed over two other elements (red and green) and I want the whole thing to be fixed-width and centered (done by the box with the black border) while the background of the...

How can I make my fixed position work in IE6?

I've have tried this: body {height: 100%;overflow: auto; body #cornerImage {position: absolute;bottom: 0;} and this: { margin:0; padding:0; } html, body { height: 100%; overflow:auto; } body #fixedElement { position:fixed !important; position: absolute; /*ie6 and above*/ bottom: 0; } Neither of these have wor...

Locating specific string and capturing data following it

I built a site a long time ago and now I want to place the data into a database without copying and pasting the 400+ pages that it has grown to so that I can make the site database driven. My site has meta tags like this (each page different): <meta name="clan_name" content="Dark Mage" /> So what I'm doing is using cURL to place th...

Templated HTML Editor

Hi, I'm looking for a HTML editor that kinda supports templated editing or live snippets or something like that. Background: I'm working on a website for a friend. As there are no specifications what the webspace/webserver can or can't do, I decided to make it a pure HTML/CSS page, or rather 10 of them. I wrote a template, copied it 10 ...

Encoding of window.location.hash

Does window.location.hash contain the encoded or decoded representation of the url part? When I open the same url (http://localhost/something/#%C3%BC where %C3%BCtranslates to ü) in Firefox 3.5 and Internet Explorer 8, I get different values for document.location.hash: IE8: #%C3%BC FF3.5: #ü Is there a way to get one variant in both...

Detect when user has selected a file for upload (without timers)

Hi, I would like to to create a 2-step file uploader: Open dialog. Select one file from computer. I would like to eliminate the step where the user must submit the form, and instead do it automatically with JavaScript. Is there anyway to achieve it? Thanks. ...

CSS Rendered Differently for FF and IE8

Below I have included some HTML/CSS. The CSS looks fine in FF, but it is wrong in IE8. In IE8, the Home button appears on the line below the Balance and Turn values. It should appear on the same line. For comparison, you can view the page in both browsers (warning; potentially accesses FB profile) (This link leads to a Facebook app which...

HTML Scraping with Hpricot (Using Ruby on Rails)

hi, I have read a large deal of tutorials to help out and under Hpricot, the problem that i am finding out it is not scraping all the Html so to speak. I'll elaborate: The website i am attempting to scrape html off is http://yellowpages.com.mt/Malta-Search/Radio-In-Malta-Gozo.aspx . I require to obtain the links that are listed as resu...

How to prevent page's scroll position reset after DOM manipulation?

I've got two JS functions, one that is adding options to a select box function addOption(selectId, text, value) { var selectbox = document.getElementById(selectId); var optNew = document.createElement('option'); optNew.text = text; optNew.value = value; try { selectbox.add(optNew, null); //page position reset...

Display highlighted HTML source code in Firefox?

Is there some clever content-type setting that makes Firefox display highlighted HTML source code instead of rendering it? I have a CMS that generates HTML pages. I get debug info on each generated page by adding "/debug" to the URL. I would like to see the source by using "/source" so I have the source within my Firefox tabs (and not as...

How to make transparent background of Silverlight 3 application?

How to make transparent background of Silverlight 3 application? I have the next code but it does not work ( <html xmlns="http://www.w3.org/1999/xhtml" > <!-- saved from url=(0014)about:internet --> <head> <title>BGtest</title> <style type="text/css"> html, body { height: 100%; overflow: auto; } bo...

a href not picking up styling

Hi, I think I am being particularly stupid. I have a link, which is part of a nav bar. It picks up the hover/visited style but for some reason i cannot fathom it won't use the 'link' style, what am I doing wrong? Here is the style sheet and tags: <table border="1" cellpadding="0" cellspacing="0" style="width:950px;height:37px;"> ...

Jquery html attribute : How to exclude an element's child's html from that element's html.

Code snippet : <div id="some_text"> <p>some text</p> <div id="child"> <p>some other text</p> </div> </div How can I only get "<p>some text</p>"? ...

Redirect only HTML files?

Part One I want to .htaccess redirect all HTML files to the home page. I looked at this guy's question (http://bit.ly/3l9K86), and wrote this code: RewriteCond %{HTTP_HOST} ^pandamonia.us$ [OR] RewriteCond %{HTTP_HOST} ^www.pandamonia.us$ RewriteRule .*\.html$ "http\:\/\/pandamonia\.us\/" [L] but the problem is that it also redir...

Images on Hover

I have an issue best shown by example: http://dont.net/DesigningIntro/index.html Here the last "Car Exterior" is opened fully, but not properly opens as like other small bars. It gets hidden while hovering on other links. I want it to be shown, and not get hidden even if I hover on other tabs. Any suggestions? ...

Is there a way to sync column widths in an html table?

If I have these two tables: <table> <tr> <td>Small Length Content</td> </tr> </table> <table> <tr> <td>Dynamic Content Goes Here And It's Longer Than The TD Above</td> </tr> </table> How can I make it so that the two columns have the same width? I can't combine the tables so thats not an option. I also can't use fixed widths since i...

Floats and Margin Collapse

Hi, so I'm having a hard time understanding the circumstances under which a float can have margins collapse through it and how that affects the position of the float. I've included a page that seems to show two different behaviors in the same page. The red float seems to be positioned before the margins that collapsed through it, where...

How can you get the height of an swf to expand with the content?

I am creating a site in flash that is reading in entries from a database. I want the swf to expand downward on the html page so the user can use the browser scroll bars to see all the content. I don't want to paginate everything into a 800 px high swf or something - I want the page to expand just like it would if it were html. Possible? ...