Tuesday, October 30, 2007

Got some stuff done!

So, yesterday I managed to get a good bit done. I've got some database-backed dojo widgets, which is something. Aaron's going to show me how to fix my db pooling issues this morning, which should help the reliability of the ajax calls. I'm still not positive if it's doing exactly what I want, that is loading those fields on-demand (I'm especially concerned about the default dealer list - probably no reason to be, but I would like to know how to avoid loading db stuff if possible).

If I have to, I'll hack in an ajax call that sets the store. In fact, that might be the first thing I work on this morning. First, test to make sure it's getting loaded before the click. If it is, register a click handler that does an XHR call that'll set the store on return. That seems like the best approach.

Anywho, after that it's just a matter of plugging in something similar for the dealers - that can probably be a seperate script, cause there's other places that might benefit from being able to call it. But I won't break it out until I actually run across such a case, cause premature generalization is evil.

Then, we figure out how saving works - it should be as simple as pulling form.get_values and sending the data to the server with an XHR. We'll have a generic POST save handler, and what gets saved will depend on parameters passed (general: {json}, user_info: {json}).

No comments: