Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion

Go Back   Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion > Interests > Tilted Technology

Reply
 
LinkBack Thread Tools
Old 06-21-2004, 03:49 PM   #1 (permalink)
Crazy
 
Join Date: Oct 2003
[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   Reply With Quote
Old 07-10-2004, 01:43 AM   #2 (permalink)
Rookie
 
Join Date: Jul 2004
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   Reply With Quote
Old 07-10-2004, 08:21 PM   #3 (permalink)
Once upon a time...
 
Join Date: Apr 2003
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   Reply With Quote
Old 07-13-2004, 11:51 AM   #4 (permalink)
Banned from being Banned
 
Join Date: Aug 2003
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 11:53 AM.
Stompy is offline   Reply With Quote
Reply

Bookmarks

Tags
jsp, postbacks

Thread Tools

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
Forum Jump


All times are GMT -7. The time now is 06:52 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
All text (c) 2002-2008 Tilted Forum Project
"Insignia" vBulletin 3.5 - b6gm6n - x7x7x7.com