html

Scrollbar within a scrollbar only make the inner scrollbar jump to id

I have a page that requires a scrollbar - http://www.aus-media.com/dev/site_BYJ/schedule-pricing/pricing.html You will notice (unless you are running at a high resolution with a big screen) that there is an outer scrollbar for the main page as well as an inner scrollbar for the content. When you click on one of the sub items e.g. payme...

displaying search results of more than one word

in my search form, if the user types 'good', it displays all the results which contain the keyword 'good'. however if the user types in 'good sweetest', it displays no results because there is no record with the two words appearing together; BUT appearing in an entry at different places. for example, the record says: A good action...

What is the best way to get an element's tag name in JS?

I want to get the name of a certain tag (to tell whether it is a div/input/span/p/so on) I found that there are 3 different attributes that give me the tag name: tagName, nodeName, and localName My question is: Which one is the most supported in all browsers? And/or is there a method to get the tag name in Prototype (I looked but coul...

"partial views" best practices for 'container' divs?

What is the 'best' way to handle the html markup for partial views? (which are also refreshed using AJAX) The biggest issue I run into is where to place the 'container' div... Consider having a masterpage and a partial view. (class="" could be interchanged with id="" depending if the partial is guaranteed to be unique, however this isn'...

Display a page element for a set period of time

Hello, quick question. I am trying to use either javascript, jquery, or php to make it so when I click a link, it replaces a static image on my page with another image, for 15 seconds, then reverts back to the original image. What would be the best way to go about this? ...

html transparent background

I want to create a webpage with transparent background, a table and some text. I have seen posts related to this, but due to my lack of familiarity with css, I somehow cant get my code to work. I just want a transparent background, while this code is making everything transparent. Can someone kindly help. <html> <head><style type="text/...

Using CSS to both scale AND reposition an image WITHIN a div?

We know how to use CSS to show only part of an image within a div (i.e., image sprites), but the image has to be a background image. We know how to use CSS to scale an image, but the image has to be an IMG. Does anyone know of a way to scale and image and show only part of it? For example, I want to: show pixels (15,15) through (100...

Max length of an HTML attribute value

How would I know what the maximum length of an element's attribute value is? e.g. <div id="value1..."></div> What's the maximum allowable length for ID attribute of this div and any other attributes of any elements? ...

SEO and dynamic javascript HTML switching

just wondering if anyone knows anything of using javascript to set html to new content instead of linking to new pages, if this is generally a bad idea or if it kind of hurts SEO(which im kind of new to) Basically the home page displays given content, and the links to like contact pages and stuff, just change the body content to what wo...

width 100% on checkboxes makes it center aligned. How can I counter this?

I am setting all inputs to a 100% width via CSS. However, checkboxes are center aligned for some reason. Anyway to counter this? I don't want to have to use attribute selection via css since they're not fully supported. ...

Different form ACTION depending on button pressed

I have a form and I would like the ACTION field to be different depending on the button pressed. For instance the form might get processed by different PHP files if I press button A or button B. How can I do this? Thanks! ...

How to declare a link without any content?

I want to declare a link without any content, instead I want to use a background image for it. But I can see the background only when I put something between <a></a> tags. How can I solve it? ...

Symfony forms: how to set default value for a textarea widget

I am using Symfony 1.3.2 on Ubuntu 9.10 I want to set the default value of a textarea widget, with data read froma adb. My code snippet in the template looks likes this: <?php $form['notes']->render(); ?> The API docs dont show how to do this - does anyone know how to do this? ...

Video with transparent background on page above image background.

Hi! I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man. So, can I embed video (without flash and any player controls) in page? Can I decode video with transparent background? Is there any codecs which support transparent background (al...

JavaScript - Is it possible to get height from div in separate page?

Hi, I'm wondering, is it possible to collect the height of a specific div container from a separate page with JavaScript? I'm using jQuery btw and I'm in need of comparing heights of div containers. Edit: To clarify a bit more, I load content from a specific div in a separate page using jQuery. This content is faded into a different co...

How to save/export a DOM element to an image?

Hi, I have a web page which has a form element (with its ID known) and inside the form there are multiple DIVs, and the position of each div may be changed. What I'd like to do is: a) Save the current state of this form // var currentForm=document.forms['myFrm'].innerHTML; would probably suffice... b) Save or export the entire for...

Ajax, Html: can't generate the content of SELECT tag

i have the following html code <select id="c0" name="countries" onchange="show_other()"> <option value="1">something</option> <div id="c1"> </div> </select> i have the option "something", and i want to generate other options via Ajax. but if i try to this document.getElementById('c1').innerHTML = xmlhttp.responseText it...

Pure HTML Music Player

How can I use pure HTML to make a browser-integrated flash-free online music player? Like, you click on a button, and the music starts playing. I have tried everything with <embed> and with(out) <noembed>, but none of it seems to work. I need it to work in Firefox. I have an MP3 file. EDIT: Actually, folks, I am SO sorry for asking thi...

360 degrees rotating view in JavaScript.

Are there any good JavaScript libraries that can do this ? These are usually done in flash I have found this plugin so far, looking for others to evaluate. http://jquery.vostrel.cz/reel ...

PHP Form POST to external URL with Redirect to another URL

So, what I am trying to accomplish is have a self-posting PHP form, POST to an external page (using CURL) which in turn redirects to another page. Currently, what is happening is that once I click "Submit" on the form (in contact.php) it will POST to itself (as it is a self-posting form). The script then prepares the POST using CURL an...