473,760 Members | 10,633 Online
Bytes | Software Development & Data Engineering Community
+ 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 1776
Hello ne***********@g mail.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*********@ne wsgroup.nospam>
???????:fc***** *************** *****@msnews.mi crosoft.com...
Hello ne***********@g mail.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***********@g mail.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******@4GuysF romRolla.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*********@ne wsgroup.nospam>
???????:fc***** *************** *****@msnews.mi crosoft.com...
Hello ne***********@g mail.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*********@ne wsgroup.nospam> wrote in message
news:fc******** *************** **@msnews.micro soft.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*********@ne wsgroup.nospam>
???????:fc***** *************** *****@msnews.mi crosoft.com...
Hello ne***********@g mail.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.dl l 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. googlegroups.co m...
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 the round trip to the server(I don't want postback) Is there other way to use ASP.NET server controls(maybe the datagrid itself) to have an easy databound from one hand and client sort from second May be a technique that tranform a XSL on a...
6
2425
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 select(controles) regeneration !!!) In the first <select> goes countries, which must be pulled from some kind of database (whichever you want). after that if i select some country, second <select> must be filled with regions of that country, and when i...
7
1506
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 using AJAX.NET after extensive research because ATLAS is currently not ready for prime-time and much more verbose than AJAX.NET. I was looking at some "Hello World" status on various libraies and ATLAS does, indeed, result in much more traffic....
7
2499
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 for auto completion of station names and performs the search itself. The underlying framework is Ruby on Rails and scriptaculous. If you live in London, you might find it useful. Let me know of any useful feedback.
31
3161
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 around here? If so, do you know if Ajax.NET can be used without prototype.js? -- "The most convoluted explanation that fits all of the made-up facts is the most likely to be believed by conspiracy theorists. Fitting the
1
1854
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 ajax server or something
1
1302
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 results from a query, when someone clicks on one of the names of that table. Thanks, Bruno
5
2218
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
1667
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 error like "server enabled trace, response.write, redirected with update panel" actually i have 3 panel on cart form, i want to open payapl button's panel at last.if i put paypal panel in update panel then error occurs like above..& if i put...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9945
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9900
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
8768
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...
0
6599
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
5214
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...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
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
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.