sorry...change this:
<div id="div1" onclick="vremote('http://w
<div id="div1" onclick="vremote('http://w
to:
<div id="div1" onclick="vremote('http://w
<div id="div2" onclick="vremote('http://w
Main Topics
Browse All TopicsI'm making a page to query other website and return a result.
Like this website does
http://tools.web-max.ca
I know how to do this for one website using MSXML2.ServerXMLHTTP.
The remote page would just display "success" or "fail"
So one the main page e.g
Name status
website 1 success
website2 fail
The code I'm using at the moment can only handle one request at a time, how do I get more to display?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
sorry...change this:
<div id="div1" onclick="vremote('http://w
<div id="div1" onclick="vremote('http://w
to:
<div id="div1" onclick="vremote('http://w
<div id="div2" onclick="vremote('http://w
Please see the code below:
test page: http://www.zipcm.com/temp.
please note: you may not be able to pull this from another domain, as you would not have proper access in order to do it.
Well... if you have control over the other domain(s), you can pass credentials through this effectively logging in and getting access to do what you need.
Although, in your question you do not mention the need to retrieve information from either, just a pass or fail.
Using the code I posted (with a little modification) will do that for you. All that needs to be done is an else statement in the triggered triggered function to return a false value will do that.
I'll get another test page up and code for this. (your question...)
test page:
http://development.zipcm.c
code:
Thanks for the updated code however it's still not quite what i'm after. When I said the remote page would display success or fail this would be what text is on the remote page. The idea is to create a webpage that tells me if a client backup has run or not which would be remotely hosted on a clients server. Then from a webpage in my office I can setup and query lots of clients backups in one screen. The example url I provided has been changed now but what it did on load is go away and then change the icon against a name too a tick or cross which is basically what im after depending on the remote text.
I have tried the above method but can not get it to pull information from an external domain.
>>
I have tried the above method but can not get it to pull information from an external domain.<<
as has already been stated, this cannot be done across multiple domains unless you are authenticated. I suggest you do a search on "Cross Site Scripting" to see why it is not allowed.
The code I posted does what you asked it do to... pass back a Success or Fail...
If you need to check a site on a different domain then you need to look at server script as the way to get it. In other words you would use a page on your server to get the response from the remote site. Then you could still use AJAX to dynamically fill the page but the URL would be a page on your server. The same server as the page with the AJAX script. Kevp75 is right that you can't access other domains, etc with AJAX. He gave you the term for it and it would pertain to a different protocol as well. It is browser security to protect the user but can be done by server script.
If your server language is ASP then it doesn't have a great tool to use for this but the Server version of the MS XMLHTTP object or third party programs like ASPTear or ASPHTTP.
Let us know how this helps or if you have a question.
bol
I have written my own asp solution based on kevp75's comment about passing the id to a function. Using MSXML2.ServerXMLHTTP I have written a vb script function that does the same job. Apologies for the confusion as I should have posted the MSXML2.ServerXMLHTTP code instead of the xmlHttp=GetXmlHttpObject code. Getting information from a remote website was a core part of the question. Thanks for your help with this query.
Business Accounts
Answer for Membership
by: kevp75Posted on 2009-05-19 at 05:13:47ID: 24420985
pass the div ID to the function as well... and then have multiple divs on your page:
Select allOpen in new window