473,323 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

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 1406
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*********@nospam.com> wrote in message
news:Ox****************@TK2MSFTNGP11.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*********@nospam.com> wrote in message
news:Ox**************@TK2MSFTNGP11.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*********@nospam.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*****@dnartreb.noraa> wrote in message
news:u3****************@tk2msftngp13.phx.gbl...
To pad a contract with billable hours, and still look busy? ;-)

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


"Stephanie Stowe" <Iw*********@nospam.com> wrote in message
news:Ox**************@TK2MSFTNGP11.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
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...
4
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: ...
4
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...
102
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...
7
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...
31
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. ...
3
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...
20
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?...
15
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.