Do you have a link we can look at?

On 6/18/07, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> James,
>
> I have it all mostly working. My only issue is this. I'm trying to grab the 
> value of the course menu, set it to a JS var, so it can be sent in the 
> arguments.
>
> function populateInstructors() {
>   var course = document.getElementById("course").value;
>   more stuff here...
>
>
> The problem is, since that menu (id="course") is coming OUT of the same cfc 
> with this:
>
> function handleData(response) {
>    var myHTMLOutput = JSON.parse(response);
>    document.getElementById("myTargetSpan").innerHTML = myHTMLOutput;
>   }
>
> I get an element not defined error from the var course = 
> document.getElementById("course").value; line.
>
> I tried workin around it by sticking a dummy hidden input with an 
> id="course". This actually worked in FF. The select menu trumps the hidden 
> input. But fails in IE7. IE7 just keeps using the hidden input value I guess?
>
> Kinda runnin out of ideas on howta get around this.
>
> Thanks,
> Will
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281425
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to