Ask a Question related to Dreamweaver AppDev, Design and Development.
-
gwalt #1
List Menu, Javascript and Form Submit
I am using a list menu to perform two tasks. First, it toggles a show/hide
area based on the selected value using javascript. The I use an insert record
to send the selected value to my DB. Here's my problem. My javascript
show/hide region triggers based on the list menu 'value' field. Several items
in my list menu need to show/hide the same region, but I need to send different
values to my DB. In order for the javascript to work, the list menu 'value'
fields must be the same, but this interferes with getting the correct value
into my database. In summary, is there a way to send anything other than the
'value' field to the DB when the form is inserted?
gwalt Guest
-
How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In... -
List/Menu Form hides dropdown Menu
http://2006.maximizer.com/about/customers/index.html when you scroll over 'company' in the main navbar at the top of the page, you'll see what... -
List/Menu Form item
When the List/Menu form item is selected, what are the differences between specifying "List" or "Menu"? Brendan -
Form List problem with Javascript
I have a list that is being generated dynamically from my MS SQL database. It basically lists a series of events in the database as the labels and... -
How to submit form and change value with JavaScript function?
I have a problem. I would like to change a value from textbox with JavaScript before I submit the form (submit updated value). Can anyone please... -
Manuel Socarras #2
Re: List Menu, Javascript and Form Submit
1.- you could send to the DB the text the user sees in the dropdown:
selectName.options[selectedIndex].text
or
2.- you could have an array with the values you want to insert into the
DB and access them using the selectedIndex property to point to the
correspondent element in the array
HTH,
manuel
gwalt wrote:
> I am using a list menu to perform two tasks. First, it toggles a show/hide
> area based on the selected value using javascript. The I use an insert record
> to send the selected value to my DB. Here's my problem. My javascript
> show/hide region triggers based on the list menu 'value' field. Several items
> in my list menu need to show/hide the same region, but I need to send different
> values to my DB. In order for the javascript to work, the list menu 'value'
> fields must be the same, but this interferes with getting the correct value
> into my database. In summary, is there a way to send anything other than the
> 'value' field to the DB when the form is inserted?
>Manuel Socarras Guest
-
gwalt #3
Re: List Menu, Javascript and Form Submit
Hi Manuel. Thanks for your post. I like option #1. How would I incorporate
your snip of code into my code below? <select name='property_type'
id='property_type'
onChange='javascript:expand(document.getElementByI d(value))'>
<option value='Home'>Home</option> <option
value='Condo'>Condo</option> <option value='RentorLease'>
Rent or Lease</option> <option value='VacationRental'> Vacation
Rental</option> </select> Thanks for your help, Mark
gwalt Guest



Reply With Quote

