Re: Simple Ajax
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Wed, 19 Nov 2008 11:15:32 +0100
Diego La Monica wrote:
Thomas 'PointedEars' Lahn wrote:
For good reason. Your approach is wrong from the beginning.
Diego:
I'm not agree, but are the two differents point of view. And I don't
think your is better so go on and take a while to read the message
entirelly before say "you're wrong!". It's more educated.
Thomas:
So you really think letting the client eat up more of the scarce resource,
local heap memory, every two seconds, is the actually right thing to do?
Diego:
Why are you thinking that my idea could eat so much resource?
This is Usenet, not online chat. However, I thought it would need to do
that because it was not obvious to me that you don't call open() when the
request is in progress.
[...]
That demonstrate that you're obfuscated from your interpretation of
what I wrote without reading what I've really wrote!
Gift me 20 seconds of yours and try the example that I've created to
demonstrate you what I was saying since yesterday:
http://jastegg.it/tests/javascript/xhr2sec.htm
Take care: use Firebug to ensure that you can see how many client/
server connection will be active.
Without looking at the test case: OK, so there's `ImInside'. Blame me for
overlooking syntactically wrong and badly written code.
But try to answer this: In what way would calling ajax_update() repeatedly
with window.setInterval(), using global variables, and observing a
precondition be better than calling ajax_update() once, calling it again
only when the connection was possible and the request-response handling was
complete, not using any additional global variables, and canceling the
request after a well-defined amount of time that is visible at a glance?
I am simply stating the facts, and I have to add: you also don't know howWhy you'd like to bring that pacific conversation to a flame?For your information I know that ajax is asynchronous else its name, IYou don't even appear to know that "AJAX" is a misnomer, let alone how XHR
think, would be SJAX. Don't you?
works.
window.setInterval() works, else you would not recommend using it in this
time-critical scenario.
I've used it in the examle but... well let's think that I don't know
window.setInterval method what's wrong are you bringing reasons?
Parse error. But if I were to make an educated guess, I think I have
answered that question already in <news:4921D492.9000309@xxxxxxxxxxxxxx>,
among other postings.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.
- Follow-Ups:
- Re: Simple Ajax
- From: Diego La Monica
- Re: Simple Ajax
- References:
- Simple Ajax
- From: Bryan A
- Re: Simple Ajax
- From: Diego La Monica
- Re: Simple Ajax
- From: Thomas 'PointedEars' Lahn
- Re: Simple Ajax
- From: Diego La Monica
- Re: Simple Ajax
- From: Thomas 'PointedEars' Lahn
- Re: Simple Ajax
- From: Diego La Monica
- Re: Simple Ajax
- From: Thomas 'PointedEars' Lahn
- Re: Simple Ajax
- From: Diego La Monica
- Simple Ajax
- Prev by Date: Re: When to minify?
- Next by Date: Re: comp.lang.javascript FAQ - Quick Answers 2008-11-17
- Previous by thread: Re: Simple Ajax
- Next by thread: Re: Simple Ajax
- Index(es):
Relevant Pages
|