html

Global Portal Web Rules and Accessibility Rules?

A design agency I work for recently contacted me regarding the website development of one of their major (corporate) clients. They said: The HTML must be done according to the many global portal web rules and accessibility rules. ... although they'll provide more information on "global portal" and "accessibility" rules sometime...

Why is this Perl CGI script failing to upload images correctly?

I have this code: use CGI; use File::Basename; use Image::Magick; use Time::HiRes qw(gettimeofday); my $query = new CGI; my $upload_dir = "../images"; #location on our server my $filename=$query->param("img"); my $timestamp = int (gettimeofday * 1000); my ( $name, $path, $extension ) = fileparse ( $filena...

Scripts do not execute when changing the content of an iframe with innerHTML

Hi, I would like to load the content of an iframe with JavaScript. I don't want to change the src but directly the content with: document.getElementById('frame').contentDocument.body.innerHTML = data; It works but the JavaScript in data is not executed. Is it a security protection or I forgot something? ...

How to disable Chrome spell check on INPUT with HTML or jQuery code?

I have an input in an HTML page <input id="SearchBox" type="text" value="" width="300px" title="Search the card pool" autocomplete="off" maxlength="170"> I would like to switch this off with something like autospellcheck="off". Is there a way to achieve that? Is there also a way to switch this off for Firefox? ...

html iframe query

I have the following scenario:- In an html page, display a top bar followed by another html page included dynamically on to the lower part of the page (for which I've used an Iframe). So, scroll bars for the window as such should not come up. Instead, a scroll bar for the included page should come up. I could do this using an overflow: ...

Optimize and compress HTML

I have a few hand-crafted web pages. When deploying them I would like to run them through a tool so that new smaller HTML files are created, with extraneous whitespace taken out, etc. We already use YUICompressor for our Javascript and our CSS, and we tend to follow all of the techniques described by the Yahoo performance team. Is the...

submit all input elements on a page

Is there an easy way to submit all input elements on a page? I have a very customisable page where the user can add and remove rows from multiple tables. The rows contain various different input elements. Do I have to put each table inside a form and then on submit have javascript to submit all the forms? ...

Stuck selecting classes or id's using PHP Simple HTML DOM Parser

Hi everyone, I'm trying to select either a class or an id using PHP Simple HTML DOM Parser with absolutely no luck. My example is very simple and seems to comply to the examples given in the manual(http://simplehtmldom.sourceforge.net/manual.htm) but it just wont work, it's driving me up the wall. Other example scripts given with simple ...

HTML/CSS: My Mini-Chat is overflowing in IE

So here's another IE cross-compatibility issue. My website, www.zerozaku.com, is compatible with Chrome and Firefox, but IE has an issue with my Mini-Chat overflowing out of the box. Could anyone help? P.S. I've only tested it on IE8, Firefox, Chrome ...

How to show text in IE only

Hi, I need to show text on IE only and not show it for the rest of the browsers. Any pointers to that? I looked around couldn't find it. ...

Can you getElementsByName if you only have partial name on javascript?

Hi all, I have a repeating table where the name of the elements would be (e.g. 'tdName_1' 'tdName_2'), and I was wondering if it would be possible to getElementsByName('tdName_'). PS: I can not use Jquery. Thanks In advance. Cesar. ...

Are tables in HTML supposed to be bad? Why is there so much talk about tableless CSS?

Possible Duplicate: Why not use tables for layout in HTML? I have read a lot about "tableless CSS", using CSS to format a page rather than tables. Are tables considered bad? I would think them especially useful for formatting form data (labels and input fields in rows) to maintain a neat look by correctly lining up the input f...

java utf-8 encding problem

i am using an HTML parser called HTMLCLEANER to parse HTML page the problem is that each page has a different encoding than the other. my question Can i change from any character encoding to UTF-8? ...

Add value and id dynamically to an Input type hidden.

Hi guys, I have this bit of code which I am not sure if it is possible what I need to do, if you check the input type 'hidden', you will see this (id="'inpTdId'+ tdIndex" value="tdRegularMedicine_+ inpTdId") as I need to get the input hidden to store a new value and id for each time the loop goes through. I am trying to generate a new ...

Extra padding at bottom of HTML linked image in Chrome, IE6, and Firefox

I am having a problem with a linked image. <TR class="a"> <TD><A href="http://CA_NB_1_1-pr.jpg" rel="lightbox"><IMG src="CA_NB_1_1-th-pr.jpg"><BR><BR></A></TD> <TD class="hdsmlbr"><A href="http://127.0.0.1/odds/aptrqr2/view/1"&gt;35 Savoie Drive, Moncton, New Brunswick, Canada</A></TD> </TR> This image has padding at the bo...

Hyperlink to an Excel Cell

Quick Summary How can I create a hyperlink to a specific cell in Excel that will work from Firefox, or achieve the same result in javascript? Detailed Description I have an excel spreadsheet that users enter data into. This spreadsheet is then used to generate some diagrams in SVG. The diagrams are displayed in Firefox (though this ...

How can I give users a javascript widget to pull content securely from my site

I need to be allow content from our site to be embeded in other users web sites. The conent will be chargeable so I need to keep it secure but one of the requirements is that the subscribing web site only needs to drop some javascript into their page. It looks like the only way to secure our content is to check the url of the page hosti...

How can I get horizontal scrollbars at top and bottom of a div?

Since I'm pretty sure there is no native html or css way of doing this, I'm open to doing this with JavaScript. Obviously, I can get a scrollbar at the bottom of my div using overflow: auto in CSS. Is there some javascript that could "clone" the scrollbar from the bottom and place it at the top of the div? Maybe there's another way? ...

CSS nested Div with position absolute?

Here is a reproduction of a far more complex case: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <body> <div style="position:absolute;left:500px;top:200px;width:200px;background-color:red;";> AS HDSKLAJ...

javascript horizontal center

Hello, Im trying to use java script to center a page horizontally. So far i got this: <body onload="scrollBy((document.body['scrollWidth'] - 0) / 2, 0)"> It kinda works, but not very good. I have a large width flash component that I need centered when the page loads and also after any click on the internal buttons. I was thinking of...