html

Show a different set of checkboxes in a webform based on the value chosen in a combobox

Will a javascript library like Prototype/Scriptaculous or jQuery help me create a dynamic form on a webpage where I can show a different set of checkboxes based on the value chosen in a combobox? ...

jQuery Tabbing Order

With the absolute positioning of my submit button, when I tab on the last text box, it jumps over the button. Is it possible to intercept the tab event and place focus on my submit button when my last text box loses focus? ...

nested foreach loops with a many to many relationship

I have two tables (groups and parties) in a many to many relationship using a lookup table called groupparty. I'd like to be able to assign prices to each party, such that a party that belongs to two groups might have one price in one group and a different price in another group. In the table groupparty, I have three columns: groupid, p...

href="#" redirects to the index page but not to the current page's top

Hi all. Having an odd problem at the site. Link tag having href="#anything" doesn't move you to the top of the page or to the specified anchor, it moves you to the home page. Thats it - when I hover over the link I see at my FF's status bar "domain.com/#" instead of "domain.com/testpage.php#" Site is full of crap code and it's impossib...

How can I generate HTML documentation for Perl code comments?

I've come into ownership of a bunch of code that's held together with various Perl scripts. There's some documentation in the form of comments (not Pod) embedded in these scripts that I'd like to be able to extract and browse in an HTML format. Basically, I'm looking for something like javadoc or rubydoc, but for Perl. "perldoc" seeme...

SIFR page load time in anything but Firefox

I'm using SIFR version 436 and have found that when moving around my site it is taking an age for the page to load in any browser but Firefox 3.5.7. I've tested it locally using xampp as well as on a live url and have found that page load times even on localhost can take up to 4 seconds. When a link is clicked, the browser moves to the u...

Why is 100% height not 100% of the browser height?

EDIT:Removed the files from the server http://www.jdxsolutions.com/newsite/index.html http://www.jdxsolutions.com/newsite/default.css This is a layout I've been using to try out some stuff. What's got me stumped is that when the browser is resized so a vertical scroll-bar appears, the background doesn't reach the full height of the bro...

Apply CSS height/width to the visible clip region?

I have an image with width/height from the CSS file. I have now added a clip: property to the image, which changes based on the user defining the region. What I want now is to: Apply left and top properties so the image is in the right position Have the width and height adjusted so that the visible clip region of the image is the same...

Replace all text except links

I have many html documents, I need to replace the text "foo" to "bar" in all documents, except in links For example foo<a href="foo.com">foo</a> should be raplaced to bar<a href="foo.com">bar</a> the url in the link (foo.com) should be left untouched. The same case in image links and links to javascripts or stylesheets, only th...

Position: absolute not respecting parent element in IE6

I have a page with a div in it. The div contains an image, is 700px wide and 300px tall. It is set to position: relative. To show some text to the bottom of the DIV, I put a span into it and give it position: absolute; bottom: 8px This works fine in all browsers, except IE6. IE6 puts the text to the very bottom of the page. It is as ...

generically detect masked input in a web page

I am wondering if there is a way to generically detect a masked input field (like a password edit box) on a web page. ...

CSS see through porthole

I am trying to create a "porthole" using CSS. When I say porthole, what I mean is to make a portion of the screen see through so you can see whatever is behind the porthole and thats it. I was able to get the effect I wanted by setting the background color of the body to the same as the foreground color, then using a porthole image whi...

CSS - Why does height seem to be set, when it's not?

Ok, this is really annoying and I can't understand why this is even happening. I may have screwed some stuff up when trying to get the CSS Sticky footer to work. I had one going on, but it seemed at the body wasn't liquid so I thought I'd try this one: http://ryanfait.com/sticky-footer/ But the results ended up like this: http://www....

Dropdowns with 10 thousand possible values and sequence-important dropdowns vs. graceful degredation.

Background I have this form that uses javascript exclusively to search through ~5k entries (suppliers) and populate a select dropdown from them (factories, ~10k entries). Right now, it's a javascript-required form. I'd like to make it so that javascript errors no longer render the form unusable, but the number of entries and the seque...

convert a HTML table data into a JSON object in jQuery

Anyone know how to convert a table of values into a nice JSON object to be manipulated with jquery? EDIT: Sorry, HTML table! ...

Redirect to an intermediate page before going to external site

Here is my problem. I'm working within a CMS and users are able to create hyperlinks (both internal and external) I'm wondering if there is a good way to check when a user clicks a link if they are navigating to an external site. I don't want to do anything if they use the back/forward buttons, type something into the address bar, etc...

How far is HTML (and SVG and CSS and WebGL and JavaScript) to reproducing what Flash/Flex can do today?

As a Flash and Flex developer it is a little disheartening to see the strides in HTML5. Don't get me wrong I have nothing against progress, for me it is just that currently it is easier to write an app in Flash vs AJAX. I love writing in Flash and Flex and think ActionScript is a really great language. But, it appears the strides made in...

Using php variables to manipulate the html's title and the body's Id (is anybody doing this?)

I basically use php variables to store the value of the title and the body's ID. This last one is a technique to have my button (pressed) in the navigation according to which section of the page the user is (in this case the user will know he is currently at "home"). Beginning of my index.php: <?php $title = "New Project"; $bod...

How to get mp3 files to play in iPhone Safari web browser?

How can I get an MP3 audio file to play in iPhone Safari (OS 3.1)? Currently, I am generating HTML e.g. <a href="file.mp3"><img src="sound.png" alt="Play audio"/></a> to play the file on clicking on the nested image. This works on Safari on OSX, but not on the iPhone. There, the content of the file is shown as text, but it does not a...

js/iframes: force iframes to reload

How can I force an iframe to reload and not load from cache? ...