469,568 Members | 1,568 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Is this AJAX? (Sort of "Off Topic")

I have some javascript in a standard HTML page that uses the ubiquitous
"XMLHttpRequest" to send data to a remote ASP page.

If that page "answers back" by sending a string using a simple
Response.Write, which I then use in the original HTML page to
dynamically update stuff, is this "AJAX"?

Specifically, is there anything "wrong" with sending back info from
classic ASP pages using simple Response.Writes? (Is there usually
something more required in the "answer back"? Or something that
Response.Write might not be sending, like an appropriate header "AJAX"
header?)

I mean, what I have done works! -- so I wonder if I am missing
something? It seems so easy to do -- I _MUST_ be missing something?
Right?

Thanks,
Blue Apricot
PS: Sorry about an "off topic" post, but I figured there would be some
AJAX experts here...

Apr 14 '06 #1
3 1249
Thus wrote bl************@gmail.com,
I have some javascript in a standard HTML page that uses the
ubiquitous "XMLHttpRequest" to send data to a remote ASP page.

If that page "answers back" by sending a string using a simple
Response.Write, which I then use in the original HTML page to
dynamically update stuff, is this "AJAX"?
It's Asynchronous, it's JavaScript, And it uses XMLHTTPRequest -- yes, that's
pretty much it.
Specifically, is there anything "wrong" with sending back info from
classic ASP pages using simple Response.Writes? (Is there usually
something more required in the "answer back"?
Wrong? No. It's probably neither the ideal component type nor the ideal technology,
but if it works for you...
Or something that
Response.Write might not be sending, like an appropriate header "AJAX"
header?)
There's really no such thing like an "AJAX protocol" -- what's being sent
back over the wire can be whatever works best for you, or whatever you need
to interoperate with: SOAP, POX, JSON, or raw text.
I mean, what I have done works! -- so I wonder if I am missing
something? It seems so easy to do -- I _MUST_ be missing something?


Don't forget that your current scenario was kind of thankful. It seems you
didn't have to deal with cross-browser compatibility issues, or more advanced
integration scenarios like pulling data from a Web service. You also didn't
need to integrate your approach with ASP.NET's page model. Things can get
bit more interesting if you're facing such issues. That's why you rather
want to use a good ASP.NET AJAX framework instead of making up your own.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Apr 14 '06 #2
Hi,

I don't see anything wrong with what you've done, you can pass anything
you like back to your page. It's more conventional to send back XML
because it's more flexible and isn't tied to any sort of presentation,
but whatever works for you.

There are a few AJAX frameworks available for ASP.NET now like Ajax.NET
and Atlas, which might be useful if you want to get more involved with
AJAX.

Chris

Apr 14 '06 #3
"AJAX" confuses the landscape as an acronym (Remote scripting is more
appropriate IMHO, but hey, that's progress I guess) because almost nobody
uses XML with it. What you are doing is certainly Remote Scripting. If you
like what you are doing, then look at some of the better "AJAX"
implementations for .NET such as Anthem.Net, MagicAjax (both open source on
Sourceforge.net) or of course, ATLAS.

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"bl************@gmail.com" wrote:
I have some javascript in a standard HTML page that uses the ubiquitous
"XMLHttpRequest" to send data to a remote ASP page.

If that page "answers back" by sending a string using a simple
Response.Write, which I then use in the original HTML page to
dynamically update stuff, is this "AJAX"?

Specifically, is there anything "wrong" with sending back info from
classic ASP pages using simple Response.Writes? (Is there usually
something more required in the "answer back"? Or something that
Response.Write might not be sending, like an appropriate header "AJAX"
header?)

I mean, what I have done works! -- so I wonder if I am missing
something? It seems so easy to do -- I _MUST_ be missing something?
Right?

Thanks,
Blue Apricot
PS: Sorry about an "off topic" post, but I figured there would be some
AJAX experts here...

Apr 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andy Crawford | last post: by
21 posts views Thread by nicholas | last post: by
1 post views Thread by Menno Abbink | last post: by
5 posts views Thread by Savas Ates | last post: by
4 posts views Thread by Gérard Talbot | last post: by
3 posts views Thread by blueapricot416 | last post: by
2 posts views Thread by pedestrian via SQLMonster.com | last post: by
10 posts views Thread by Kurda Yon | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.