html

Position div on top of another and not flow around

On my homepage I have a slideshow of pictures that are user selectable. I don't want the user to have to modify the image at all. http://homespun-at-heart.com/ is the example except that the way that it currently is, the user has to modify the image. What I would like to do is to have a div that is layered on top of the image so that ...

Openin MSN Messenger windows through Javascript

Hello, I was wondering how to create a launch script to open Windows Live Messenger window. I tried several and also using LaunchIMUI (for windows messenger) but with no luck. I have used some to open Skype for example, but couldnt find one for messenger. Does anybody know somehow to do it? Thanks! ...

jquery one liner for finding and highlighting rows where contents of 1st cell is gte 2nd cell

$('tr').find(need help here).parent().css('backgroundColor', '#fcc'); would like to perform inequality check of two dates (both strings) in the 'need help here' section of the above snippet. Thanks ...

simple preloader for jquery load function

hey guys , i know how to load a page in jquery and somehow i know how to use success but what if that page failed im looking for a way to show loader image before the page loaded and if the page failed show a message this is the function i wrote : $(document).ready(function(){ $("#loading").html("<img src='images/preload.gif' ...

A form that writes to excel

I was wondering what the easiest way to write a simple form program or web page that will output to a text file that can be opened in excel easily. I know how to write in C++ but I dont know any GUI and I wanted a simple form. I was thinking I could just write an HTML/PHP page but it has to be able to run without the internet, but I dont...

Have html appear after 5 Seconds

Hi, I have a bit of a little popup warning thing, and I'd like it to appear after 5 seconds as oppose to right away. All it is is direct html. Anyone know how to do it? Thanks edit: it's not actually a popup, it just comes up and shows the user a message about their account. And it's needed because it takes 5 seconds for part of it to...

HTML - aligning radio buttons and text

Say you've got two simple table cells next to each other. One contains a radio button and text. The other one contains just text. The radio button's size is set to 16x16 pixels (don't ask me why, assume that it just is). The font size is 12 pixels. How do you make both labels and the radio button to line up consistently in all major br...

HTML5 Files and FileLists path

I am wondering where the file path is stored in a File object in HTML javascript. I used the Webkit DevTools and got this: FileList 0: File fileName: "script.js" fileSize: 71268 name: "script.js" size: 71268 type: "application/x-javascript" __proto__: File length: 1 __proto__: FileList The file name, size and ...

JavaScript - Sort SELECT options

Using PHP, I scan a directory and list all of the .xml files. Each XML file contains both a "name" element and a "date" element. The "name" element for each XML file is listed as an option in the select list. This works perfectly fine, however, the "date" element in each XML file is different and contains a date format like this: mm/dd...

PHP Progress bar

I have one form as shown below: Page 1: <form name = "form1" method="post" action = "page2.php"> ........ </form> Page2.php: <?php For loop ... ..... end ?> Now i want to have progress bar on page 1 so that it can show the completion progress of for loop in page2.php. Tell me how can i do that? Please don't direct me to any pro...

CSS Height: Fill available space. No fixed heights.

So i have the following structure <div id="container"> <div id="head"></div> <div id="body"></div> <div id="foot"></div> </div> I am only using the ids for illustration purposes so this is not even necessarily for a full page. I want my container to specify a fixed size... or a relative size, does not matter. Lets for argument ...

Prevent "title" attribute of parent element from causing a browser flyover

The good browsers all work such that an empty "title" attribute for an element means, "don't bother to show a title flyover here". That makes sense, as a little white flyover with nothing in it (edit or nothing but a space character) is, for most people, completely useless. The designers of IE do not agree. My problem is that I've go...

Submit behavior is acting differently when pressing a button compared to pressing enter

I've got this simple login screen where is has a text box for the name, and a submit button. The jquery script running is this: $(document).ready(function() { $('#btnLogin').click( function() { validate() }); $('#loginForm').submit( function() { validate() }); }); function validate() { if ($('#txtLogin').val() != '') { ...

PHP recursive directory listing - directories ONLY

I am working on a file manager project and can't seem to get my head around doing a recursive directory listing where I only get the directories. Everything I've tried either leaves off empty sub-directories or won't work when I try to parse it into the return structure to my jQuery tree. I've tried using an array, and the recursive ...

How to display an html page at the width of the "Form sheet" modal on iPad without hard-coding the page width?

I know the width of the "Form sheet" modal on the iPad screen (540 x 620), the width of iPad screen (768 x 1024), and the width iPhone screen (320 x 480)… but when loading an html page into the "Form sheet" modal the width defaults to the device width per the viewport meta tag: <meta name="viewport" content="width=device-width"> This ...

Full-bleed background video?

Similar to this question (that one doesn't want to use Flash, though, while I'd be fine with it): Is there a reliable, works-in-most-browsers way to have a full-area Video background in an HTML page, the Video starting to play automatically and looping endlessly, and being able to put HTML on top of it? I'm fine with using a Flash vid...

Remote images displaying only sometimes

Hello, I maintain a local intranet site that among other things, displays movie poster images from IMDB.com. Until recently, I simply had a perl script download the images I needed and save them to the local server. But that became a HUGE space-hog, so I thought I could simply point my site directly to IMDB servers, since my traffic i...

Selecting a TD element from it's ID in jQuery

I have an array called currentTD that holds two integers, the first element in the array is an ID to a <TR> element, and the second element in the array is the ID of a <TD> element within that <TR>. I want to somehow select that <TD> and change its background colour. I'm just not sure how I can select that <TD> given the "co-ordinates" ...

HTML/ASP.NET: <input type="hidden" name="reference" value="ABC"/>

Hi, I just wanna ask if there's a possibility to change: <input type="hidden" name="reference" value="ABC"/> into this: <input type="hidden" name="reference" value="any values I want"/> where I can set any values behind .cs/C# - making it dynamically. The payment gateway I'm using requires and I can't find a way to included an AS...

Recommended way to concatenate several HTML files

I'm looking to generate a single HTML file from the content of multiple HTML and text documents (emails). I'd like some recommendations about the best way to handle this. For instance, at the most naive level you could extract everything within the tags of the HTML and put it inside a <div>. Plain text would go inside a <pre>. Of co...