/    Sign up×
Community /Pin to ProfileBookmark

Pros and Cons of AJAX

I’ve never used AJAX and I’m wondering if it’s worth incorporating into my applications. I have researched AJAX and I think I’ve got a decent grasp on what it can do. However, I was hoping that you guys could give me the pros and cons of your experiences with it.

If anyone is wondering my current applications are built using ASP. I’ve used very little JavaScript, but I am moderately familiar with it. I have pages that show reports that can be filtered by certain fields, and sorted by certain fields, and have paging capability. I have other pages that search the database based off of over a dozen fields, pages that have statistical reporting, and pages that allow you to edit information in the database. All of these pages of course have submit buttons that refresh the page with the current information based off of the criteria specified or submit to a page that updates the database. All of the pages are part of an interface that employees login to and all of their movements are tracked while on the interface.

I’m not looking for code examples, but any are welcome. If you know of any websites that are good please post them. Thanks to all for helping to educate me.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@LeeUJul 06.2007 — I think it's kind of like anything else, if you have a use for it, then use it; otherwise, don't. If you see something that Ajax does, or know you can only accomplish something you need to by using it, then go for it.
Copy linkTweet thisAlerts:
@rksprstJul 06.2007 — In ASP.NET ajax is ridiculously easy you just put an updatepanel around elements and you've got ajax.

So for example:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Button OnClick="ajaxFunction" ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>

And this in the code-behind:protected void ajaxFunction(object sender, EventArgs e)
{
Label1.Text = "Label updated via ajax, no page refresh!";
}


It can be very useful, but its not search engine friendly. Meaning if you use ajax for say a search page, the search results cannot be crawled.

A good website for ASP ajax is ajax.asp.net
×

Success!

Help @nbcrockett spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...