html

Dynamically Show/Hide Radio buttons of a Radio button group using JavaScript

Hi, I am looking for a way to Show/ Hide some of the Radio buttons of a Radio button group using JavaScript. How can this be achieved? Thanks ...

How to parse javascript for links with java?

I'm writing a program (in Java) that needs to extract links from webpages. I'm using htmlParser (http://htmlparser.sourceforge.net/) but I'm only able to extract html links (defined with <a href="...">) and I don't know how to handle javascript code to extract links from... can you help me?? ...

Should I use the <p /> tag in markup?

I have always used either <br /> or a <div/> tag when something more advanced is necessary. Is use of the <p/> tag still encouraged? ...

How do I dynamically show and hide an entire TabContainer using DOJO?

DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The first thing I tried is setting style.display = "none" to start, and then setting style.display = "block" on the click event. Unfortunately, this only partially works- th...

How to use <base /> to redirect links?

I have an info page I've written in plain HTML. All the image links are like so: <img src="/images/image.png" /> so that they refer to the root of the web site. However I want to look at the page with the images embedded before updating it. In chrome, <img src="/images/image.png" /> looks in file:///c:/imgs/. However I want to redir...

example for using streamhtmlparser

Can anyone give me an example on how to use http://code.google.com/p/streamhtmlparser to parse out all the A tag href's from an html document? (either C++ code or python code is ok, but I would prefer an example using the python bindings) I can see how it works in the python tests, but they expect special tokens already in the html at w...

HTML/CSS: One element, 1 pixel high, 100% wide, 0 images, single color, all browsers

Hi I'm looking for a way to do something which in my opinion should be super simple, but I couldn't figure it out... I want a graphical element on my web page which is exactly 1 pixel high, 100% wide and has a certain color, let's say red. It should look exactly the same in all browser and should preferably not break the semantics too ...

How can I create a box big enough to contain whatever content I put in it?

Here is a link to my problematic page: http://www.studioteknik.com/lamouvance/programmation.php I'm trying to have a box be as big as the content injected into it (with PHP). It works on IE6 but not in Firefox... maybe I have done too many tricks, that the world is now upside down... Please, help! I'm sure it a one line solution.....

Difference between Dynamically changing pages vs 2 static pages

I want to build a site that will ask if the user is male of female and then use that information to change all the pronouns on the page(s) to match the user selection. So if you enter male, then the page(s) will change all personal references to (him, his, he, etc). My choices are: 1) build 2 sites and have the user input direct the user...

How can I remove a table from an HTML document?

I'm upgrading a set of web pages to a new system, and I want to strip out and replace the boilerplate at the top of each page, and replace it with new boilerplate. Fortunately, each page has a content table, and no tables before it. I want to do something like: $contents =~ s/^.*<table/$newHeader/ This only works for the first line of...

Which language is best for this editoral and op-ed aggregator project?

I'm looking for an aggregator for the editoral and op-ed pages of a bunch of English language newspapers I want to follow. The objective is to generate an HTML that is just a collection of editorial pieces from the dozen newspapers I want to follow internationally, so that I can print them off in the morning. Since this is a very narrow...

Setting the correct orientation for scrollbars in right-to-left pages.

I'm working with right-to-left layouts at the moment (think Hebrew or Arabic). In RTL, the page is generally flipped horizontally. However, I can't figure out how to change the orientation of the scrollbars. I would assume that the scrollbars should appear on the left side of a scrollable element, not the right side like it does in an...

Are there any issues with using Niceforms?

I just came across Niceforms and they look..well, nice. I was wondering if anyone has used these? Are they fully cross browser compatible? Are there any other issues? ...

Javascript: Adding attribute dynamically to the <html /> tag

I'm trying to add FB xmlns attribute to the document's <html> tag (<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"&gt;) dynamically. For some reason adding it like below does not work: htmltag = document.getElementsByTagName ('html'); htmltag[0].setAttribute("xmlns:fb","http://www.facebook.com/2008/fbml");"); How ...

How to secure a static HTML link

The company that I work for is wanting to provide a means of allowing our client to provide links to our site for the purposes of allowing their own clients to schedule a payment to them through us. We want the solution to be as seemless and easy to use as possible. Our clients are not likely to have the ability to do any sort of progr...

little folding triangles?

Based on the style of the 'turning' triangle that opens up a sub menu. Say I had a form that had lender name address city.... how would I add extra section to that form for a second lender name address.... ? Not many people are going to need this on my site but the one's that do, must have the extra fields. I would like to conceal the e...

How do I disable html copying from a webpage, so that only text gets copied?

Is it possible to have JUST TEXT copied when a user copies a url from a webpage to an HTML-enabled application such as Word of Outlook? Perhaps there is something I can do in Javascript? I know how to disable Copy + Paste completely, but I really need to disable HTML copying only. Thank you very much. ...

How do I reduce the vertical space between list items in an unordered list?

I've got a very simple html unordered list: <ul> <li>First</li> <li>Second</li> </ul> The problem is that the default styling for such a list in firefox leaves a lot of space between each list item - about the same as between paragraphs in a <p> tag. My google-fu is proving uncharacteristically useless today - how do I reduce that ve...

How do I scroll down to specified ID Tag on page load?

as title suggests. id string is passed to view as ViewData variable. ...

Standard way to detect when focus leaves an element

How can I, in a standard way, detect when focus leaves an element or any of its child elements. blur won't do since it's fired when the focus goes into a child element. IE provides the incredibly useful event focusout for this (it's like blur, but bubbles), but How can I do it in a standard way, except for attaching a blur handler to a...