|
 |
aspx_professional thread: Re: RES: Re: postback
Message #1 by "Sean Marchiafava" <smarch@c...> on Thu, 1 Aug 2002 14:17:46
|
|
Thanks Sean,
Now I can resolve my problem. :D
> This method will do that. _doPostBack() is the javascript function
s> upplied by the .net framework when you select autopostback for a
server
c> ontrol. If you want the textbox to cause the postback just attach the
t> he function that pops up the "Wait..." window supplemented with the
d> ocument.Yourform.submit; to the desired event of the textbox
l> ike "textchanged". Make sure you turn "off" autopostback on the
t> extbox. This will do what I think your saying. I have a similar
s> ituation where I pop up a window that says "Please wait while orders
are
r> etrieved" while the criteria is being posted to my data services
tier.
T> he window then closes in 3 secondes automatically, and this is how I
do
i> t.
> > Thanks, Sean
> But I need to call __doPostBack() after my function. I need that
m> y
f> unction only display a window with message "Wait...", and it is fired
w> here
u> ser change a textbox AutoPostBack=True.
>
> -----Mensagem original-----
D> e: Sean Marchiafava [mailto:smarch@c...]
E> nviada em: quarta-feira, 31 de julho de 2002 11:58
P> ara: ASPX_Professional
A> ssunto: [aspx_professional] Re: postback
>
T> his is how I do it:
> Attach a handler to the to object that submits form, like a button.
> btnSubmit.Attributes.Add("onclick", "YourFunction(Function Parameters)")
> <script language="JavaScript
> Function YourFunction(Params){
Y> our Function Code Here
T> hen submit form with the line following
> document.FormName.submit();
> }
>
<> /script>
> > I have a textbox with property AutoPostBack=True, ok.
B> > ut I need to call another javascript function before function
_> > _doPostBack(...). How I can do that, or add code to function
_> > _doPostBack?
> > Sorry my english, I'm learning.
> > welliton
-> --
C> hange your mail options at http://p2p.wrox.com/manager.asp or
t> o unsubscribe send a blank email to
%> %email.unsub%%.
|
|
 |