I have also had issues with the cfdiv. 

I use a jQuery method similar to load():
//function uses url string, the div to load and the callback function
function ajaxLoad(url, el, complete)
{
        $.get(url, 

                function(data){
                        var newEl = document.createElement("div");
                        //pass data into div
                        newEl.innerHTML = data;
                        $(el).append(newEl);
                        
                        //run callback.
                        if(complete!=null)
                        {
                                complete(data); 
                        }
                }
        );
        
}


> I have a cfselect tag
> 
> <cfselect name="giftwrap_pk_#getWebCartDetails.CurrentRow#">
> <option value="1,0">None</option>
> <option value="2,5">Gift Wrap</option>
> </cfselect>
> 
> Where the first number is the gift wrap number and the second is the 
> price.
> 
> I have a cfdiv that I want to load the gift wrap image when the 
> cfselect changes.
> 
> <cfdiv bind="url:#attributes.basehref##application.
> self#/fuseaction/#XFA.
> giftWrapDetails#/giftWrap/({giftwrap_pk_#getWebCartDetails.
> [EMAIL PROTECTED])"  />
> 
> Unfortunately, the cfdiv doesn't change when the cfselect does. The JS 
> console in Firefox says that elements is undefined when the cfselect 
> changes and the ajax error window in CF doesn't show any errors.
> 
> The url is correct because when the page loads the cfdiv does load the 
> default value I have put in. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315707
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