[Dojo-interest] XMLHTTPTransport Error: 0, Type: unknown
rob.kinyon at gmail.com
Sun Feb 11 10:31:23 MST 2007
Ok. That makes more sense.
Now, has anyone ever seen the error0 thing when using SYNC xhr?
On 2/11/07, Thomas Wolf <tw at wsf.at> wrote:
> Rob Kinyon wrote:
> > On 2/10/07, Thomas Wolf <tw at wsf.at> wrote:
> >> How do you call insert_exists()? I tried to reproduce
> >> your situation and got the same error under certain
> >> circumstances when coding:
> >> <form id="test" onsubmit="insert_exists(this)">
> >> while:
> >> <form id="test" onsubmit="return(insert_exists(this))">
> >> worked reliably.
> > What "certain circumstances"? Why would the function calling
> > insert_exists() have any effect upon a function called BY
> > insert_exists()? These are very disturbing questions for me.
> Hi Rob,
> Sorry, my conclusion was wrong. In Spiros' original code
> insert_exists() returned 'undefined' and in my testcase
> the bind() call started working with
> "onsubmit=return(insert_exists(this))" *and* "return false"
> in the function.
> The real problem seems to be that the async bind() call
> interferes with the browser submitting the form. Probably
> Spiros should change the bind() call to be sync, handle the
> response and return true/false accordingly but we still
> don't know how he actually uses the function...
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
More information about the Dojo-interest