Connecting Tech Pros Worldwide Help | Site Map

prototype = new XMLHttpRequest()? why not?

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 3rd, 2008, 07:55 PM
Piotr K
Guest
 
Posts: n/a
Default prototype = new XMLHttpRequest()? why not?

Ok, all over the internet people are creating "wrapper" object over
XMLHttpRequest rather then prototyping it and I wonder why, are there
any drawbacks for this method? I couldn't find much info about it on
google..

Thanks for replies

  #2  
Old March 3rd, 2008, 09:45 PM
Helbrax
Guest
 
Posts: n/a
Default Re: prototype = new XMLHttpRequest()? why not?

On Mar 3, 3:50 pm, Piotr K <piotr.korzeniew...@gmail.comwrote:
Quote:
Ok, all over the internet people are creating "wrapper" object over
XMLHttpRequest rather then prototyping it and I wonder why, are there
any drawbacks for this method? I couldn't find much info about it on
google..
>
Thanks for replies
I don't think IE6 will allow you to protoype the xmlhttprequest
object. I don't know about IE7's native object.
  #3  
Old March 3rd, 2008, 10:25 PM
Joost Diepenmaat
Guest
 
Posts: n/a
Default Re: prototype = new XMLHttpRequest()? why not?

Helbrax <linn.white@hotmail.comwrites:
Quote:
I don't think IE6 will allow you to protoype the xmlhttprequest
object. I don't know about IE7's native object.
It's worse than that: IE6 doesn't even /have/ an XMLHttpRequest object
as a property of the global object. IOW, there isn't anything to
"prototype". And looking at IE behaviour for other host objects, it's
doubtful you can usefully extend XMLHttpRequest's prototype on IE7,
though I haven't tried it.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.