html

Is it possible to create a table within a <select> tag?

I'm looking to create a select statement where each option contains quantity and price for an item we're selling. I thought I would create a table where for every row, quantity would be in one , and price would be in the other . I can't seem to get this to work in a select statement. I also tried using tags with a float-right and float-...

Strange class behaviour; Gets applied to drop list option when it shouldn't...

This is kindof hard to explain... I have this class: .nav_option_main { background-color: #FC9; } I have two drop-lists, let's call them Drp1 and Drp2. Drp2 is populated depending on Drp1:s value, using javascript. Some values in Drp2 has the above class applied to them, but only some. Now, here is the strange problem, lets say...

How to use JavaScript to provide users with multiple options of types of data to enter

I currently have a page that allows a user to enter different types of database entries via a select("questions" for a survey), i.e. Multiple Choice, Text, Drop-down, etc. Right now this is done using the following code: <form enctype="multipart/form-data" action="" method="POST" id='mainform'> <!-- Multiple Choice Div --> <div id="mc"...

Do I need AJAX and ASP.NET for what I'm doing?

Hi folks. Easy question. I used to develop websites back in the days of "classic" ASP, and when I'm asked to do a quick and dirty website for family or friends now, I still resort to direct HTML/ASP and some basic CSS and Javascript - I can get the sites up pretty quickly this way. However, I've had a few requests to design and develo...

Content in floated divs causes div below to drop

I'm displaying WordPress posts horizontally using floated divs. I've got it working fine, but when the divs move to a new row, if the paragraph text inside each floated div is too long, the div immediately below it drops. Furthermore, each floated div is affected by the length of the divs above it. How do I make them flow naturally wit...

Visual studio asp.net sql Server insert form

I have to do this thing for work that's really just a formality. Normally I'm a linux/UNIX guy but they're making me do this. I need to have an asp webpage that displays data from two different database servers. This is easy -- just a drag and drop in visual studio. The problem is I also need a way to insert a new row into a table on the...

Drag and drop a link on the desktop to create a shortcut

My client asked me a interesting thing today. Drag and drop a link in the browser on the desktop to create a shortcut to the linked webpage. We have a web-application and it could be very good to enable the user to directly connect their application. Do you have any idea of how to do that ? ...

How Can I minimize the HTML code by making it one line of code?

So I have made a web page of HTML, Inline CSS and JS. Since this page will be produced through JS function opened.document.write(); I would like to put all the web page code into one line that can be taken in one of the previously mention function instead of repeating the same function for every new line. I can't affors doing this man...

parse html in adobe air

I am trying to load and parse html in adobe air. The main purpose being to extract title, meta tags and links. I have been trying the HTMLLoader but I get all sort of errors, mainly javascript uncaught exceptions. I also tried to load the html content directly (using URLLoader) and push the text into HTMLLoader (using loadString(...)) b...

How To Create Nested Form in Asp.net

I have a simple website and I use masterPage for designing my template. everythings work fine, but when I add a Custom (google) Search Box in it my pages correpted. infact asp does not support Nested Form and as you all know google use a simple form to get queries from the users. so at first I redesign my site and put 2 Form in it. On...

jQuery - get a certain range of items within an HTML drop-down menu.

Hi, I have a range of items in an HTML drop-down menu that I need to find with jQuery so I can then hide them [using .css('display', 'none')]. They are (in this example) all the ones between <option>---- Articles</option> and <option>---- Jargon Buster</option> except for the first six items in this range! Other than these first six,...

How do I make the padding of a link clickable in IE 6?

By default, only the text of links is clickable in IE 6. I’d like to make the entire area inside the link (i.e. including padding) clickable as well. I also need this area to be transparent, as the link covers half of a photo. Adding a background color makes the padding area clickable, but defeats the object, as the link is hidden. I c...

Why wont this class be applied to the image?

I have some js code which generates an image-tag like this: main_pic_div.innerHTML ="<img src='"+path_big_image+"?"+Math.random();"' class='shadow'>"; But the class wont be applied to it... Here is what you get when you 'view source' in firefox: <img src="ad_images/Bilar/441372870_1.jpg?0.6932381395385144"/> The class isn't ev...

Create an html table like this one

Hello guys I have a table in DB that has messages exchanged between groups and I need to create a table like this one (messages exchanged between 2 groups): knowing that Gr1,.... are group names from DB and numbers are from DB too. Edited to add sQL query (given by Sarah in comments -below): (SELECT COUNT( Msg_ID ) AS msgcount, Gr...

Content do not appear in iframe until i use the edit button in firebug

Its getting me crazy in FF. I tried the same page in Chrome and content appears instantly. I have an iframe that is loading a chart from another page. The problem is that the chart do not appears until I inspect the element and click on the edit element button. Once I add space after the src property in the html code (see below for bet...

html:title in pure XML document

I decided to use pure XML+CSS instead of (X)HTML for my webpage. I use and with no problems. However I can't specify webpage's title. Document looks like this: <?xml version="1.0" ?> <?xml-stylesheet type="text/css" href="style.css"?> <html:html xmlns:html="http://www.w3.org/1999/xhtml"&gt; <html:head> <html:title>FooBar</html:title...

CSS letter-spacing parts of a word

I want to do something like this in HTML: "T i t l e" The W3C recommends using the CSS property letter-spacing rather than inserting spaces. So, I can do the following: &quot;<span style="letter-spacing: 0.5em;">Title</span>&quot; which gives the following result: "T i t l e" (sometimes IE), "T i t l e " (all other browsers) The a...

How to create Bold data in MySQL database text field?

Is it possible to create bold text in a MySQL database text table field? We are putting our articles in our database and I want to create bold titles and subtitles. Is this possible? Thanks ...

Possible to Prevent Enter From Submitting a Form in Javascript From Certain Input Fields Only

I have a form for which onkeyup triggers the creation of a suggestions box for certain fields. I am able to capture the keystrokes for the up arrow, for the down arrow and for escape and use them accordingly to move around in the suggestions box or close it. I would like to use enter to move their selection into the input field that tr...

HTML support for column formatting using GWT?

In GWT I am using the following CSS to apply a format: .watchListHeader { background-color: #2062B8; color: white; font-style: italic; } Here is what I get when I apply the format in two different ways. stocksFlexTable.getColumnFormatter().addStyleName(0, "watchListHeader"); stocksFlexTable.getRowFormatter().addStyleName(0,...