473,480 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Ajax makes a round trip doesn't it?

I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group, but
it has less traffic. Here's to hoping I'm just blind to the obvious:

I have been reading a lot about AJAX. I want to use it and will. But
I keep reading about how it doesn't make a roundtrip to the server, no
postback, etc. But isn't the truth that *something* makes a trip to
the server? It may be int the background, but there still is a trip to
the server to retrieve data, so I'm not real sure of the benefit.
Again, I think I see the light (and I realize ajax isn't correct for
every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code the
proper city comes up. I could do that with a roundtrip/postback to the
server - the whole page and get the correct cities, or I can keep the
current page and in the background have the correct city come up.

But what is the benefit here? It still takes the same amount of time
to gather the data, maybe? It's just chunked up so that it doesn't
feel as long? Believe me. I'm no knocking Ajax, just trying to
understand and justify it. Hey, it's neat.

Nov 19 '05 #1
8 1753
Hello ne***********@gmail.com,

The benefit in Ajax (and where Ajax makes sense...it isn't everywhere) is
the ability to improve the user experience. Now, when a postback happens,
the entire page is reprocessed and the html is re-delivered to the client
(with any changes). Ajax allows you to do the round-trips to the server
with only the data that you really need. For example, with maps.google.com.
It asks for new images for parts of maps you are looking at behind the scene.
In the old days, you would repost the whole page and the experience for
the user was more more jumbled. I think Ajax has a future, but in truth...we've
done Ajax for years...we are now finally getting a framework (Atlas I think?)
to do some of the heavy lifting.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group,
but it has less traffic. Here's to hoping I'm just blind to the
obvious:

I have been reading a lot about AJAX. I want to use it and will. But
I keep reading about how it doesn't make a roundtrip to the server, no
postback, etc. But isn't the truth that *something* makes a trip to
the server? It may be int the background, but there still is a trip
to the server to retrieve data, so I'm not real sure of the benefit.
Again, I think I see the light (and I realize ajax isn't correct for
every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code the
proper city comes up. I could do that with a roundtrip/postback to
the server - the whole page and get the correct cities, or I can keep
the current page and in the background have the correct city come up.

But what is the benefit here? It still takes the same amount of time
to gather the data, maybe? It's just chunked up so that it doesn't
feel as long? Believe me. I'm no knocking Ajax, just trying to
understand and justify it. Hey, it's neat.

Nov 19 '05 #2
I'm new to the idea of Ajax (I know it's a hot topic sometime before, but
somehow I just ignored the topics.). But it just sounds like having a
<iframe> for updating data will do the similar thing, won't it?

"Shawn Wildermuth" <sw*********@newsgroup.nospam>
???????:fc*************************@msnews.microso ft.com...
Hello ne***********@gmail.com,

The benefit in Ajax (and where Ajax makes sense...it isn't everywhere) is
the ability to improve the user experience. Now, when a postback happens,
the entire page is reprocessed and the html is re-delivered to the client
(with any changes). Ajax allows you to do the round-trips to the server
with only the data that you really need. For example, with
maps.google.com. It asks for new images for parts of maps you are looking
at behind the scene. In the old days, you would repost the whole page and
the experience for the user was more more jumbled. I think Ajax has a
future, but in truth...we've done Ajax for years...we are now finally
getting a framework (Atlas I think?) to do some of the heavy lifting.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group,
but it has less traffic. Here's to hoping I'm just blind to the
obvious:

I have been reading a lot about AJAX. I want to use it and will. But
I keep reading about how it doesn't make a roundtrip to the server, no
postback, etc. But isn't the truth that *something* makes a trip to
the server? It may be int the background, but there still is a trip
to the server to retrieve data, so I'm not real sure of the benefit.
Again, I think I see the light (and I realize ajax isn't correct for
every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code the
proper city comes up. I could do that with a roundtrip/postback to
the server - the whole page and get the correct cities, or I can keep
the current page and in the background have the correct city come up.

But what is the benefit here? It still takes the same amount of time
to gather the data, maybe? It's just chunked up so that it doesn't
feel as long? Believe me. I'm no knocking Ajax, just trying to
understand and justify it. Hey, it's neat.


Nov 19 '05 #3
A good summary on AJAX can be found at:
http://en.wikipedia.org/wiki/AJAX

Personally, I like a lot of things about AJAX (the improved response,
the seamless user experience, etc.), but if it's not done right there
can be some big pains, like lack of bookmarkability, back button not
working as expected, and so on.


ne***********@gmail.com wrote:
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group, but
it has less traffic. Here's to hoping I'm just blind to the obvious:

I have been reading a lot about AJAX. I want to use it and will. But
I keep reading about how it doesn't make a roundtrip to the server, no
postback, etc. But isn't the truth that *something* makes a trip to
the server? It may be int the background, but there still is a trip to
the server to retrieve data, so I'm not real sure of the benefit.
Again, I think I see the light (and I realize ajax isn't correct for
every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code the
proper city comes up. I could do that with a roundtrip/postback to the
server - the whole page and get the correct cities, or I can keep the
current page and in the background have the correct city come up.

But what is the benefit here? It still takes the same amount of time
to gather the data, maybe? It's just chunked up so that it doesn't
feel as long? Believe me. I'm no knocking Ajax, just trying to
understand and justify it. Hey, it's neat.

--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell
Nov 19 '05 #4
Sure, if you want a whole section to work in an IFrame. It's simply using
JScript to load data from teh server. NOt rocket science.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I'm new to the idea of Ajax (I know it's a hot topic sometime before,
but somehow I just ignored the topics.). But it just sounds like
having a <iframe> for updating data will do the similar thing, won't
it?

"Shawn Wildermuth" <sw*********@newsgroup.nospam>
???????:fc*************************@msnews.microso ft.com...
Hello ne***********@gmail.com,

The benefit in Ajax (and where Ajax makes sense...it isn't
everywhere) is the ability to improve the user experience. Now, when
a postback happens, the entire page is reprocessed and the html is
re-delivered to the client (with any changes). Ajax allows you to do
the round-trips to the server with only the data that you really
need. For example, with maps.google.com. It asks for new images for
parts of maps you are looking at behind the scene. In the old days,
you would repost the whole page and the experience for the user was
more more jumbled. I think Ajax has a future, but in truth...we've
done Ajax for years...we are now finally getting a framework (Atlas I
think?) to do some of the heavy lifting.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group,
but it has less traffic. Here's to hoping I'm just blind to the
obvious:

I have been reading a lot about AJAX. I want to use it and will.
But I keep reading about how it doesn't make a roundtrip to the
server, no postback, etc. But isn't the truth that *something*
makes a trip to the server? It may be int the background, but there
still is a trip to the server to retrieve data, so I'm not real sure
of the benefit. Again, I think I see the light (and I realize ajax
isn't correct for every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code
the proper city comes up. I could do that with a roundtrip/postback
to the server - the whole page and get the correct cities, or I can
keep the current page and in the background have the correct city
come up.

But what is the benefit here? It still takes the same amount of
time to gather the data, maybe? It's just chunked up so that it
doesn't feel as long? Believe me. I'm no knocking Ajax, just
trying to understand and justify it. Hey, it's neat.

Nov 19 '05 #5
I used to use Ajax to clean my toilet. Sounds like nothing much has changed
!

;o)


"Shawn Wildermuth" <sw*********@newsgroup.nospam> wrote in message
news:fc*************************@msnews.microsoft. com...
Sure, if you want a whole section to work in an IFrame. It's simply using
JScript to load data from teh server. NOt rocket science.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I'm new to the idea of Ajax (I know it's a hot topic sometime before,
but somehow I just ignored the topics.). But it just sounds like
having a <iframe> for updating data will do the similar thing, won't
it?

"Shawn Wildermuth" <sw*********@newsgroup.nospam>
???????:fc*************************@msnews.microso ft.com...
Hello ne***********@gmail.com,

The benefit in Ajax (and where Ajax makes sense...it isn't
everywhere) is the ability to improve the user experience. Now, when
a postback happens, the entire page is reprocessed and the html is
re-delivered to the client (with any changes). Ajax allows you to do
the round-trips to the server with only the data that you really
need. For example, with maps.google.com. It asks for new images for
parts of maps you are looking at behind the scene. In the old days,
you would repost the whole page and the experience for the user was
more more jumbled. I think Ajax has a future, but in truth...we've
done Ajax for years...we are now finally getting a framework (Atlas I
think?) to do some of the heavy lifting.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group,
but it has less traffic. Here's to hoping I'm just blind to the
obvious:

I have been reading a lot about AJAX. I want to use it and will.
But I keep reading about how it doesn't make a roundtrip to the
server, no postback, etc. But isn't the truth that *something*
makes a trip to the server? It may be int the background, but there
still is a trip to the server to retrieve data, so I'm not real sure
of the benefit. Again, I think I see the light (and I realize ajax
isn't correct for every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code
the proper city comes up. I could do that with a roundtrip/postback
to the server - the whole page and get the correct cities, or I can
keep the current page and in the background have the correct city
come up.

But what is the benefit here? It still takes the same amount of
time to gather the data, maybe? It's just chunked up so that it
doesn't feel as long? Believe me. I'm no knocking Ajax, just
trying to understand and justify it. Hey, it's neat.


Nov 19 '05 #6
Isn't it less secure since they can see what page you are calling in
the background and your querystring?

Nov 19 '05 #7
I'm talking about using javascript to control it, of course.

and the page returned doesn't necessary contain visualable elements. A page
full of hidden box, or just 1 hidden box with hex-encoded content will do
the job for most case.

I haven't tried the crazy idea to change to handler of .js to
aspnet_isapi.dll in order to have some dynamically generated .js files for
<script> tag, but I believe that there are some chance of success (although
the browser may just ignore the javascript file change once the script is
loaded)

Seems there's all sorts of crazy implementation to do the task before Ajax.

<ne***********@gmail.com>
???????:11**********************@g43g2000cwa.googl egroups.com...
Isn't it less secure since they can see what page you are calling in
the background and your querystring?

Nov 19 '05 #8
Yes there is a roundtrip for every AJAX action and there tend to be many of
them.

The benefit is that there is no HTML, GIF, CSS, JavaScript-Includes...
loading when using theses roundtrips so they are small, fast and asynchronous
(not blocking).
Calling a server using AJAX is like requesting a very specific question
(like : give me the newest information).
Using classic web applications with standard ASP.NET, JSP and Struts, PHP,
.... you always ask for "everything" (like: give me the web form for the
ticket system, including the newest information).

From an academic perspective: It's a better separation of model view and
controller.

Have a look at http://mathertel.devhost1.centron.ne...e/Default.aspx
"ne***********@gmail.com" wrote:
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group, but
it has less traffic. Here's to hoping I'm just blind to the obvious:

I have been reading a lot about AJAX. I want to use it and will. But
I keep reading about how it doesn't make a roundtrip to the server, no
postback, etc. But isn't the truth that *something* makes a trip to
the server? It may be int the background, but there still is a trip to
the server to retrieve data, so I'm not real sure of the benefit.
Again, I think I see the light (and I realize ajax isn't correct for
every problems), but I'm not quite sure.

For example, say I have a zip code and when I choose that zip code the
proper city comes up. I could do that with a roundtrip/postback to the
server - the whole page and get the correct cities, or I can keep the
current page and in the background have the correct city come up.

But what is the benefit here? It still takes the same amount of time
to gather the data, maybe? It's just chunked up so that it doesn't
feel as long? Believe me. I'm no knocking Ajax, just trying to
understand and justify it. Hey, it's neat.

Nov 19 '05 #9

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

Similar topics

2
324
by: Yanir | last post by:
H I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by I know datagrid is very conveniant, but I want to save...
6
2410
by: Trip | last post by:
Please if someone can help me !!! I need client and server code(principle based on AJAX) for next problem: i have 3 <select> tags on html page.(it must be NO page reload(callback) only...
7
1484
by: Thirsty Traveler | last post by:
Peter Bromberg has an interesting article eggheadcafe discussing AJAX libraries. He prefers ANTHEM.NET over AJAX.NET because it doesn't break the stateful page model. Our developers are currently...
7
2472
by: ezusbo | last post by:
Hi I have implemented this AJAX enabled route finder for getting from A to B on the London Underground network, with built in Google Maps for each station along the way. The AJAX piece allows...
31
3067
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
1
1830
by: Boris Twila | last post by:
I just want to have 1 drop down list fill the other drop down list without a round trip. Is there some really simple ajax thing i can copy and use, or is it a big deal do i habe to install an...
1
1290
by: bcochofel | last post by:
Hi, I want to update part of a XML output (generated by Perl CGI). I'm using XSL to transform the XML. Can I use this approach? I need to resort the contents of a table, that gives me the...
5
2205
by: Kursat | last post by:
Hi, I want to add new collapsable panel items using java script at client side. Is this possible to create Ajax components like collapsable panel without server round trip? Thanks in advance.
0
1649
by: nityaprashant | last post by:
hello.. i used ajax update panel in my cart form now i want to use paypal button for redirect online transaction because of ajax update panel round trip is not possible.. so paypal button gives...
0
7045
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,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
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...
0
6944
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...
0
5341
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,...
1
4782
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...
0
4483
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...
0
1300
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 ...
0
182
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...

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.