Hey guys, figured I'd forward this to cfaussie, as you guys are pretty
quick on the ball...

---------- Forwarded message ----------
From: Chad <[EMAIL PROTECTED]>
Date: Aug 25, 2005 7:54 AM
Subject: [cfajax] passing a dynamic field name into getBrandResult()
To: [EMAIL PROTECTED]


 Hey all.  
 
 I have a couple of simple (for you) questions I would like to throw
 out regarding the keyvalue example... 
 
 Looking at the code from the example below:
 
 function getBrandResult(modelArray)
       {
             DWRUtil.removeAllOptions("model");
             DWRUtil.addOptions("model", modelArray, "KEY", "VALUE");
             getImageUrl();
       }
 
 1. I assume that modelArray contains the model variable passed from
 the makelookup function?
 
 2. How could I have the name of the second drop down list dynamic?  I
 am doing it on the first drop-down list by passing the name of the
 first drop down list in the onChange call like so:
 
 onChange="getModel('#NameOfField#')"
 
 Would I also pass the name of the second select?  But then how would I
 pass the variable from getModel to getBrandResult?
 
 Thanks heaps!!!
 
 Chad

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to