Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 21st, 2004, 05:35 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Microsoft.XMLHTTP

Hi

I hope you guys know this object, I am using it with JavaScript, does anybody know which browsers support "Microsoft.XMLHTTP" and what versions of them, please?

thanks
Jim

Reply With Quote
  #2  
Old August 21st, 2004, 07:21 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microsoft.XMLHTTP

IE5+/Win

but in mozilla (and all gecko-based browsers), and safari you can use XMLHTTPRequest class..

Reply With Quote
  #3  
Old August 22nd, 2004, 06:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Microsoft.XMLHTTP

is there a method that is supported by all (Mozila, safari, IE, Netscape etc.)?

Reply With Quote
  #4  
Old August 22nd, 2004, 06:59 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microsoft.XMLHTTP

no, but you only need to use different constructors, the usage of the object is the same in any browser..

so, for example, start with..

Code:
if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
} else {
    req = new ActiveXObject('Microsoft.XMLHTTP'));
}


after that, you can use the req object, and it will work in all the browsers (except opera)..

Reply With Quote
  #5  
Old August 22nd, 2004, 07:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Microsoft.XMLHTTP

I really thank you very much!

what do suggest I do with Opera?

Reply With Quote
  #6  
Old August 23rd, 2004, 02:51 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microsoft.XMLHTTP

opera doesn't have support for this..

maybe you can hack something with loading pages into (hidden) IFRAMEs, and then reading the content, but that seems like a great trouble for such a minor browser..

Reply With Quote
  #7  
Old August 23rd, 2004, 06:12 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Microsoft.XMLHTTP

i'm still stuck with this...

here is the code i am using:
Code:

function get_page(){
if (window.XMLHttpRequest) {
    var http = new XMLHttpRequest();
} else {
    var http = new ActiveXObject('Microsoft.XMLHTTP'));
}
                try
		{
             http.Open("GET","http://www.yahoo.com",false);
             http.send();
             if(http.readyState==4)
			 {
				 document.write(http.responseText);
			 }
			 
        }
        catch(e)
		{
             if(e instanceof Error) {return 0}
        }
}


if I use an address that does not exits (Example: "http://www.yahoo.com/bababa/") my browser gets stuck.

any idea how to set a timeout for fetching a page, or a way to return if the page can not be fetched?

thanks

Reply With Quote
  #8  
Old August 24th, 2004, 07:54 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Microsoft.XMLHTTP

please?

Reply With Quote
  #9  
Old November 24th, 2005, 03:08 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Microsoft.XMLHTTP

Maybe there is a request header you can add to specify your timeout??

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Microsoft.XMLHTTP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway