"form.bind(" is not a function

I was having a problem with clearing the calendar control and I found this article,
viewtopic.php?f=7&t=20250&p=64268&hilit=calendar+clear#p64268.

So far, so good. It included a new dhtmlXForm file, so I included that in my site reference files. The Calendar control was clearing, so everything must be working, right? Wrong.

My next step was to try to bind the form to a grid so I could edit the data. Based on one of the samples, I got to this line,

form_3.bind(grKeywords);

Firebug is reporting, ‘form_3bind is not a function’. The funny thing is, when I comment out the tag that loads the new dhtmlxform.js, it doesn’t have the problem. It still isn’t binding the data, but at least it isn’t reporting the fatal javascript error.

Note: form_3 is created by the Visual Designer with the statement,

var form_3 = tab_2.attachForm(str);

so it shouldn’t be an issue of mistaken syntax in its formation.

Is there a way I can get a fixed version of the updated form file? Or a debug version that I can attempt to fix?

Thank you,
Rob

OK, I may have solved this on my own.

I was loading the combinec script from the suite, dhtmlx.js and then loading the new version of dhtmlxform.js. That overwrote the version of the form object definitions from the suite, which was the desired effect. Unfortunately, redefining those object also undid any transformations accomplished by the datastore obj script. And that was where the ‘bind’ functions resided.

So I added the datastore.js to the list of scripts on the page, after the reload of the dhtmlxform.js. And now the error isn’t appearing.

I hope that documenting this helps someone.

Thank you anyway,
Rob