html

Using ruby and nokogiri to parsing HTML using HTML comments as markers

How could I use ruby to extract information from a table consisting of these rows? Is it possible to detect the comments using nokogiri?   EXTRACT LINK 1 EXTRACT DESCRIPTION EXTRACT LINK 2 Mr P 1 ...

Using HTML elements inside an XML loaded by Flash

I am trying to use html elements to style text inside an XML file that is loaded and displayed by flash. When I do this the text will not display at all. Here is a chunck of my XML : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Page> <Title>You should be <b>Bold</b> ! </Title> <Page> When I try the code below, it disp...

How can I select and upload multiple files with HTML and PHP, using HTTP POST?

I have experience doing this with single file uploads using <input type="file">. However, I am having trouble doing uploading more than one at a time. For example, I'd like to be able to select a series of images, then upload them to the server, all at once. It would be great to use a single file input control, if possible. Does anyo...

My HTML INPUT is not valid markup, please help

Hi On my web site, I have the following code: <input type="image" src="images/btn.png" alt="Submit" border="0" height="25" width="102" /> When I run my web site through one of the many HTML validators, they prompt to inform me that: border height width are invalid attributes of the INPUT element. However, YSlow and Google PageSp...

stretch image to fit in td

I want to stretch an image in my td cell. How to do that. Its is a tab image which looks like inverted of this |____|. I need to place the image in the first td cell which contains the text 'aaa' will come in center of this image. Thanks ...

How can I execute JavaScript onClick of a NON-LINK?

I have some code that runs when a user clicks anywhere in the body of the web page. I only want the JavaScript to run if the click is on a NON-LINK. Any ideas? Thanks Mike ...

How to use YQL to retrieve web results?

Hi, I am having difficulty setting up a simple html file using javascript to display the results of YQL Query. I understand how to setup the select statement (example: select title,abstract,url from search.web where query="pizza") in the YQL Console. But I don't know how to display it on the html file? Can somebody help in explaining ...

Jquey and XML parsing help

Here's the Scenerio, I'm creating a simple app for my friend's website where his users could add image w/ a caption. The problem is My Friend's Webhost don't allow him to use server side scripts and Database. He is just allowed to insert javascript and HTLM on the site. So I think the solution would be doing it in XML instead of Databa...

List Item, Two Hyperlinks CSS Design

I need to have a single <li> element which has two buttons inside of it as follows: <li> <a href="#" class="left">The title</a> <a href="#" class="right"></a> </li> With a layout of the button similar to the following: ____________ |_________|__| The background would span the entire button, the <a> tag on the left would be...

Importing HTML Table into Excel via clipboard

I want to copy tabular data to Excel from my app. The most simple way I found so far was using HTML as the intermediary format. After reading this question, I could preserve the formatting of my data. Is there a way to keep the width of the columns, too? I tried to set the style in various ways: <td style="width:100;">...</td> <td style...

Div "default margins" out of nowhere.

Hi! even after many lines i've written in css and html, the css-behaviour still manages to surprise me - in a bad way. I was putting together a sample site for a friend to show him how he could build his layout, but Firefox 3.0.5 and IE8 create margins between my #header, #content, and #footer-divs out of nowhere. If i switch in IE7 Mo...

Wrong application shown when popup is closed

Hi! I've a webpage which runs an application in ActiveX. In the application there's a webmail which is run in a WebBrowser control. When the user wants to attach a file to the e-mail, a popup is opened allowing the user to choose the file/files which he wants to attach to the e-mail. Here's the problem: If there are other programs ope...

Email client support for PNG images in HTML email

Will the following email clients show an embedded PNG image in HTML email? . Outlook . AOL . Eudora . Thunderbird . Gmail . Hotmail . Windows Live Mail ...

Compatibility issues with IE7?

I'm working on a site and having compatibility issues with IE7 (not working) vs IE8/Firefox (working). Can someone take a look at the following CSS and Screenshots and tell me why my site is broken in IE7 and what I can do to fix it? The site in question is live here: CollectionTree and my css part for that view is #landingMainContai...

How does copying and pasting non-breaking spaces compare in different systems/browsers?

Suppose you have an HTML document with non-breaking spaces (&nbsp;). In IE 6 - 8 running on Windows XP, when you select the non-breaking spaces and copy/paste them, they will be copied/pasted as "normal" spaces (U+0020). Does anyone know of any systems, browsers, etc., or combinations of, that will not exhibit this behavior. That is, th...

How to convert OpenOffice ODF files to HTML

I have some ODF files with math formulas and I need to render them...or else the boss will fire me (lol). Please, is there any way to do this ? or they can only be rendered in OpenOffice ? ...

Javascript that automatically sets font-size on element so that text doesn't overflow? (autofit)

You know what I mean? Like let's say we have: <div style="width:100px;font-size:10px">Some Text</div> But then we could also possibly have a much longer text string in that div, in that case I would want that div to have font-size:7px or whatever, so that the whole string fits without overflowing. I'm sure there's already something l...

Unknown INPUT tag attribute: CURSOR TRANSMIT

I inherited an ASP classic application created in Visual Studio 6.0, I believe. There is an INPUT text tag in a form with attributes I don't quite recognize: <INPUT TYPE="TEXT" NAME="OPERATOR_CODE" SIZE="12" MAXLENGTH="12" TRANSMIT CURSOR> What is this TRANSMIT CURSOR attribute and what does it do? ...

Best JQuery Plugin online directories?

Beside the official JQuery web site, what are some of the best online directories (listings) for JQuery plugins? There are some plugins I never knew existed so I wanted some resources, hopefully with RSS feeds, which notify me of new cool JQuery plugins. ...

Detect if a page is within a iframe - serverside

Hi, How can I detect server-side (c#, asp.net mvc) if the loaded page is within a iframe? Thanks ...