![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | conditional form action based on select value this doesn't work for me. what's wrong? tia, mcnewsxp <form action=<%If document.getElementById("select1") >= 9 Then %> "viewrecord03_04.asp" <%Else%> "viewrecord09_10.asp" <%End If%> etc... |
My System Specs![]() |
| | #2 (permalink) |
| | Re: conditional form action based on select value On Sep 3, 1:33*pm, "Michael Courter" <mcour...@xxxxxx> wrote: Quote: > this doesn't work for me. *what's wrong? > tia, > mcnewsxp > <form action=<%If document.getElementById("select1") >= 9 Then %> > "viewrecord03_04.asp" <%Else%> "viewrecord09_10.asp" > * *<%End If%> > * etc... reference the selectedIndex property. Try ... <form action=<%If document.getElementById("select1").selectedIndex >= 9 Then %> "viewrecord03_04.asp" <%Else%> "viewrecord09_10.asp" <%End If%> _____________________ Tom Lavedas |
My System Specs![]() |
| | #3 (permalink) |
| | Re: conditional form action based on select value i think the problem with my code is that the document object is no known at this point "Tom Lavedas" <tglbatch@xxxxxx> wrote in message news:6529084c-2701-4b18-9492-638e18ce965b@xxxxxx On Sep 3, 1:33 pm, "Michael Courter" <mcour...@xxxxxx> wrote: Quote: > this doesn't work for me. what's wrong? > tia, > mcnewsxp > <form action=<%If document.getElementById("select1") >= 9 Then %> > "viewrecord03_04.asp" <%Else%> "viewrecord09_10.asp" > <%End If%> > etc... reference the selectedIndex property. Try ... <form action=<%If document.getElementById("select1").selectedIndex >= 9 Then %> "viewrecord03_04.asp" <%Else%> "viewrecord09_10.asp" <%End If%> _____________________ Tom Lavedas |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Conditional execution based on app configuration | .NET General | |||
| Select Files - Disable or Enable Full Row Select | Tutorials | |||
| Conditional Formatting | Vista General | |||
| Conditional Copying of Files | Vista file management | |||
| Re: using xp based drive as slave on new vista based computer?? | Vista installation & setup | |||