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

AJAX Capability Detection and Support Strategy Questions

While I have done a substantial amount of ASP.NET programming, I have only
dabbled with AJAX (update panels and a 3rd party JSON setup - jayrock - that
directly updates the DOM). In any case, I'm considering offering Web pages
both to browsers that support AJAX and to those that do not support AJAX.

Questions:
1. In general, should I look to offer two versions of each page - one for
AJAX clients and the other for "non AJAX-supporting" clients? Or is it
reasonable to pursue the creation of a single page that renders differently
based on the browser capabilities? I'm not afraid of writing code to make
the single-page approach happen, but I also would go for two pages if that
would avoid a lot of headaches or unnecessarily complicated pages.

2. What browser capabilities specifically do I look for to know if a
client/browser supports AJAX? I'm sure JavaScript must be enabled, but what
else? Am I simply looking for uplevel vs downlevel browsers? I would not
think so given that many downlevel browsers support JavaScript.

The ASP.NET pages in consideration here will generally not be very
complicated - just displaying data in pretty tables, collecting some data
via text boxes, and providing buttons to submit updates. After the updates,
some of the displayed data would change. There might be an occasional
drop-down list or tree view control that auto posts back. But that's about
it.

I'm using Visual Studio 2008 /.NET 3.5 SP1.

Thanks!
Nov 20 '08 #1
2 1837
it depends on the ajax toolkit. they will require javascript be enabled,
but don't require any special javascript features. the ajax call
requires connecting to the server. this is usually done with the
browsers XMLHttpRequest object or the msxml active/x object in IE. Some
browser's (say mobile) may that have these, so some kits will fall back
to using an iframe which only supports async callbacks. but you almost
always want a seperate mobile site.

the uplevel/downlevel is a measure of css and dhtml support. these say
what javascript can do to the browser. its a better practice to do this
detection on the client side.

-- bruce (sqlwork.com)

Johnson wrote:
While I have done a substantial amount of ASP.NET programming, I have only
dabbled with AJAX (update panels and a 3rd party JSON setup - jayrock - that
directly updates the DOM). In any case, I'm considering offering Web pages
both to browsers that support AJAX and to those that do not support AJAX.

Questions:
1. In general, should I look to offer two versions of each page - one for
AJAX clients and the other for "non AJAX-supporting" clients? Or is it
reasonable to pursue the creation of a single page that renders differently
based on the browser capabilities? I'm not afraid of writing code to make
the single-page approach happen, but I also would go for two pages if that
would avoid a lot of headaches or unnecessarily complicated pages.

2. What browser capabilities specifically do I look for to know if a
client/browser supports AJAX? I'm sure JavaScript must be enabled, but what
else? Am I simply looking for uplevel vs downlevel browsers? I would not
think so given that many downlevel browsers support JavaScript.

The ASP.NET pages in consideration here will generally not be very
complicated - just displaying data in pretty tables, collecting some data
via text boxes, and providing buttons to submit updates. After the updates,
some of the displayed data would change. There might be an occasional
drop-down list or tree view control that auto posts back. But that's about
it.

I'm using Visual Studio 2008 /.NET 3.5 SP1.

Thanks!

Nov 20 '08 #2
Thanks Bruce... regarding: "...but you almost always want a seperate mobile
site."... yes I agree and understand about mobile devices. But in my case
I'm targeting only full-fledged browsers and not mobile devices. So, given
that consideration, is it still a general recommendation to have a separate
copy of the pages or site - one for AJAX enabled browsers and a separate
copy for non AJAX-enabled browsers? Or for non complex pages is it generally
acceptable to have one copy of the page that can work via AJAX or classic
full-page postback?

Thanks,

- J
"bruce barker" <no****@nospam.comwrote in message
news:uB**************@TK2MSFTNGP05.phx.gbl...
it depends on the ajax toolkit. they will require javascript be enabled,
but don't require any special javascript features. the ajax call requires
connecting to the server. this is usually done with the browsers
XMLHttpRequest object or the msxml active/x object in IE. Some browser's
(say mobile) may that have these, so some kits will fall back to using an
iframe which only supports async callbacks. but you almost always want a
seperate mobile site.

the uplevel/downlevel is a measure of css and dhtml support. these say
what javascript can do to the browser. its a better practice to do this
detection on the client side.

-- bruce (sqlwork.com)

Johnson wrote:
>While I have done a substantial amount of ASP.NET programming, I have
only dabbled with AJAX (update panels and a 3rd party JSON setup -
jayrock - that directly updates the DOM). In any case, I'm considering
offering Web pages both to browsers that support AJAX and to those that
do not support AJAX.

Questions:
1. In general, should I look to offer two versions of each page - one for
AJAX clients and the other for "non AJAX-supporting" clients? Or is it
reasonable to pursue the creation of a single page that renders
differently based on the browser capabilities? I'm not afraid of writing
code to make the single-page approach happen, but I also would go for two
pages if that would avoid a lot of headaches or unnecessarily complicated
pages.

2. What browser capabilities specifically do I look for to know if a
client/browser supports AJAX? I'm sure JavaScript must be enabled, but
what else? Am I simply looking for uplevel vs downlevel browsers? I would
not think so given that many downlevel browsers support JavaScript.

The ASP.NET pages in consideration here will generally not be very
complicated - just displaying data in pretty tables, collecting some data
via text boxes, and providing buttons to submit updates. After the
updates, some of the displayed data would change. There might be an
occasional drop-down list or tree view control that auto posts back. But
that's about it.

I'm using Visual Studio 2008 /.NET 3.5 SP1.

Thanks!

Nov 20 '08 #3

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

Similar topics

60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
17
by: psimakov | last post by:
I wrote a small piece about AJAX without XML. http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=AJAXWithoutXML Is anybody else doing it? Please share your thoughts...
17
by: Chaprasi | last post by:
Hi I need help with prototype while doing ajax calls. So this is my JS which does a ajax calls var ajax1 = new Ajax.Request ( url, { method: 'get', parameters: params, onComplete:...
31
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...
2
by: =?Utf-8?B?UmljaCBBcm1zdHJvbmc=?= | last post by:
I see that the RTM version of ASP.NET AJAX requires installation of the ASP.NET AJAX assemblies in the GAC. I've been through all the docs, and deployment, per se, is never directly addressed. ...
17
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);"...
4
by: Peter | last post by:
ASP.NET 2.0 I have an AutoCompleteExtender which works fine- I am using name, id pair in the WebService , but what I am trying to do is: once the user selects an item from the...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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,...
0
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...
0
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...

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.