Re: XHR

13 views
Skip to first unread message

Garrett Smith

unread,
Jan 29, 2010, 7:06:55 PM1/29/10
to Pedro Santos, public-...@w3.org, firebug
On Thu, Jan 28, 2010 at 2:32 AM, Pedro Santos <pedr...@gmail.com> wrote:
>
>
> On Thu, Jan 28, 2010 at 5:37 AM, Garrett Smith <dhtmlk...@gmail.com>
> wrote:
>>
>> On Wed, Jan 27, 2010 at 7:30 AM, Pedro Santos <pedr...@gmail.com> wrote:
>> > Hi, I'm have a question about the XmlHttpRequest,
[...]
>> Where did you see XHR object pooling? APE had that since 2007.
>
> I see it in Apache Wicket. By APE you mean Ajax Push Engine?

My, that is disturbing. I'm going to contact Apache about that.

John Chavarria, desparate for SEO fame, copied my name, piggybacked
off it, and hyped his Mootools-based garbage.

APE JavaScript Library Framework, the real deal, not the knockoff, is
hosted on GitHub HERE:
http://github.com/GarrettS/ape-javascript-library/

The impostor followed me there, too. Don't be fooled by the dishonest
marketing and copyright violations.

The relevant part of Object pooling in APE is found here:-
http://github.com/GarrettS/ape-javascript-library/blob/master/src/ajax/AsyncRequest.js#L76

Let make it
> cleaner:

[snip code]

> It isn't an pool implementation.

That is a true statement (code nits aside).

>>
>> An implementation (browser) may pool its own objects, so long as that
>> is unobservable.
>>
> I know that. Although it is an complicated thing. I just wonder: what leads
> him to decide return an object from an pool, instead of an created one, when
> the javascript developer had used the 'new' operator.
>

If by "him", you meant "the implementation", then an anwser would be:
Memory efficiency. If the program cannot tell the difference, then it
makes no difference to the program.

If that's not what you meant, then please clarify.

>>
>> > The problem is that the error flag get true, and the devs tools report
>> > the
>> > request with error. Can it be done in other ways?
>> >
>> Which tool?
>
> Mozilla firebug

I have not seen such error. When I run AsyncRequest-test.html, I see
that the request was aborted.

POST http://192.168.0.101:8020/ape/test/tests/ajax/data.json.txt Aborted

If you dislike the display of that error message, then that is a
firebug-issue. I have added the firebug discussion group as CC.

Regards,

Garrett

John J Barton

unread,
Jan 29, 2010, 7:24:16 PM1/29/10
to Firebug
If you want to discuss a Firebug issue, welcome. If you want to have a
tirade about Firebug, that's fine too. But please don't bring tirades
about other things over here.

jjb

Garrett Smith

unread,
Jan 29, 2010, 9:56:16 PM1/29/10
to fir...@googlegroups.com
On Fri, Jan 29, 2010 at 4:24 PM, John J Barton
<johnj...@johnjbarton.com> wrote:
> If you want to discuss a Firebug issue, welcome. If you want to have a
> tirade about Firebug, that's fine too. But please don't bring tirades
> about other things over here.
>

Was it too much to expect you to snip the parts that you found
irrelevant or displeasurable and instead focus on the parts that is
relevant?

John J Barton

unread,
Jan 29, 2010, 10:45:53 PM1/29/10
to Firebug

On Jan 29, 6:56 pm, Garrett Smith <dhtmlkitc...@gmail.com> wrote:
> On Fri, Jan 29, 2010 at 4:24 PM, John J Barton
>

> <johnjbar...@johnjbarton.com> wrote:
> > If you want to discuss a Firebug issue, welcome. If you want to have a
> > tirade about Firebug, that's fine too. But please don't bring tirades
> > about other things over here.
>
> Was it too much to expect you to snip the parts that you found
> irrelevant or displeasurable and instead focus on the parts that is
> relevant?

Yes, that's it exactly. I can't figure out what you were trying to
say.
jjb

Garrett Smith

unread,
Jan 30, 2010, 12:16:51 AM1/30/10
to fir...@googlegroups.com

The poster had different expectations for what FB would report for


aborted XHR. He wrote:
| The problem is that the error flag get true, and the devs tools
report the request with error.

The FB-related part of my response:


| I have not seen such error. When I run AsyncRequest-test.html, I see
| that the request was aborted.
|
| POST http://192.168.0.101:8020/ape/test/tests/ajax/data.json.txt Aborted
|
| If you dislike the display of that error message, then that is a

| firebug-issue. I have added the firebug discussion group as CC.
|
| Regards,
|
| Garrett

The other stuff I wrote is irrelevant to FB, obviously. Was trying to
respond to the poster, point him to the FB group, and pass along a
message to FB at the same time.

Garrett

Honza (Jan Odvarko)

unread,
Feb 1, 2010, 1:52:53 PM2/1/10
to Firebug
| I have not seen such error. When I run AsyncRequest-test.html, I see
| that the request was aborted.
|
| POST http://192.168.0.101:8020/ape/test/tests/ajax/data.json.txt
Aborted
|
| If you dislike the display of that error message, then that is a
| firebug-issue. I have added the firebug discussion group as CC.

How can I run the AsyncRequest-test.html test and see the problem?
Honza

Garrett Smith

unread,
Feb 1, 2010, 2:03:12 PM2/1/10
to fir...@googlegroups.com
If you want to run AsyncRequest-test.html, it is available of GitHub here:
http://github.com/GarrettS/ape-javascript-library/blob/master/test/tests/ajax/AsyncRequest-test.html

You don't have to run that file to see what the OP describes as a
problem. Just create and abort an xhr in Firebug:

var x = new XMLHttpRequest();
x.open("get", location.href, true);
x.send();
x.abort();

Result:
GET http://www.google.com/ Aborted

The message is displayed in bold red letters with the icon "red circle
with white X".

My feeling is that that is not a bug, but just a display issue of
Firebug. Perhaps an orange "A" would make it easier for some.
Personally, I'm fine with the red X. I know what "aborted" means.

Garrett

Honza (Jan Odvarko)

unread,
Feb 1, 2010, 2:12:48 PM2/1/10
to Firebug
> My feeling is that that is not a bug, but just a display issue of
> Firebug. Perhaps an orange "A" would make it easier for some.
> Personally, I'm fine with the red X. I know what "aborted" means.
I see, having a different icon for this case would be nice, but we
don't have it :-(

If anybody provides a nice icon for this (with Firebug licence) I'll
use it within the message.

Thanks!
Honza


On Feb 1, 8:03 pm, Garrett Smith <dhtmlkitc...@gmail.com> wrote:
> On Mon, Feb 1, 2010 at 10:52 AM, Honza (Jan Odvarko) <odva...@gmail.com> wrote:> | I have not seen such error. When I run AsyncRequest-test.html, I see


> > | that the request was aborted.
> > |

> > | POSThttp://192.168.0.101:8020/ape/test/tests/ajax/data.json.txt


> > Aborted
> > |
> > | If you dislike the display of that error message, then that is a
> > | firebug-issue. I have added the firebug discussion group as CC.
>
> > How can I run the AsyncRequest-test.html test and see the problem?
>

> If you want to run AsyncRequest-test.html, it is available of GitHub here:http://github.com/GarrettS/ape-javascript-library/blob/master/test/te...


>
> You don't have to run that file to see what the OP describes as a
> problem. Just create and abort an xhr in Firebug:
>
>   var x = new XMLHttpRequest();
>   x.open("get", location.href, true);
>   x.send();
>   x.abort();
>
> Result:

> GEThttp://www.google.com/  Aborted

Reply all
Reply to author
Forward
0 new messages