PDA

View Full Version : Intended Behavior? Connect.setForm & Grid.load



stonecracker
7 Nov 2006, 5:55 AM
When I tried YAHOO.util.Connect.setForm(formEl) just before YAHOO.ext.Grid.load(url), the QueryString(?blabla...) replaced by formEl's _sFormData while keeps the Path.

Is this a bug or a intended behavior? This behavior just save my time to set figure out the whole "url" of the formEl, but I'm worried about I'm taking the advantage of a bug:)

PS: Similar behavior also found for the UpdateManager.update(url) and I take the advantage of it too.

jack.slocum
7 Nov 2006, 3:06 PM
It's how YAHOO.util.Connect is designed. It's actually not the best way to do it, since what you are describing is in fact buggy behavior.

stonecracker
7 Nov 2006, 6:53 PM
Thanks, jack. Is this behavior going to be changed?

jack.slocum
7 Nov 2006, 7:06 PM
There's really no way to circumvent it since UpdateManager and the data models use Connect and that's how Connect is designed.