473,386 Members | 1,706 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,386 software developers and data experts.

Why use Ajax -- All comments welcome

We are looking at Ajaxing our existing web application. Question is...Should
we Ajax any and everything we can, or not? One example...if a page posts back
to itself, is that a good candidate for Ajax?
Nov 28 '07 #1
7 1877
On Nov 28, 10:52 pm, Wannabe <Wann...@discussions.microsoft.com>
wrote:
We are looking at Ajaxing our existing web application. Question is...Should
we Ajax any and everything we can, or not? One example...if a page posts back
to itself, is that a good candidate for Ajax?
If it's posted back just to execute some server code and to update a
part of the page (for example just to show a message "record saved")
then it could be done using Ajax. The advantage of Ajax here would be
an update of piece of web page without reloading the entire page.

To be or not be is the question :-)
Nov 28 '07 #2
Maybe. I started playing around with it a while ago to see if it would be
useful or not and so far, I found it quite interesting. Not useful yet but
getting there. I haven't had the chance to look at all of the controls or
extenders yet but making my way there. I have found 1 control that could
prove extremely useful in saving postbacks when changing content on a
website. Its the accordion control. It can change the content of parts of
the site without postbacks. The update pannel is the same way. I have been
tempted to ajax up every possible place possible on my website, but hold
off. Guess I'm sort of conservative on that point (don't do it unless its
required). Part of this is company saying it has to be that way but....if it
were my choice?...

Either way, it looks like a good choice. If you use the accordion control,
watch out because it has a few bugs in it. The problems with it are:

1. In design mode, when adding accordion panes, the designer doesn't put the
<Panestag around the pane controls.
2. You have to remove the accordion_extender control from the accordion
control since it appears that a "accordion_extender" never has existed.
3. It appears that you have to manually insert the SelectedIndex="..."
property since the designer fails to include it in the code.

They are all not that hard to work around though (after trying to figure it
out for a while). So, at this point, not for sure what to think. HTH...
"Wannabe" <Wa*****@discussions.microsoft.comwrote in message
news:E2**********************************@microsof t.com...
We are looking at Ajaxing our existing web application. Question
is...Should
we Ajax any and everything we can, or not? One example...if a page posts
back
to itself, is that a good candidate for Ajax?

Nov 28 '07 #3
Anything and everything?

Probably not.

The great programmers answer is...
"It depends."

Postbacks that are only going to cause a small update to the page are a
great place to start.

I certainly wouldn't make the entire website one great big
postback/updatepanel. While it would be an interesting concept, it would
probably be more work to maintain then it is worth. It would also give
you a one page web site from a search engine perspective.

-----Original Message-----
From: Wannabe [mailto:Wa*****@discussions.microsoft.com]
Posted At: Wednesday, November 28, 2007 4:52 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Why use Ajax -- All comments welcome
Subject: Why use Ajax -- All comments welcome

We are looking at Ajaxing our existing web application. Question
is...Should
we Ajax any and everything we can, or not? One example...if a page posts
back
to itself, is that a good candidate for Ajax?

Nov 28 '07 #4
As the others have said, when you need partial page updating, Ajax is a good
candidate. But, I have seen sites that use it excessively. I saw one site
that used it to implement tabbing behavior on their home page to simulate
that one page being 5 pages. Each time you simply hovered, not even
clicked, a tab the first tabs contents would go away and the next tab's
contents would appear. Since, really, the whole displayed content was being
replaced the only benefit of Ajax was that the screen didn't flicker, as it
would with a normal page.
"Wannabe" <Wa*****@discussions.microsoft.comwrote in message
news:E2**********************************@microsof t.com...
We are looking at Ajaxing our existing web application. Question
is...Should
we Ajax any and everything we can, or not? One example...if a page posts
back
to itself, is that a good candidate for Ajax?
Nov 29 '07 #5
Depends on TimeFrame, Budget and needs of your users.

I would start by adding some easy partial rendering (not abusing, e.g. just
add a nice updatepanel for a heavy grid...), find bottlenecks and apply
scriptservices where users are complaining.

But if you have the money and the time to invest... do it all scriptservices
based :-).

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"Wannabe" wrote:
We are looking at Ajaxing our existing web application. Question is...Should
we Ajax any and everything we can, or not? One example...if a page posts back
to itself, is that a good candidate for Ajax?
Nov 29 '07 #6

"Scott M." <sm**@nospam.nospamwrote in message
news:D9**********************************@microsof t.com...
As the others have said, when you need partial page updating, Ajax is a
good candidate. But, I have seen sites that use it excessively. I saw
one site that used it to implement tabbing behavior on their home page to
simulate that one page being 5 pages. Each time you simply hovered, not
even clicked, a tab the first tabs contents would go away and the next
tab's contents would appear. Since, really, the whole displayed content
was being replaced the only benefit of Ajax was that the screen didn't
flicker, as it would with a normal page.
"Wannabe" <Wa*****@discussions.microsoft.comwrote in message
news:E2**********************************@microsof t.com...
>We are looking at Ajaxing our existing web application. Question
is...Should
we Ajax any and everything we can, or not? One example...if a page posts
back
to itself, is that a good candidate for Ajax?
I have a good reason. I have a site I use to play my mp3 collection. I use
the WMP control and allow myself to browse the contents of my collection
while playing. If there was a full page refresh I would interupt the
playing. All this to say that if you are trying to emulate the look and
feel of a windows app AJAX is the way to do it.

LS

Nov 29 '07 #7

"Andy B" <a_*****@sbcglobal.netwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
Maybe. I started playing around with it a while ago to see if it would be
useful or not and so far, I found it quite interesting. Not useful yet but
getting there. I haven't had the chance to look at all of the controls or
extenders yet but making my way there. I have found 1 control that could
prove extremely useful in saving postbacks when changing content on a
website. Its the accordion control. It can change the content of parts of
the site without postbacks.
Keep in mind that with some (usually smaller) sites you can stuff everything
into one file and just position it/expose it on the client side with trivial
Javascript code and CSS ... one trip to the server, no postbacks, no Ajax
>Should
we Ajax any and everything we can, or not?
if there's 6 dozen pancakes on the breakfast table, and they taste really
good, should I eat all of them? probably not

use Ajax, like any other tool, where it makes sense to use it
Nov 29 '07 #8

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

Similar topics

2
by: needin4mation | last post by:
Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve information from a "real" database, not an XML file. I am trying to find out if that is a legitimate approach. All of the...
9
by: Tim Johnson | last post by:
I'm an experienced web/CGI programmer, but new to ajax. I'd like to review some examples of how to post data from a form to server using AJAX. I have already created some examples successfully...
9
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
1
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
7
by: =?Utf-8?B?TWFyYw==?= | last post by:
Dear all I have a scenario where I have 2 updatepanels on a page, each one containing a weppartzone. the scriptmanager is outside of the updatepanels. when I go to design display mode, i can...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I'm building a site with Visual Studio 2008 utilizing ajax extension. The page works fine on IE7/FireFox, but on IE6, each action on the page will cause an entire page refresh. Basically the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.