Re: Simple Ajax



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?

For your information I know that ajax is asynchronous else its name, I
think, would be SJAX. Don't you?
You don't even appear to know that "AJAX" is a misnomer, let alone how XHR
works.
Why you'd like to bring that pacific conversation to a flame?
I am simply stating the facts, and I have to add: you also don't know how
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
.



Relevant Pages

  • Re: Simple Ajax
    ... precondition be better than calling ajax_updateonce, ... complete, not using any additional global variables, and canceling the ... If you take a look the original Bryan's request is: ... The abort should be called only if something goes wrong not every 100 ...
    (comp.lang.javascript)
  • Re: Installing Lebans Calendar
    ... When more than 10 people request a change to the functionality of any ... "Jeff Conrad" wrote in message ... >> Last night I posted a new version of MonthCalendar. ... >> There is a major modification to the calling function logic ...
    (microsoft.public.access.forms)
  • Re: Form "relations"
    ... Close to your idea of using global variables, ... Another thought - How about having a table in which you store the calling ... 3/ Do I want to store anything else with this, user name, time called etc? ... That is in the code that actually opens ...
    (microsoft.public.access.formscoding)
  • Re: Is it possible to enumerate all javascript scripts on a web page?
    ... Have you tryed calling get_Script from managed code? ... back IDispatch as an object, ... between functions and global variables. ... function object off the global script object (call Invoke or InvokeEx ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: global variables
    ... Global variables are pretty much the variables you shouldn't use at all if you plan on writing PHP applications that are stored in more than like three files. ... Every PHP script on a webserver is started after a request is made. ... Cookies data has "session persistence" or even "multi-visit persistence", depending on the settings in the visitor's browser and the expiration time you set for the cookie. ...
    (comp.lang.php)