Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by umeshmodi
at 2024-11-22 01:46:49
Point:500 Replies:6 POST_ID:828817USER_ID:11724
Topic:
Asynchronous Javascript and XML (AJAX);JavaScript;Programming for ASP.NET
I want to create javascript which access web service across domain like google ad sense
Please help me with the same
Please help me with the same
Expert: Rob Jurd replied at 2024-12-27 02:15:45
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Expert: Rob Jurd replied at 2024-12-22 11:47:07
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I have recommended this question be closed as follows:
Split: duncanb7 (#39668740)and duncanb7 (#39671343)
If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
tagit
Experts-Exchange Cleanup Volunteer
I have recommended this question be closed as follows:
Split: duncanb7 (#39668740)and duncanb7 (#39671343)
If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
tagit
Experts-Exchange Cleanup Volunteer
Expert: COBOLdinosaur replied at 2024-11-23 07:12:22
I have added asp and asp.net topics to the question where it will be seen by asp Experts.
COBOLdinosaur, Topic Advisor
COBOLdinosaur, Topic Advisor
Assisted Solution
Expert: duncanb7 replied at 2024-11-23 05:13:32
250 points EXCELLENT
Dear umeshmodi,
I did not find anything about a word of "asp.net" in your question and its topic or tag . I got a little bit confusing. So I guess you want the php code is replaced by
asp.net, Right ? Since I don't use asp.net, so the following aspx code is just example idea or code only and not tested. I think other EE members will have better help or code in asp.net
Hope I understand your question compeletely, if not, please help to point it out my
mistake
helper.aspx
I did not find anything about a word of "asp.net" in your question and its topic or tag . I got a little bit confusing. So I guess you want the php code is replaced by
asp.net, Right ? Since I don't use asp.net, so the following aspx code is just example idea or code only and not tested. I think other EE members will have better help or code in asp.net
Hope I understand your question compeletely, if not, please help to point it out my
mistake
helper.aspx
<% url = Request.QueryString['a'] set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send "" Response.write xmlhttp.responseText set xmlhttp = nothing%> 1:2:3:4:5:6:7:8:
Author: umeshmodi replied at 2024-11-23 03:26:33
My project is in asp.net
Accepted Solution
Expert: duncanb7 replied at 2024-11-22 05:07:15
250 points EXCELLENT
The Ajax on todays browsers is only allowed for same domain access,
if you need to cross-domain ,you need a helper page setup in your server in
which it will help to grab the result from the cross-domin site by for example
like curl() function in php and then it will echo back the result into your javascript code .
The following is just example code and it's not tested. And so target example
cross-domain, like google, its content html code result will be
collected into your javascript code, and then you can do any javascript operation as you like
Hope I understand your question clearly, otherwise please point out the mistake.
Duncan
Helper page, helper.php
=========================
if you need to cross-domain ,you need a helper page setup in your server in
which it will help to grab the result from the cross-domin site by for example
like curl() function in php and then it will echo back the result into your javascript code .
The following is just example code and it's not tested. And so target example
cross-domain, like google, its content html code result will be
collected into your javascript code, and then you can do any javascript operation as you like
Hope I understand your question clearly, otherwise please point out the mistake.
Duncan
Helper page, helper.php
=========================
<?phpexec("curl ".$_GET['a'].">junk.txt", $a);echo file_get_contents("junk.txt");?> 1:2:3:4:5:6:7:
yourjavascript.js, Ajax for get result by helper page from your server
=====================================================
<!DOCTYPE html><html><head><script>function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } }xmlhttp.open("GET","helper.php?a=http://www.google.com",true);xmlhttp.send();}</script></head><body><div id="myDiv"><h2>Let AJAX change this text</h2></div><button type="button" onclick="loadXMLDoc()">Change Content</button></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:32:33:34: