I want to have a nice little icon that, when clicked will clear the text in the <INPUT> box.
This is to save space rather than having a clear link outside of the input box.
My CSS skills are weak... Here is a screenshot photo of how the iPhone looks.
...
When you choose Print Preview from Internet Explorer File menu,
the Preview dialog appears correctly, but may show the html some page instead of displaying the all preview. and the other text of htmal page display on the next print preview page.
...
If user select an option from dropdown it will shown it a textbox but if he select option having value "Other" then a row will appear to type value for other.
my code works fine except when option value is not equal to "Other"
<script type="text/javascript"><!--
function setAndReset(box) {
if(box.value == 'Other'){
$("#ShowHide").h...
I have been trying to highlight a radio button with CSS but have been unsuccessful to get styling to work in FireFox. I see some methods of using images to render highlighting. Is there a preferred way to handle radio button highlighting across multiple browsers?
Example
<input type="text" style="border-color:#FF0000">
<input type="r...
i am filling a textarea with content for the user to edit.
is it possible to make it stretch to fit content with css (like overflow:show for a div)?
thanks :)
...
Prior to submitting a form, I would like to check if a file has been attached and pop up a warning message saying that a file needs to be attached if it hasn't been. I was wondering how to accomplish this using JavaScript or Prototype or JQuery etc?
...
This previous Q about a div positioning problem in IE gave several answers where they told me to use conditional commenting.
http://stackoverflow.com/questions/2803199/how-come-this-relative-positioned-div-is-displayed-differently-in-ie
How does it work, I mean how do I implement conditional comments?
Ex:
<div class="normal"></div...
I have this code:
<body onLoad="subcatSelection();">
The function is inside a .js file which is included with this code:
<script type="text/javascript" src="bincgi/search_lists.js"></script>
The function contains an alert('hello'); just for testing purposes to see if it gets called, but it doesn't.
The "Page error" or whatever...
I know that is a very embracing question, but I have just started with Ruby on Rails, and still have a long way with CSS and HTML.
There are lots of books about CSS and HTML patterns, but I would like to know what is really applied to actual webpages.
For example, what's the best way of doing a simple webpage with a lateral menu, a logo...
Hello ,
I have a search form.When user post the search form i take the user to the result page which has results of the search.Now if the user click on the back button of the browser ,i want that he should go to the search page form filled with his values.I am using java
...
I am trying to output a DOM that contains elements such as to an html file, but it will show &nbsp; in the output, which is obviously not desirable. My code is as follows
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.METHOD, "html");
Result re...
Hey,
i've another question about web-programming.
I programmed a login script, but everytime when i try to login it says that i've send the header informations already.
Here are the 2 files:
<?php
if($_GET['logout'] == 1) {
setcookie('authorized', 1, time()-3600);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
Well, I curious as to the nature of Radio groups and dropdown lists in HTML. I have found that radio buttons are difficult to style but I would like to style my elements for required fields. I asked a previous question regarding styling radio buttons and giving a border color like you can do with text boxes, example:
<input type="text"...
In safari 4 and all explorer browsers, whenever I try to call a function inside a javascript file which contains this function below, that first function isn't called.
So calling function1 will not work if function2 is inside the same .js file, explanation?
Here is the code which makes the problem. Whenever I remove this function, ever...
I have a page that allows a user to choose some things in a form and it will calculate the weight using javascript. It breaks it up into 5 variables that I need to send to another page. Originally I was just having it put the variable into a text box and then I was posting that text box. However I dont want to have 5 text boxes. So now I...
I have an XML file with company data in it, for 30 companies across 8 industries, on a portfolio page. The user has the option to sort this data by Industry, and this XML file will be added to constantly.
This sorting is done in my XSL file using <xsl:choose>. Example:
<xsl:when test="(invest[@investid='con'])">
<xsl:for-each selec...
hi...i want to extract url from href of a webpage...for that i m using the regex pattern as
"(?(http:[/][/]|www.)([a-z]|[A-Z]|[0-9]|[/.]|[~])*)"
to extract the href from html i used this pattern
@"href=\""(?[^\""#]?(?=[\""#]))(?(?#{2}[^#]?#{2})*)(?#[^""]+)?"""
but the problem is...it do not extract urls from the href but urls like "ww...
I've got some html that looks like this:
<ol>
<div>
<li>one</li>
</div>
<div>
<li>two</li>
</div>
<div>
<li>three</li>
</div>
</ol>
Which looks like this in Chrome/Firefox:
1. one
2. two
3. three
But looks like this in IE:
1. one
1. two
1. three
If I change the code so that the li element is the parent of the...
I'd like to use the CSS property position:fixed to fix the position of an element but at the same time prevent the element from being positioned over my footer when the user scrolls to the bottom of the page. Is there a way of stopping an element from showing over a footer in this way?
...
I am learning HTML and I have a good book to learn with but my cousin told me that I should pick a fun project to learn how to program but im not sure what I should do.
what is the most fun project to do when you are learning HTML?
...