Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
read cgi response
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Evertjan., post: 4952763"] Mitschu wrote on 10 jul 2007 in comp.lang.javascript: Use AJAX like technology: var http = new ActiveXObject("Msxml2.XMLHTTP"); // look for more Cross browser friendly code, this is IE only function getUrl(url) { http.open("GET",url,false); http.send(); return http.responseText; } or use a serverside equivalent, and patch the result in the clientside js code: var myString = '<%= resultString %>'; <% ' vbscript Set http = Server.CreateObject("Microsoft.XMLHTTP") function getUrl(url) ........................ %> or maybe this works, not tested!: <script language='jscript' runat='server'> var http = new ActiveXObject('Microsoft.XMLHTTP'); function getUrl(url) { http.open("GET",url,false); http.send(); return http.responseText; } </script> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
read cgi response
Top