html

IE7 Scrollbar doesn't work problem

I am fixing bugs for IE7 and this one has me stumped. The content in this page is larger than its containing div. IE7 is properly displaying a vertical scroll bar but the content is getting on top of the vertical scroll bar and when the user clicks the scroll button the content doesn't move. I can't imagine what is causing this. Any Idea...

Why does the <style> tag in HTML take a type attribute?

I mean does anyone use a value different than "text/css"? ...

Unescaping HTML entities (&#nnnn;) into plain UTF-8

Hello, We have HTML source files which contain special characters encoded as &#nnnn; like in the word: au&#223;ergew&#246;hnlich We would like to convert them into plain UTF-8: außergewöhnlich Is there any small tool to do that? ...

showing page in iframe

Can we show part of same page in iframe that contain iframe? ...

PhoneGap Android

hi, I am new to phonegap and android , i wanted to know how to access/make database through javascript. and the second thing i want to ask is how to make Graphs just using html, css and javascript. Every information is thankfully accepted. ...

Set data on text nodes in IE with javascript

Hi, i have created a script to associate data to dom nodes, something like the jQuery.data method. Basically the script sets a property on the node that is the key of an object that will contain the data of every node, but in IE 7 setting a property on a text node throws an error: var a=document.createElement("div"); a.test="test"; aler...

use alt or title on text

i want to use title on text. is this possible to make title on text? on some hard meaning of text i want use title. ...

Removing spaces and newlines between tags in html (aka unformatting) in python

An example: <p> Hello</p> <div>hgello</div> <pre> code code <pre> turns in something like: <p> Hello</p><div>hgello</div><pre> code code <pre> How to do this in python? I make also intensive use of < pre> tags so substituting all '\n' with '' is not an option. What's the best way to do that? ...

xhtml <object> problem with explorer

I have an html page with this code <object data="ciao.xhtml" width="100%" height="100%" type="application/xhtml+xml"> </object> ciao.xhtml contain a well formed xhtml with svg embedded. It work well in chrome and firefox but when i test it on explorer i don't see enything ...

Chaining jQuery animations

I have come code that chains animations together (i.e. move left, then move right). I have 20 of <li> tags laid out in a grid and I am animating the main <ul> to move the required <li> into view. Code: x and y are co-ordinates, howFast is set to 1200, easeItIn is set to "easeOutBounce" if ($(window).width()<1259) { if (screenFlipMo...

how to convert html page to excel using html code

how to convert html page to excel using html code ...

Resize an embed tag, not crop it

How do I resize an embed tag (like how one can resize an img tag)? Example: <embed src="1.mp4" width="1280" height="1024" /> This works fine because the original is 1280 x 1024. But if I <embed src="1.mp4" width="640" height="512" /> Then it crops the movie rather than sizing it. ...

Display price in correct currency depending on location of user

I have a DotNetNuke site which lets me add pages. I can edit the HTML of the page. On the page I need to display a price in one of three currencies depending on the user's location. Those currencies are USD, GBP, and EUR. The price in each currency fixed, so there is no need to do any currency conversion. Additionally I'd like to displ...

CSS/HTML - proper way to combine text and image in a page header

I'm looking for the optimal way to have a page header that displays an image but with text visible for search engines and in case the header image doesn't load. The best advice google has on this is to have a <div> for the header with an <h1> for the text. In CSS, hide the <h1> with display:none; and add the image as the background imag...

A good link explaining why browser sniffing is bad

Sometimes I visit a website with Chrome and get a message that I need to use one of the supported browsers to access the site. It really pisses me off (latest one: http://www.retailroadshow.com). Anyone knows a link that explains why it is bad and what is the correct way to handle those things? I want to send it to them ... Thanks ...

Vertical align issues w/ icons in IE7

I am trying to vertically align the cell phone icon on this page so that it lines up with the text to the left of it. In normal browsers, I just added vertical-align: sub; but this doesn't work in IE7 (shocking, I know). As far as I can tell it seems like IE7 doesn't support inline-block elements. Is there a good solution for fixing this...

Loading PDF in IFrame in IE6 and IE7

Hello, I am loading a PDF inside of an IFrame inside of a popup window. I have the PDF loading correctly in IE6 and IE7 - however there is an issue I am trying to solve. When I load the PDF in the IFrame within IE7, and I resize the window from the right side of the window horizontally, the PDF does not scale down the window will resi...

Can i use an html page as content of another HTML page..?

Hi..Im new to programming..Can anybody help me out please .... im using an html to display an image later i want to display another html on the first html so i need to set second html as transparent. so the image in the first html looks like a background image.... is it possible...? Thanks ...

HTML and Javascript: How to manage element focus?

I have some questions about focus in general (adhering to WC3 format, screw IE). I'm having problems with unintended actions occurring on a widget i am building (using the Dojo Toolkit), and i believe a better general understanding of focus will allow me to solve my problem myself, so here goes: First of all, which common HTML element a...

How to comment code in Rails views?

As I'm playing with Rails and developing views I often want to comment out code. Simple enough with classes & models but views are a bit more tricky. What's best way to comment code in a view so it's not interpreted by, well, anything... HTML gives us <!-- commented Rails code here --> though code enclosed here seems to get interprete...