473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why would anyone DO this?? Am I missing something

You have a page. On top of the page, there are some search criteria and
other input elements and a submit button. The submit button is clicked,
sending a request to the server. Server-side code is executed to write
client-side vars. Based on these vars, divs are shown or hidden.

Why not just write or not write the html stuff server-side? I cannot
understand it. And it is UGLY. If other client-events were going to interact
with the divs, I could see it. But... they aren't. The page is always posted
back to itself for any kinds of show/hide stuff.

What am I missing?

S
Jul 22 '05 #1
4 1422
Well, it's hard to say without seeing the resultant HTML, but perhaps
because options exist to show the content in those DIVs with some
client-side action? If not, then, no, it doesn't make any sense to return
content that will never be displayed or used in any way.

--

Ray at work
Microsoft ASP/ASP.NET MVP
"Stephanie Stowe" <Iw*********@no spam.com> wrote in message
news:Ox******** ********@TK2MSF TNGP11.phx.gbl. ..
You have a page. On top of the page, there are some search criteria and
other input elements and a submit button. The submit button is clicked,
sending a request to the server. Server-side code is executed to write
client-side vars. Based on these vars, divs are shown or hidden.

Why not just write or not write the html stuff server-side? I cannot
understand it. And it is UGLY. If other client-events were going to interact with the divs, I could see it. But... they aren't. The page is always posted back to itself for any kinds of show/hide stuff.

What am I missing?

S

Jul 22 '05 #2
To pad a contract with billable hours, and still look busy? ;-)

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Stephanie Stowe" <Iw*********@no spam.com> wrote in message
news:Ox******** ******@TK2MSFTN GP11.phx.gbl...
You have a page. On top of the page, there are some search criteria and
other input elements and a submit button. The submit button is clicked,
sending a request to the server. Server-side code is executed to write
client-side vars. Based on these vars, divs are shown or hidden.

Why not just write or not write the html stuff server-side? I cannot
understand it. And it is UGLY. If other client-events were going to interact with the divs, I could see it. But... they aren't. The page is always posted back to itself for any kinds of show/hide stuff.

What am I missing?

S

Jul 22 '05 #3
On Thu, 13 Jan 2005 16:28:33 -0500, "Stephanie Stowe"
<Iw*********@no spam.com> wrote:
You have a page. On top of the page, there are some search criteria and
other input elements and a submit button. The submit button is clicked,
sending a request to the server. Server-side code is executed to write
client-side vars. Based on these vars, divs are shown or hidden.

Why not just write or not write the html stuff server-side? I cannot
understand it. And it is UGLY. If other client-events were going to interact
with the divs, I could see it. But... they aren't. The page is always posted
back to itself for any kinds of show/hide stuff.

What am I missing?


It's what we're missing. We're missing the page/code in question to
see what it does, and we're missing the intentions of the original
programmer.

It could be they did that because they didn't know how to do it
client-side. It could be they did have a server-side reason that is
no longer valid and haven't updated the code. It could be the server
side operation is for securing data or preventing client-side spoofing
of some sort. It could be simply because each server request
generates a log they can use to track activity on their site and the
user's experience.

Jeff
Jul 22 '05 #4
I guess I am glad to hear this. I was looking and looking at this stuff,
when I finally understood what was happening, I was flabergasted.

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:u3******** ********@tk2msf tngp13.phx.gbl. ..
To pad a contract with billable hours, and still look busy? ;-)

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Stephanie Stowe" <Iw*********@no spam.com> wrote in message
news:Ox******** ******@TK2MSFTN GP11.phx.gbl...
You have a page. On top of the page, there are some search criteria and
other input elements and a submit button. The submit button is clicked,
sending a request to the server. Server-side code is executed to write
client-side vars. Based on these vars, divs are shown or hidden.

Why not just write or not write the html stuff server-side? I cannot
understand it. And it is UGLY. If other client-events were going to

interact
with the divs, I could see it. But... they aren't. The page is always

posted
back to itself for any kinds of show/hide stuff.

What am I missing?

S


Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1212
by: Rob Meade | last post by:
Hi all, This will sound REALLY stupid, but I wrote some code a fair while ago (beginning of this year), and I've done something a specific way, but for the life of me I can't remember why, or whether the difference between the 2 ways that are used in the code really matters... I think Aaron had some suggestions at the time... Anyway...here we go...
4
1273
by: Blue Ocean | last post by:
Hey all, I'm a newbie and just learning C. I've been teaching it to myself since I got home from school for the summer. I've also been reading some code and I've been seeing a lot of this: #define FDECL(functionname,params) functionname(params) And then declarations like this (from include/extern.h, nethack): E int NDECL(dojump); E int FDECL(jump, (int));
4
3951
by: ben | last post by:
has anyone got or read this book: robert sedgewick "algorithms in c parts 1-4"? i'm having an absolute nightmare with the book. amoung other things i'm trying to construct the necessary support files needed to make use of the example programmes. (support files as in .h .c files that are #included and used to compile with). the programmes are designed to use abstract data types so that you can drop in different versions of the support...
102
5722
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
7
1237
by: Scott Meddows | last post by:
I'm trying to serve a PDF file from a webpage so it will load in the browser.. Can anyone tell what is wrong with this code? I've tried everything Thanks Dim httpwreq As System.Net.HttpWebRequest = CType(System.Net.HttpWebRequest.Create("http://lafdev2/ReportServeProxy/Migr ationReport.pdf"), System.Net.HttpWebRequest) Dim httpWResp As System.Net.HttpWebResponse =
31
2780
by: Jim Hubbard | last post by:
I am downloading the REALbasic 5.5 demo and was just wondering if anyone else had tried it. I am tired of Microsoft constantly changing things and breaking backward compatibility ON PURPOSE. I'd like to offer my customers the ability to run my apps on Windows, MAC or Linux - and REALbasic claims the ability to do that from one set of source code.
3
1495
by: wolfgang.lipp | last post by:
some time after posting my `Linkdict recipe`__ to aspn__ -- basically, a dictionary with run-time delegational lookup, but this is not important here -- i thought gee that would be fun to make such a customized dictionary thingie an instance dictionary, and get some custom namespace behavior out of that. ... __: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/465748 ... __: http://aspn.activestate.com/
20
1745
by: Pete Marsh | last post by:
Wondering if anyone can see an error with this script. I get a server configuration error. THat could mean a module is not being loaded, but maybe there's a syntax error here, can anyone spot it? Thanks <? Error_Reporting(E_ALL & ~E_NOTICE); $subject="from ".$_REQUEST ; $headers= "From: ".$_REQUEST ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1';
15
1934
by: Neil | last post by:
So, I tried to copy a toolbar. I have a custom menu bar for a form. Tried to copy it so that I could modify the copy and use it with another form. With no direct way to copy it, I made a copy of the MDB, renamed the toolbar, and then imported it back into the original MDB as a copy of the original (see "Copying a custom menu bar" thread here). Everything seemed fine until I tried to modify the copy. When I added or removed items from the...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.