html

How to put a scrollbar in list box?

I want to how to create a listbox with a vertical scrollbar in it.. ...

html button v.s. html submit?

Hello everyone, I have an input text box and a search submit button, and when user clicks the Search submit button, I want to redirect user to url http://testsearch/results.aspx?k=<value of text box k>, for example, if user put "StackOverflow" into text box and then clicks the search button, I want to redirect user to the following p...

How does HTML 5 differ from HTML 4?

I have seen HTML 5 coming up in near future. How does it differ from HTML 4, which has been 'in' for so many years in web development? thanks ...

row counter for html table row

I have HTML table in JSF web application. I am generating rows dynamically using <ui:repeat>. I want a counter for each row. How can I get this? Any help? Ssimilar to rowKeyVar in rich faces dataTable. ...

IE6 anchor wordwrapping (display:block, width:0)

Hello, Unfortunaly this site we're developing has to be IE6 compatible. It contains a horizontal block style menu, but there's still one more problem with IE6. I have the following code: <html> <head> <style type="text/css"> a { display: block; width: 0px; background-color: red; } </style> </head> <body> <a href="#">This is a anchor t...

How do I get text to display on top instead of on the side?

I have a definition list and I would like the text description to stay above the textbox. The text however is to the left of the box. Here is the html. <dl> <dt> <label>Phone Number</label> </dt> <dd> <input name="phone" type="text"/> </dd> </dl> Here is the css. dl {font:normal 12px/15px Arial; position: relative; wi...

php text box enter event

hello all, i was created one text box and autosuggestion in json used php. enter text box input "a" and autosuggestion output "a" related keywords, i was select any one keyword using keyboard "Down arrow or Up arrow" and "Enter" key pressed. the form action GET method post only "a" letter, not selected words. i want selected words post i...

can't get html td element using javascript in jsf application

Hi, <table> <tr><td id="myId"> <input type="text"> </td></tr></table> and in JavaScript document.getElementById('myId'); This is not working in JSF application. However, the same is working if I save the generated HTML in my system and open it . Any Help ? ...

Rails plugin to clean up (reformat) html output?

Is there any plugin (gem) that after rendering page can clean and reformat it? By cleaning I mean removing unnecessary new lines and whitespaces. ...

Python - reading checkboxes

Hello. I have a few checkboxes with common name and individual variables (ID). How can I in python read them as list? Now I'm using checkbox= request.POST["common_name"] It isn't work properly, checkbox variable store only the last checked box instead of any list or something. ...

HTML CSS - fieldset containers do not line up

I am trying to move away from tables but it's proving too difficult. This is the webpage "http://outsidemma.com/index.php" I don't understand why the two green boxes don't align properly on Chrome and older versions of Opera. This works perfectly well with firefox 3.5 and IE8. I would like to know the reason behind this strange behav...

CSS file is not loading?

I am having a JSP file with the below codes <HTML> <head> <link rel="stylesheet" type="text/css" href="../CSS/home.css" /> <link rel="stylesheet" type="text/css" href="../CSS/left.css" /> <script type="text/javascript" src="../js/friend_request.js"></script> </head> <body> <div class="menu"> <form name="search_form" method="p...

Problem with horizontal scrolling div

edit: this problem was already fixed and this question was already answered by myself, but it was not marked as answered because I couldn't mark my own answer as accepted. I'm trying to make a div with horizontal scroll only, and I achieved this by using spans with white-space:no-wrap within a div with overflow-x:scroll. The problem i...

black image when forcing download

when i click a button the browser force the image to download the code work it download the image with the right size but it's all black im using this code : // get attachment location $attachment_location = "files/image.jpg"; if (file_exists($attachment_location)) { // attachment exists // send open/save...

Unwanted space producing at each side in browser for wrapper. Why?

I want my background to cover the total width of the browser like in facebook website http://www.flickr.com/photos/41695354@N08/4228675694/ but my background gives gaps on both side of the browser (left and right) http://www.flickr.com/photos/41695354@N08/4227911233/ why this happens?? Help me my css body { color:#000000; backgrou...

Removing the <script> elements of an HTML

Hi, I'm using Ruby, with the Nokogiri module, and i want to get the content of the body without the script elements. Nokogiri parse uses XPATH or CSS 3.0. XPATH i really dont understand, and i can't find the CSS selector to achieve my goals. ...

sticky footer question

Hello everybody, I've browsed to all question related to "sticky footer" and nothing helped me because my #content div is doesnt not always have sufficient content to push footer to the bottom, here is the code I've used to achiveve this but apparently I did something wrong: CSS: /* FOOTER FIX */ html, body, div#container { he...

XMLHTTPRequest.status returns 0 and responseText is blank in FireFox 3.5

I am trying to hit a third party URL to get the XML response and to show the reposne into my webpage. I get a proper response with status as 200 and readystate as 4 in IE and Safari browsers. But In FF3.5 and Crome i get XMLHTTPRequest status as 0 and reponseText comes as a blank string. I tried many options writing the normal XMLHTTPReq...

error on submitting form when inserting <, > characters into inputs

I have a usual html form with text inputs inside of it, and everything works, but if I will insert some > < characters in a input than I get this error: A potentially dangerous Request.Form value was detected from the client anybody knows how to handle this stuff ...

PDF Report generation

EDIT : I completed this project using ABCpdf. For anyone interested, I love this product and their support is A+. Everything I listed as a 'Con' for the HTML -> PDF solution was easily doable in ABCpdf. I've been charged with creating a data driven pdf report. After reviewing the plethora of options, I have narrowed it down to 2. I ne...