|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have code to present on this forum, but not with me at the moment. This is what is happening now. On my page there is a drop down box that calls on an onChange javascript function. The drop down box dynamically displays locations depending on the location of the cars.
Therefore...if Toyota Camrys are in Philadelphia and New York, the drop-down box will display: ALL, Philadelphia, and New York. Selecting one will filter out only those in that location. What i want to do is...change it so...it displays dynamically the locations horizontally...here is an example: PREFERED LOCATION? ALL PHILADELPHIA NEW YORK (all are links to filter out those that do not match the location). i need to do it to save space and make it more user-friendly. I understand that it's pretty simple, but i need help to get started. Fast response is greatly appreciated. Thanks |
|
#2
|
|||
|
|||
|
Code for Drop-down box
Here is the code I need to change. Here is also the GoMall function:
<SCRIPT LANGUAGE="JavaScript"> <!-- function GoMall() { var idxMall = document.frmSearchNew.lstMall.selectedIndex var txtMall = document.frmSearchNew.lstMall.options[idxMall].value if( txtMall.toUpperCase() == "ALL" ) txtMall = "" window.location.href = "resultsa2004.asp?lstMall="+txtMall } // --> <TD width="234" align="center" valign="top" colspan="2" > <font face="Verdana" size="1" color="black"><br> Preferred Location?<br> <% '=============== FIX CODE ========== if session("lstMall") = 'lstMall' response.write "<select name='lstMall' size='1' onChange='GoMall()'>" response.write "--All Locations--" do while not oRS.EOF response.write FMallSel(countMALLS) oRS.moveNext LOOP response.write "</select>" %> I want to change this so its dynamically horizontal, instead of in a drop-down box. Any help would be greatly appreciated. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Converting ASP Drop-down box to horiz. links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|