html

Align Images used in <ol>

Hi, all. I have an ordered list for my horizontal navbar, but I'm using sprite images (for a, active & hover) instead of letting any text show. I'm trying to let the image appear on a row using float: left, but it's not happening. I think the next image appears behind the first. Here's my code: HTML: <div id="navbar"> <ol id="...

Vaadin radio button question

I want to display my radio buttons in 1 line such as: O Option1 O Option2 However with Vaadin I cannot accomplish this it seems like the following, O Option1 O Option2 here is my code: final List<String> options = Arrays.asList(new String[] { "hebele", "hubele"}); final OptionGroup group = new OptionGroup("...

Cleaning up HTML from textarea

Hi, I have a page with two textareas, where registered users can fill them with HTML codes. First one has TinyMCE (so HTML is cleaned up), but the other one does not, since I expect the code to be inserted as embed codes from other sites (mostly sites that provide maps, e.g. Google Maps, MapMyRace.com, etc). But problem is that those ot...

css body background image clickable

I need to place an advertisement as a background image of my webpage. What's the best way to make the body background image a clickable link? ...

is multiple sitemaps receommendable to a web portal

I have a cricket based portal check here cricket scores This site has near to millions pages. But is it advisable to have a multiple sitemaps in the website or not? if Yes, what Name shall we give for the second site map? sitemap2.xml does this work? Some where in the blog i have read that each sitemap should not have more than 1000 l...

Dynamically adding two form elements with jQuery

Hi guys, I am trying to create two form elements when the user clicks a button, which he can do 5 times, but I am new to jQuery so I am running into problems, here is the code: $(document).ready(function() { $('#btnAdd').click(function() { var num = $('.clonedInput').length; var numTwo = $('.clonedInputTwo...

Python how to search and correct html tags and attributes?

I have to fix all the closing tags of the <img> tag as shown in the text below. Instead of closing the <img> with a >, it should close with />. Is there any easy way to search for all the <img> in this text and fix the > ? (If it is closed with a /> already then there is no action required). Other question, if there is no "width" or "...

Html: how to calculate layout boundaries

Is it possible to calculate boundaries for a html layout block? For example there is <div id="area"> ... </div> and it's required to find out minimum size (width, height measured in pixels) to fit the #area into popup modal dialog. How stable are these approiaches? Thank you in advance! ...

Library to query HTML with XPath in Java?

Can anyone recommend me a java library to allow me XPath Queries over URLs? I've tried JAXP without success. Thank you. ...

a grid of divs with unkown and equal height

i have an unknown number of divs with unknown data in each div (unknown height) these divs have same width say 300px. i need to place them one after another so i get a grid as a result. all divs in each row should have same height so each row would be flat and the whole grid would look good. my current version does not work. it makes a ...

How to capture user input into a field one letter at a time

We would like to mimic taking user input one letter at a time (intended for children). Assuming they are going to type "hello" we would want to capture all the letters separately. (e.g. you will show something like 5 underscores to show that they have to provide 5 inputs). Assuming they enter h e l d (i.e. the last letter is a mistake) ...

Pass Values Between Two Forms

Hello, Is there any way to pass values between two forms. Let's say, I have two html form. At Form 1, there's one field called name and submit button. At Form 2, there's two field called name and email and submit button. What I want to get is, At form 1, when i fill Form 1 name field and click submit, it will carry me to form 2 and n...

HTML/CSS - create alpha mask over image

Hi, I'd like to create an effect in a site I’m building where an image is masked by an overlay. The overlay should create a “fade out” effect — I don’t actually want anything animated, but the overlay should make the image look as if it’s fading to the background colour at the edges. Something like this: http://imgur.com/fqtc9.png I p...

formatting code snippets on a web page

How do I add code snippets to a web page? I've built a jquery plugin for my front-end team and I want to build a quick page illustrating its use. I want to include some code and i've seen a few sites using stylized code snippets (colour coding, indentation etc). How is this achieved? ...

how can I play a sound clip on page load?

how can I play a sound clip on page load?Is there any javascript or jquery to do that?I am creating my page in php. ...

Hidden panel keeps on appearing when the page loads ...

Hello everyone... I have this div that is supposed to be hidden when the page loads and it would appear when clicking on a certain button. Although in the CSS class I added display:none to the class and in the JQuery I added ("$('.panel').hide()") the panel still appears when the page is loading, once the page loads it disappears ... A...

Freetextbox for WinForms

I would like to provide a textbox in a client WinForms application for setting up the body text of an email and I know there's the excellent Freetextbox for asp.net, but is there anything like it for Winforms? ...

How to insert an element at selected position in HTML document?

I want to insert an element(span,div etc) at the position determined by user selection of text in the document. I was able to get the element on which selection is made. But I am not able to get the exact position where the selection is made. For example: <span>this is testing string for testing purpose</span> In this, lets assume t...

Aligning images inside divs

I'm trying to fit three images inside a div, but I'm having trouble getting them to align properly. This is what I have in mind: But I can't for the life of me figure this one out. Can anyone please lend a hand? Thanks! ...

Append custom attributes to a DOM node

Possible Duplicate: Can I just make up attributes on my HTML tags? Hi, I am not sure if what I am asking is even possible, but I'd like to be able to add a custom (nonrendered) propery to an existing HTML DOM node. For example, if I have a simple DOM as below: <body> <p> <span id="aSpan"></span> </p> </body> .. I'd l...