Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 06-21-2004, 01:49 PM   #1 (permalink)
Crazy
 
[JSP] postbacks

Is there anyway to check for a postback like in asp.net stuff in JSP's other than using querystrings and/or form submits?
NeoSparky is offline  
Old 07-09-2004, 11:43 PM   #2 (permalink)
Upright
 
not unless you're doing J#.NET (or whatever cockamamy thing MS has dreamed up to "take place" of Java for .NET). Postbacks are a completely proprietary function of ASP.NET languages.

Oh, Just so you know, Postbacks work through an actual form being submitted, and the server automatically checking to see that it was a special type of form being submitted that triggers the "postback"
DigitalD17 is offline  
Old 07-10-2004, 06:21 PM   #3 (permalink)
Once upon a time...
 
what do they do?
__________________
--
Man Alone
=======
Abstainer: a weak person who yields to the temptation of denying himself a pleasure.
Ambrose Bierce, The Devil's Dictionary.
manalone is offline  
Old 07-13-2004, 09:51 AM   #4 (permalink)
Banned from being Banned
 
Location: Donkey
postbacks inform the server that an event took place.

for example, the code on a drop down menu will have a "__doPostBack" javascript attached to it on any of it's events (most common: onChange).

When the JS is called, the element's name is passed as an argument to a function which submits a form back to the server that triggers event handler code.

When the server is notified, that control's event handler fires.. so in your c# code, "cboBlah_OnChange" will fire. You can then add whatever code you need.

PostBacks, combined with ViewState, are awesome. Makes it very easy to change certain parts of your HTML without having to redraw the whole thing or execute unnecessary code.

It's kinda hard to explain, and it really didn't make much sense to me until I got very deep into user control creation. It's very handy.
__________________
I love lamp.

Last edited by Stompy; 07-13-2004 at 09:53 AM..
Stompy is offline  
 

Tags
jsp, postbacks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 07:58 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62