Text Box Post Back and List Post Back seems to collide

haruka_emi

New member
Joined
Nov 30, 2006
Messages
2
Programming Experience
1-3
:confused: :confused: :confused:
Hi I wonder whether anyone has encountered the same problem with me...
but here it goes:

I have a text box and a list box in the same form.
The list box is auto-post back.
And the text-box, i have a javascript to do the submit form on onblur event....

So the problem occurs when:
1. The cursor is in the text-box
2. I leave the text-box (the javascript will post the form now as there is an
onblur event right... )
3. I immediately select the auto-postback listbox
4. The next think i know the whole screen just went blank.

Anybody encounter the same problem? I tried on other computers as well.. some will have the same problem as mine, some wont. And when its in debug mode, its working perfectly fine...

I am not sure whether what i have done is completely wrong (... clueless.. please enlighten... ^__^ ) The reason i need to do so is that i have to fetch the new data everytime the user change the information in the text box of from the list box. Did i have the wrong approach? Any better solution? Or... is there any solution to this?

Thank you in advancee... ^__^
 
We have encountered similar problems when two postbacks are close to each other. I implemented a solution to this by disabling the postback elements on the form onbeforeunload="disableControls();"

In disableControls() I loop through the elements on the form and disable the ones that cause postbacks. Seems to have work for us so far.
 
Back
Top