Connecting Tech Pros Worldwide Help | Site Map

prototype = new XMLHttpRequest()? why not?

  #1  
Old March 3rd, 2008, 08:55 PM
Piotr K
Guest
 
Posts: n/a
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, 10:45 PM
Helbrax
Guest
 
Posts: n/a

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, 11:25 PM
Joost Diepenmaat
Guest
 
Posts: n/a

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/
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX Not Working In Firefox Danny R answers 5 July 19th, 2006 03:25 PM
ajax + prototype.js + multipart/form-data NextOne answers 3 September 30th, 2005 06:25 PM
xmlhttprequest not working jason.lucey@gmail.com answers 8 September 22nd, 2005 12:35 AM
XmlHttpRequest & Opera8.00 - Test for setRequestHeader? Matt Kruse answers 5 July 23rd, 2005 09:31 PM