ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2004, 10:45 PM
mitulpatel mitulpatel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Maryland
Posts: 85 mitulpatel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to mitulpatel
Question Converting ASP Drop-down box to horiz. links

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

Reply With Quote
  #2  
Old February 3rd, 2004, 08:59 AM
mitulpatel mitulpatel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Maryland
Posts: 85 mitulpatel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to mitulpatel
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Converting ASP Drop-down box to horiz. links


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT