Not sure if I am barking up the wrong tree here, but what I have is a cfgrid 
and a couple of form fields on a page.  I am trying to get the cfgrid to 
refresh after the user enters the form values.  The data gets inserted into the 
DB just fine, but the grid won't refresh unless I use the browser refresh 
button.  Can someone please point out what I am doing wrong here?

Thanks,
Dave

<script>
        jsRegisters= new registers();
        
        doName = function(thisName) {
                var myResult="0";
    //update the Table with form field values
    
myResult=jsRegisters.Test(document.getElementById('name1').value,document.getElementById('name2').value)
                ColdFusion.Grid.getGridObject("grid1",true);
                //alert(myResult);
        }
</script> 
<cfajaxproxy bind="javascript:doName([EMAIL PROTECTED])">
<cfajaxproxy cfc="cfc.mcs.registers" jsclassname="registers">

<cfform id="myForm" format="html">
        <cfgrid name="grid1" format="html" pagesize="10" selectmode="edit" 
delete="true" deletebutton="Remove"
                                
onchange="cfc:cfc.mcs.registers.UpDateME({cfgridaction},{cfgridrow},{cfgridchanged})"
 
                                
bind="cfc:cfc.mcs.dealers.GetDealers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})">
        <cfgridcolumn name="id" header="id">
        <cfgridcolumn name="address" header="address">
        <cfgridcolumn name="name" header="name">
        <cfgridcolumn name="city" header="city">
        </cfgrid>
        <cfinput type="text" name="name1" id="name1">
        <cfinput type="text" name="name2" id="name2">
        <cfinput type="button" name="submit" value="submit" id="submit">
</cfform> 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310583
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