![]() |
| ||
| the title attribute of the SELECT tag is not supported???? I created a user registration page using ASP and Dreamweaver, I tried to create a drop down box filled with options from a database. I only wanted the box to contain one of each option but it contains every one, one for each user when i view this in firefox. when i view the page in explorer the box does not contain anything and the options are all listed below the box. part of the code is underlined, when i hover over it i get an message 'The title attribute of the SELECT tag is not supported [Netscape Navigator 4.0, Netscape Navigator 6.0]' I do not know what this error means, is this why the drop down box won't work?? heres part of my code, the line in red is the line that is underlined:- Dim rs_accesslevel Thanks! Any ideas gretaly apprecitated! GLT |
| ||
| Re: the title attribute of the SELECT tag is not supported???? 2 things: 1. Title is not a w3c standardized attribute for the SELECT tag. Don't use it http://www.w3.org/TR/REC-html40/inte...ms.html#h-17.6 2. You have an INPUT tag nested into your SELECT tag <td><select name="accesslevel" title="<%=(rs_accesslevel.Fields.Item("accesslevel").Value)%>"><input name="txtaccesslevel" type="text" id="txtaccesslevel" size="50">
Move this above or below the SELECT closing tag |
| ||
| Re: the title attribute of the SELECT tag is not supported???? Hi, Thanks for getting back to me. I moved the input line above and below the select bit but that just created an input box above or below the drop down box depending where i put it. Any other ideas?? or where exactly do you mean to put it?? Thanks! GLT |
| ||
| Re: the title attribute of the SELECT tag is not supported???? Perhaps I may be confused with the question, but the SELECT element is a dropdown list by nature. The INPUT element is another form element and the inclusion of it within the SELECT element is why you are seeing odd results. I'm thinking you are trying to make a combo box. I'd really just remove it alltogether. If you are looking to make a combo box where you type and find the item in a list, that's a different story and would require different code. Presumably, you would want to place the INPUT element directly above the SELECT element, but you would require JavaScript events to search the list. You would also need DHTML if you wanted the list to open and close like a combo box. I forgot one other item in the previous post. Use the DISTINCT qualifier in your SQL statement to avoid the duplicate entries. rs_accesslevel.Source = "SELECT DISTINCT accesslevel FROM users" |
| ||
| Re: the title attribute of the SELECT tag is not supported???? try following <td><input value="<%=(rs_accesslevel.Fields.Item("accesslevel").Value)%>" name="txtaccesslevel" type="text" id="txtaccesslevel" size="50"> |
| All times are GMT -4. The time now is 11:19 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC