html

Javascript form validation "onKeyup vs on keydown"

Group, I have a quick question? -Is there a way to trigger this onclick event when the last keypress is up. for example: verify that newPwd==reTypePwd on the last keyup in reTypePwd text box. If my password is foo I would like for the event to trigger on "o" and not "f". function allClear() { var newPasswd = document.getElementById('...

Please point to the right webdev tools

Hello, I'm making a simple web app where I have some simple python scripts that do the text crunchin g I need - but I'm not quite sure how to interface it with a client who'd only want to see some HTML forms. There's so many different server side frameworks out there - but I don't think I need anything too heavy duty - just a mechanism...

css list inline is not listing items horizontally?

i dont know why this is not display right, the list is meant to display horizontally? instead its displaying vertically! this is my code: html file: <ul id="stats"> <li><h1>53</h1></a></li> <li><h1>67</h1></a></li> </ul> css file: #stats li { display: inline; list-style-type: none; padding-right: 20px; } ...

IE7 dropdown menu appears behind image

I have created this css3 dropdown menu that appears behind the image when I mouse over the dropdown menu, and I have tried to figure it out. But cant for the life of me. Any help is greatly appeciated you can take a look at it here. ...

JQuery - Get Value Using a Selector

I'm trying to select the first link on a page after the page has completely loaded and redirect the page to the link on the first page. I understand how to use a selector, but I'm stumped as to how I can pick up the first item after the page loads. I'm assuming once I have the value I could use window.location = "http://www.google.co...

Simple CSS fly out list, not so simple?

I had in my mind that it would not be hard to add an anchor tag that, when hovered or clicked, would cause a CSS flyout with more links in it to appear. As it is now, a set of normal anchor tags are inside of a span which is inside of an li. I want to add this hover flyout link to be in the same location, the same as one of the links bu...

Generating a list of categories and subcategories with asp.net mvc2

I have a feeling I'm doing this horribly, horribly wrong. Nested for loops? What is the best practice method of listing subcategories? I have a feeling it involves preparing the list in my controller action and sending it to the client via some actionresult, but I don't know where to start? Anybody able to point me in the right direction...

Haml render multiple partials in layout

app/views/layouts/shared.html.haml: = render :partial => "shared/head" = yield = render :partial => "shared/footer" app/views/shared/_head.html.haml: !!!XML !!!1.1 %html{"xml:lang" => "pl", :xmlns => "http://www.w3.org/1999/xhtml"} %head %title some title %body .container app/views/shared/index.html.ham...

How do I determine if something has been clicked in jQuery on the first load?

I am trying to set a javascript variable to be one of a few options. If one of a few specific link shas not been clicked (i.e. the first page load), then the variable should be set to 0 or 1 (the default value). If it has been clicked, then I want it to get a number associated with that link. So say the html looks like this: <a href=...

Major IE8 positioning issues part 2

Hello, I have a social network for the cystic fibrosis community. There is a section (s) where you can leave comments, and reply to the comments. This is generated with html,css,and jquery and works amazingly on FF,Safari, and Chrome, as you can guess, it has major quirks on IE8. It works as it should when the comment is small, or ther...

user paste a hyperlink and picture into a text area

I have a website that has in internal email system . There is a text area for the body of the email. but what I need to do is allow the user to paste a link or picture into the area. can this be done ? or is there a script etc.. Any help would be appreciated ! thanks ...

Storing Form Data as a Session Variable

Hey there- So I was wondering if it would be possible to store data coming in from a form as a session variable. Heres what I have so far, but I don't know what to put for the Form Action. Thanks for looking! <strong>Test Form</strong> <form action="" method"post"> <input type="text" name="picturenum"/> <input type="submit" name="Su...

Table and Body with two separate background colors.

Hey all, simple question I'm sure, but I would like to have the body of a page be one color and to have the table in the center a separate color. I tried specifying body color and table color, but body always overrides it. I'm attempting this in css, and I have a feeling I need to use a "not" excluder to make this happen? Such as specify...

Detect if html parent is hidden

I would like to detect when a specific HTML element on the page becomes hidden. This usually happens due to a parent element (maybe few levels up) becoming hidden. Is there a simple way to detect this. Or do I need to traverse the DOM and check each parent? ...

Positioning Background Images and Firefox

Hi there, I've been working on coding a personal website from scratch in my free time, and have gotten the layout mostly looking like I wanted. But for the life of me, I cannot figure out why Firefox does not align the 'dropdown menu items' ('about', 'blog', etc.) BELOW the background image into the dark grey area like it does in Safari...

Add to Home Screen Web App Problem

Whenever I add my webapp to the home screen and click on a link, it takes the user out of the web app and into Safari. The link is a home button, it takes the user back to the home page. The home page works fine, but it only leaves the app when I click the home button. The web app works fine on my Mac. Here is the code: <a href="<?php e...

Does Flash have support for the soft/discretionary hyphen?

Out of the box, Flash CS4/AS3 doesn’t seem to support the soft hyphen / discretionary hyphen (&shy; / U+00AD). Is there some trick to getting it to work, or is it simply not there? ...

Using mapped image to fill a text box in a form

Hi guys, I'm new to php and javascript. I'm working on a form that have 3 sets of checkbox and a text box. When a user clicks on the checkbox a popup window of mapped image comes out. The image is a map. When the user clicks on a certain city, the text box get's filled with whatever city the user clicks and then closes. So far, this is ...

how to manage large client side only web apps

I am building a project which uses jQuery UI for the client side. My goal is to have my web-app never do a postback and do everything client side. While developing though I found almost all my code goes into 1 .js file and 1 .html file where I have a lot of div's which I show and hide when appropriate. Is there a better way to organize...

How do I extract links from HTML with a Perl regex?

I have a HUGE html which has many things I don't need, but inside it has URLs that are provided in the following format: <a href="http://www.retailmenot.com/" class=l I'm trying to extract the URLs... I tried, to no avail: open(FILE,"<","HTML.htm") or die "$!"; my @str = <FILE>; my @matches = grep { m/a href="(.+?") class=l/ } @str ...