Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Remember drop down selection!!

LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

I have two dynamic drop down menus where the first one filters the results
of the second one.

When a visitor selects an option from the first drop down and the form is
submitted to the same page, the second drop down works as it should, but the
first selection is re-set to the default option.

Is there a way so that the first drop down meu remembers what the visitor
selected so the visitor can see this?

Thanks
Andy


TOPICS
Server side applications

Views

972
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

Show us the page, please. This should be pretty simple, but it would depend
on how you have implemented the page, and how you are passing the value.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Andy" <andy@work.com> wrote in message
news:f2jp1c$gpb$1@forums.macromedia.com...
>I have two dynamic drop down menus where the first one filters the results
>of the second one.
>
> When a visitor selects an option from the first drop down and the form is
> submitted to the same page, the second drop down works as it should, but
> the first selection is re-set to the default option.
>
> Is there a way so that the first drop down meu remembers what the visitor
> selected so the visitor can see this?
>
> Thanks
> Andy
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

Hi Murray
The page can be seen at http://www.test4less.co.uk/leadsearch.asp

The drop downs are dynamic and the page has two forms which post the the
page.
The first drop down filters all of the manufacturers
The second uses quite a complex SQL statement that filters all the products
to populate the second drop down menu.

Thanks Murray
Andy


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:f2k7lp$40m$1@forums.macromedia.com...
> Show us the page, please. This should be pretty simple, but it would
> depend on how you have implemented the page, and how you are passing the
> value.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
> "Andy" <andy@work.com> wrote in message
> news:f2jp1c$gpb$1@forums.macromedia.com...
>>I have two dynamic drop down menus where the first one filters the results
>>of the second one.
>>
>> When a visitor selects an option from the first drop down and the form is
>> submitted to the same page, the second drop down works as it should, but
>> the first selection is re-set to the default option.
>>
>> Is there a way so that the first drop down meu remembers what the visitor
>> selected so the visitor can see this?
>>
>> Thanks
>> Andy
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

OK - this is how you are passing the selection in that first list?

results_manufacturer.asp?menuselect=e

and presumably, the value of menuselect will change depending on your
selection? So you would do this -

<option value="5"<% if menuselect='a' (response.write('
selected=\"selected\"')) %>>Alphatek</option>

and adapt for each option.

By the way - why do you have that annoying crawler on the status bar?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Andy" <andy@work.com> wrote in message
news:f2ka62$6td$1@forums.macromedia.com...
> Hi Murray
> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>
> The drop downs are dynamic and the page has two forms which post the the
> page.
> The first drop down filters all of the manufacturers
> The second uses quite a complex SQL statement that filters all the
> products to populate the second drop down menu.
>
> Thanks Murray
> Andy
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:f2k7lp$40m$1@forums.macromedia.com...
>> Show us the page, please. This should be pretty simple, but it would
>> depend on how you have implemented the page, and how you are passing the
>> value.
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Andy" <andy@work.com> wrote in message
>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>I have two dynamic drop down menus where the first one filters the
>>>results of the second one.
>>>
>>> When a visitor selects an option from the first drop down and the form
>>> is submitted to the same page, the second drop down works as it should,
>>> but the first selection is re-set to the default option.
>>>
>>> Is there a way so that the first drop down meu remembers what the
>>> visitor selected so the visitor can see this?
>>>
>>> Thanks
>>> Andy
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

HE!
I agree with the crawler, i HATE them - but my boss likes em!

Doh!


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:f2kb25$82d$1@forums.macromedia.com...
> OK - this is how you are passing the selection in that first list?
>
> results_manufacturer.asp?menuselect=e
>
> and presumably, the value of menuselect will change depending on your
> selection? So you would do this -
>
> <option value="5"<% if menuselect='a' (response.write('
> selected=\"selected\"')) %>>Alphatek</option>
>
> and adapt for each option.
>
> By the way - why do you have that annoying crawler on the status bar?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
> "Andy" <andy@work.com> wrote in message
> news:f2ka62$6td$1@forums.macromedia.com...
>> Hi Murray
>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>
>> The drop downs are dynamic and the page has two forms which post the the
>> page.
>> The first drop down filters all of the manufacturers
>> The second uses quite a complex SQL statement that filters all the
>> products to populate the second drop down menu.
>>
>> Thanks Murray
>> Andy
>>
>>
>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>> news:f2k7lp$40m$1@forums.macromedia.com...
>>> Show us the page, please. This should be pretty simple, but it would
>>> depend on how you have implemented the page, and how you are passing the
>>> value.
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>> ==================
>>> http://www.dreamweavermx-templates.com - Template Triage!
>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "Andy" <andy@work.com> wrote in message
>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>I have two dynamic drop down menus where the first one filters the
>>>>results of the second one.
>>>>
>>>> When a visitor selects an option from the first drop down and the form
>>>> is submitted to the same page, the second drop down works as it should,
>>>> but the first selection is re-set to the default option.
>>>>
>>>> Is there a way so that the first drop down meu remembers what the
>>>> visitor selected so the visitor can see this?
>>>>
>>>> Thanks
>>>> Andy
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

Explain to your boss the downside. You remove a very valuable function from
the status bar (I can see where a link is going to take me, and this
encourages me to continue browsing your site). If you obfuscate this
function, then I worry about *why* you are blocking me from that
information. In addition you create this continuing visual distraction that
draws my eye away from the meaningful content on the page.

Your boss needs a boot....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Andy" <andy@work.com> wrote in message
news:f2kbev$8d9$1@forums.macromedia.com...
> HE!
> I agree with the crawler, i HATE them - but my boss likes em!
>
> Doh!
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:f2kb25$82d$1@forums.macromedia.com...
>> OK - this is how you are passing the selection in that first list?
>>
>> results_manufacturer.asp?menuselect=e
>>
>> and presumably, the value of menuselect will change depending on your
>> selection? So you would do this -
>>
>> <option value="5"<% if menuselect='a' (response.write('
>> selected=\"selected\"')) %>>Alphatek</option>
>>
>> and adapt for each option.
>>
>> By the way - why do you have that annoying crawler on the status bar?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Andy" <andy@work.com> wrote in message
>> news:f2ka62$6td$1@forums.macromedia.com...
>>> Hi Murray
>>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>>
>>> The drop downs are dynamic and the page has two forms which post the the
>>> page.
>>> The first drop down filters all of the manufacturers
>>> The second uses quite a complex SQL statement that filters all the
>>> products to populate the second drop down menu.
>>>
>>> Thanks Murray
>>> Andy
>>>
>>>
>>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>>> news:f2k7lp$40m$1@forums.macromedia.com...
>>>> Show us the page, please. This should be pretty simple, but it would
>>>> depend on how you have implemented the page, and how you are passing
>>>> the value.
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>>> ==================
>>>> http://www.dreamweavermx-templates.com - Template Triage!
>>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>>> ==================
>>>>
>>>>
>>>> "Andy" <andy@work.com> wrote in message
>>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>>I have two dynamic drop down menus where the first one filters the
>>>>>results of the second one.
>>>>>
>>>>> When a visitor selects an option from the first drop down and the form
>>>>> is submitted to the same page, the second drop down works as it
>>>>> should, but the first selection is re-set to the default option.
>>>>>
>>>>> Is there a way so that the first drop down meu remembers what the
>>>>> visitor selected so the visitor can see this?
>>>>>
>>>>> Thanks
>>>>> Andy
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

Hi Murray
Not sure how to do that with my code.

This is what i'm using :

<select name="manufacturer" class="dropdown_form_box" id="manufacturer"
onchange='this.form.submit()'>
<option value="value">Please Select
Manufacturer</option>
<%
While (NOT RSManufacturers.EOF)
%>
<option
value="<%=(RSManufacturers.Fields.Item("ManufacturerID").Value)%>"><%=(RSManufacturers.Fields.Item("Manufacturer").Value)%></option>
<%
RSManufacturers.MoveNext()
Wend
If (RSManufacturers.CursorType > 0) Then
RSManufacturers.MoveFirst
Else
RSManufacturers.Requery
End If
%>
</select>


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:f2kb25$82d$1@forums.macromedia.com...
> OK - this is how you are passing the selection in that first list?
>
> results_manufacturer.asp?menuselect=e
>
> and presumably, the value of menuselect will change depending on your
> selection? So you would do this -
>
> <option value="5"<% if menuselect='a' (response.write('
> selected=\"selected\"')) %>>Alphatek</option>
>
> and adapt for each option.
>
> By the way - why do you have that annoying crawler on the status bar?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
> "Andy" <andy@work.com> wrote in message
> news:f2ka62$6td$1@forums.macromedia.com...
>> Hi Murray
>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>
>> The drop downs are dynamic and the page has two forms which post the the
>> page.
>> The first drop down filters all of the manufacturers
>> The second uses quite a complex SQL statement that filters all the
>> products to populate the second drop down menu.
>>
>> Thanks Murray
>> Andy
>>
>>
>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>> news:f2k7lp$40m$1@forums.macromedia.com...
>>> Show us the page, please. This should be pretty simple, but it would
>>> depend on how you have implemented the page, and how you are passing the
>>> value.
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>> ==================
>>> http://www.dreamweavermx-templates.com - Template Triage!
>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "Andy" <andy@work.com> wrote in message
>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>I have two dynamic drop down menus where the first one filters the
>>>>results of the second one.
>>>>
>>>> When a visitor selects an option from the first drop down and the form
>>>> is submitted to the same page, the second drop down works as it should,
>>>> but the first selection is re-set to the default option.
>>>>
>>>> Is there a way so that the first drop down meu remembers what the
>>>> visitor selected so the visitor can see this?
>>>>
>>>> Thanks
>>>> Andy
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

I will pass on the comments -


"Andy" <andy@work.com> wrote in message
news:f2kcf1$9lr$1@forums.macromedia.com...
> Hi Murray
> Not sure how to do that with my code.
>
> This is what i'm using :
>
> <select name="manufacturer" class="dropdown_form_box" id="manufacturer"
> onchange='this.form.submit()'>
> <option value="value">Please Select
> Manufacturer</option>
> <%
> While (NOT RSManufacturers.EOF)
> %>
> <option
> value="<%=(RSManufacturers.Fields.Item("ManufacturerID").Value)%>"><%=(RSManufacturers.Fields.Item("Manufacturer").Value)%></option>
> <%
> RSManufacturers.MoveNext()
> Wend
> If (RSManufacturers.CursorType > 0) Then
> RSManufacturers.MoveFirst
> Else
> RSManufacturers.Requery
> End If
> %>
> </select>
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:f2kb25$82d$1@forums.macromedia.com...
>> OK - this is how you are passing the selection in that first list?
>>
>> results_manufacturer.asp?menuselect=e
>>
>> and presumably, the value of menuselect will change depending on your
>> selection? So you would do this -
>>
>> <option value="5"<% if menuselect='a' (response.write('
>> selected=\"selected\"')) %>>Alphatek</option>
>>
>> and adapt for each option.
>>
>> By the way - why do you have that annoying crawler on the status bar?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Andy" <andy@work.com> wrote in message
>> news:f2ka62$6td$1@forums.macromedia.com...
>>> Hi Murray
>>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>>
>>> The drop downs are dynamic and the page has two forms which post the the
>>> page.
>>> The first drop down filters all of the manufacturers
>>> The second uses quite a complex SQL statement that filters all the
>>> products to populate the second drop down menu.
>>>
>>> Thanks Murray
>>> Andy
>>>
>>>
>>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>>> news:f2k7lp$40m$1@forums.macromedia.com...
>>>> Show us the page, please. This should be pretty simple, but it would
>>>> depend on how you have implemented the page, and how you are passing
>>>> the value.
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>>> ==================
>>>> http://www.dreamweavermx-templates.com - Template Triage!
>>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>>> ==================
>>>>
>>>>
>>>> "Andy" <andy@work.com> wrote in message
>>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>>I have two dynamic drop down menus where the first one filters the
>>>>>results of the second one.
>>>>>
>>>>> When a visitor selects an option from the first drop down and the form
>>>>> is submitted to the same page, the second drop down works as it
>>>>> should, but the first selection is re-set to the default option.
>>>>>
>>>>> Is there a way so that the first drop down meu remembers what the
>>>>> visitor selected so the visitor can see this?
>>>>>
>>>>> Thanks
>>>>> Andy
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

It is a usability problem. Please do tell him to pay attention to this! 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Andy" <andy@work.com> wrote in message
news:f2kcgm$9nc$1@forums.macromedia.com...
>I will pass on the comments -
>
>
> "Andy" <andy@work.com> wrote in message
> news:f2kcf1$9lr$1@forums.macromedia.com...
>> Hi Murray
>> Not sure how to do that with my code.
>>
>> This is what i'm using :
>>
>> <select name="manufacturer" class="dropdown_form_box" id="manufacturer"
>> onchange='this.form.submit()'>
>> <option value="value">Please Select
>> Manufacturer</option>
>> <%
>> While (NOT RSManufacturers.EOF)
>> %>
>> <option
>> value="<%=(RSManufacturers.Fields.Item("ManufacturerID").Value)%>"><%=(RSManufacturers.Fields.Item("Manufacturer").Value)%></option>
>> <%
>> RSManufacturers.MoveNext()
>> Wend
>> If (RSManufacturers.CursorType > 0) Then
>> RSManufacturers.MoveFirst
>> Else
>> RSManufacturers.Requery
>> End If
>> %>
>> </select>
>>
>>
>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>> news:f2kb25$82d$1@forums.macromedia.com...
>>> OK - this is how you are passing the selection in that first list?
>>>
>>> results_manufacturer.asp?menuselect=e
>>>
>>> and presumably, the value of menuselect will change depending on your
>>> selection? So you would do this -
>>>
>>> <option value="5"<% if menuselect='a' (response.write('
>>> selected=\"selected\"')) %>>Alphatek</option>
>>>
>>> and adapt for each option.
>>>
>>> By the way - why do you have that annoying crawler on the status bar?
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>> ==================
>>> http://www.dreamweavermx-templates.com - Template Triage!
>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "Andy" <andy@work.com> wrote in message
>>> news:f2ka62$6td$1@forums.macromedia.com...
>>>> Hi Murray
>>>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>>>
>>>> The drop downs are dynamic and the page has two forms which post the
>>>> the page.
>>>> The first drop down filters all of the manufacturers
>>>> The second uses quite a complex SQL statement that filters all the
>>>> products to populate the second drop down menu.
>>>>
>>>> Thanks Murray
>>>> Andy
>>>>
>>>>
>>>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>>>> news:f2k7lp$40m$1@forums.macromedia.com...
>>>>> Show us the page, please. This should be pretty simple, but it would
>>>>> depend on how you have implemented the page, and how you are passing
>>>>> the value.
>>>>>
>>>>> --
>>>>> Murray --- ICQ 71997575
>>>>> Adobe Community Expert
>>>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>>>> ==================
>>>>> http://www.dreamweavermx-templates.com - Template Triage!
>>>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>>>> ==================
>>>>>
>>>>>
>>>>> "Andy" <andy@work.com> wrote in message
>>>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>>>I have two dynamic drop down menus where the first one filters the
>>>>>>results of the second one.
>>>>>>
>>>>>> When a visitor selects an option from the first drop down and the
>>>>>> form is submitted to the same page, the second drop down works as it
>>>>>> should, but the first selection is re-set to the default option.
>>>>>>
>>>>>> Is there a way so that the first drop down meu remembers what the
>>>>>> visitor selected so the visitor can see this?
>>>>>>
>>>>>> Thanks
>>>>>> Andy
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2007 May 18, 2007

Copy link to clipboard

Copied

LATEST
<option value="<%=(RSManufacturers.Fields.Item("ManufacturerID").Value)%>"<%
insertmycodehere
%>><%=(RSManufacturers.Fields.Item("Manufacturer").Value)%></option>


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Andy" <andy@work.com> wrote in message
news:f2kcf1$9lr$1@forums.macromedia.com...
> Hi Murray
> Not sure how to do that with my code.
>
> This is what i'm using :
>
> <select name="manufacturer" class="dropdown_form_box" id="manufacturer"
> onchange='this.form.submit()'>
> <option value="value">Please Select
> Manufacturer</option>
> <%
> While (NOT RSManufacturers.EOF)
> %>
> <option
> value="<%=(RSManufacturers.Fields.Item("ManufacturerID").Value)%>"><%=(RSManufacturers.Fields.Item("Manufacturer").Value)%></option>
> <%
> RSManufacturers.MoveNext()
> Wend
> If (RSManufacturers.CursorType > 0) Then
> RSManufacturers.MoveFirst
> Else
> RSManufacturers.Requery
> End If
> %>
> </select>
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:f2kb25$82d$1@forums.macromedia.com...
>> OK - this is how you are passing the selection in that first list?
>>
>> results_manufacturer.asp?menuselect=e
>>
>> and presumably, the value of menuselect will change depending on your
>> selection? So you would do this -
>>
>> <option value="5"<% if menuselect='a' (response.write('
>> selected=\"selected\"')) %>>Alphatek</option>
>>
>> and adapt for each option.
>>
>> By the way - why do you have that annoying crawler on the status bar?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Andy" <andy@work.com> wrote in message
>> news:f2ka62$6td$1@forums.macromedia.com...
>>> Hi Murray
>>> The page can be seen at http://www.test4less.co.uk/leadsearch.asp
>>>
>>> The drop downs are dynamic and the page has two forms which post the the
>>> page.
>>> The first drop down filters all of the manufacturers
>>> The second uses quite a complex SQL statement that filters all the
>>> products to populate the second drop down menu.
>>>
>>> Thanks Murray
>>> Andy
>>>
>>>
>>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>>> news:f2k7lp$40m$1@forums.macromedia.com...
>>>> Show us the page, please. This should be pretty simple, but it would
>>>> depend on how you have implemented the page, and how you are passing
>>>> the value.
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>>> ==================
>>>> http://www.dreamweavermx-templates.com - Template Triage!
>>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>>> ==================
>>>>
>>>>
>>>> "Andy" <andy@work.com> wrote in message
>>>> news:f2jp1c$gpb$1@forums.macromedia.com...
>>>>>I have two dynamic drop down menus where the first one filters the
>>>>>results of the second one.
>>>>>
>>>>> When a visitor selects an option from the first drop down and the form
>>>>> is submitted to the same page, the second drop down works as it
>>>>> should, but the first selection is re-set to the default option.
>>>>>
>>>>> Is there a way so that the first drop down meu remembers what the
>>>>> visitor selected so the visitor can see this?
>>>>>
>>>>> Thanks
>>>>> Andy
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines