Google Answers Logo
View Question
 
Q: Dojo AJAX Framework Javascript ( No Answer,   1 Comment )
Question  
Subject: Dojo AJAX Framework Javascript
Category: Computers > Programming
Asked by: garthbrown-ga
List Price: $15.00
Posted: 15 Nov 2006 20:24 PST
Expires: 15 Dec 2006 20:24 PST
Question ID: 783136
I need Dojo/JavaScript help. I would like to use the Dojo AJAX
framework to populate two ComboBoxes.  I get the first box populated,
but I need to know how to (dynamically) populate the second based on
the choice made on the first.

Here is some code:

<!--********************-->
<form id="vcdb">

	<!-- Present Year options | 2006, 2005, 2005, Et Cetera -->
	<select dojoType="ComboBox" value="this should never be seen - it is replaced!"
		dataUrl="http://localhost/test/ajax/vcdb.asp" style="width: 300px;"
name="foobar1" maxListLength="15">
	</select>
	
	<br>
	
	<!-- Present Make options available | Ford, Chevy, Et cetera --> 
	<select dojoType="ComboBox" value="this should never be seen - it is replaced!"
		dataUrl="http://localhost/test/ajax/vcdb.asp?year={Current value of
foobar1}" style="width: 300px;" name="foobar2" maxListLength="15">
	</select>
	
</form>
<!--********************-->

The first ComboBox works fine; However, I don't know how to
call/populate the second.  How do I write {Current value of foobar1}
in JavaScript that Dojo understands?

Thanks.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Dojo AJAX Framework Javascript
From: fjager-ga on 25 Nov 2006 09:59 PST
 
Why not try it with several comboboxes, but only displaying the one
which is determined by the value of the first one?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy