html

Styling textbox of an HTML file input

Hi, I have an asp.net 2.0 web app where I use C#. I have an HTML file input control that I would like to style, but I can't seem to find a way to do it. I actually wanted to change the color of the textbox. I looked online but I couldn't find any proper solutions. Can anyone help? Thank you. ...

Li with float in IE6/7. It disappears?

Hi guys. Try test this code in IE 6/7: <html> <head> <title>Title</title> </head> <body> <ul> <li style="float:left">huisashaiuhs iuhuiahsiuhsaiu</li> </ul> </body> </html> Where is the circle of LI? I already do ALL types of workaround, in UL and LI. Nothing, NOTHING works. Do you have any idea? (BTW already tried hasL...

Check if checkboxes are selected on page load and add a class to parent html li

Im looking a way to do it with prototype, this js, needs to loads with the page and interate over all the elements (inputs - checkboxes, in this case) with the given id and assign a class to its parent <li></li> The JS is: function changeSelectionStyle(id) { var inputId = id.substr(0,id.length-2); if(document.getElementById(inputId)...

Shorter URL in Groovlet

Consider the following Groovlet: html.html { head { title("Groovy Test") } body { center { img(src:"getPlot.groovy?name=name&value=value") } } } Is there a better way to generate the URL? I'm looking to eliminate the explicit var/vals from the URL. ...

How do I make a div resizable in the browser?

I have 2 divs...each are float left, and each have a "width". When I resize my browser, the right div goes down to the bottom of the left div. Why? I'd like it so that during resize, it stays there. ...

Create a new webpage using a WCF service

Hello, I'd like to create WCF operation contract which consumes a string, produces a public webpage and then returns the address of this new page. [ServiceContract(Namespace = "")] public class DatabaseService { [OperationContract] public string BuildPage(string fileName, string html) { //writes html to file ...

Vertically And Horizonatally center main wrap div

Now i try <html> <head> <title>?????????????????</title> <style type="text/css"> body { margin-left: auto; margin-right:auto; } #wrap { background: black; margin-left: auto; margin-right:auto; height:450px; width...

how can i have a working dropdownlist with links from a csv in php

I have a website that loads a CSV, divides it into parts, and shows these parts. There are 7 parts, and since it is for a music store it is sliced like this: the name of the product the subname the price the stock in one shop the stock of the other shop the group name the brandname What i have now is that it shows 12 products on 1 p...

<span> containing 3 overlapping images has 3x the necessary width

Hi guys, I have a element, containing three overlapping images. Inspecting the element in Chrome shows this: <span id=​"span1">​ <img id=​"img1" src=​"images/​progressbar.gif" width=​"120" style=​"position:​ relative;​ z-index:​ 3;​">​ <img id=​"img2" src=​"images/​progressbar.gif" style=​"width:​ 120px;​ height:​ 12px;​​ posit...

Is there a tag in XHTML that you can put anywhere in the body - even inside TABLE elements?

I would like to be able to place an empty tag anywhere in my document as a marker that can be addressed by jQuery. However, it is important that the XHTML still validates. To give you a bit of background as to what I'm doing: I've compared the current and previous versions of a particular document and I'm placing markers in the html whe...

java web application best practices

Hi all I'm trying to figure out the optimum way to develop and release a fairly simple web application, and I'm running into several problems. I'll outline the decisions I've made, because somewhere I've clearly gone off the rails.. Hugely grateful for any help! I have what I think is a fairly simple web application. It contains a coupl...

Open source web design toolsets

I'm looking for recommendations on an open source toolset for WYSIWYG HTML/CSS design. What you have you found to be valuable in your work? ...

Check if cookie exists if not create it.

TLDR: Want to check if cookie exists, if it doesn't create it. Am using jquery1.4.2 and jquery cookie, I know this is probably very simple but I just cant get my head right at the moment. I want to: Check to see if a cookie with name of "query" exists If so nothing. If not create a cookie "query" with a value of 1. But only if i...

Use database field maxlength as html layout input maxlength best practice. asp.net mvc

Hello everybody, There are string length limitations in database structure (email is declared as nvarchar[30] for instance) There are lots of html forms that has input textbox fields that should be limited in length for that reason. What is the best practice to synchronize database fields and html layout input fields length limitations...

html post issue

i have the following html code : <FORM name=frmmail> <input id="dochtmlContent" type="hidden" name="dochtmlContent" value="oldValue"/> <script>document.dochtmlContent="newValue"</script> </FORM> and later on in a javascript function (which is called upn submit): alert(document.dochtmlContent); document.frmmail.method = ...

What do browsesr use to auto suggest values in web forms?

If I come back to a web site after having filled in a form previously, the browser remembers my username (for example). I'm not talking about cookies remembering user names and passwords, but the way a browser will suggest a value for a previously submitted field. What controls this behaviour? My issue at the moment is that I have logi...

Add custom attribute to HTML tags

Hello All: I am adding custom attributes to my HTMLtags something like <li customeId="1"> I am to access this custom attribute in IE but in firefox, I am not able to get the values of these attributes. Any suggestion on how to access custom attribute in FireFox or any other way. I am using HTML 4 for development. Code to access: ...

Lightbox-style dialog shows below YouTube movie on Mac OS 10.6

This is a "but it works on my machine" one and could be tricky: I have a lightbox-style HTML dialog that shows a menu on top of a web page. It can be injected into any web page via a JavaScript bookmarklet. One of my users is trying to use it on YouTube.com with the result that the flash movie is rendered on top of the dialog (a div w...

Sending jQuery.ajax data simultaneous to a form submit

I have a bit of a conundrum. I have a form which has numerous fields. There is one field for links where you enter a link, click an add button, and the link(using jQuery) gets added to a link_array. I want this array to be sent via the jQuery.ajax method when the form is submitted. If I send the link_array using $.ajax like this: ...

create UIWebView having variable number of rows

How could I create UIWebView having variable number of rows With each row to have the same layout, is it essentially a DHTML question? ...