J
Johnson
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!
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!