I am still new in ASP.Net but and I have got some questions. I know about jQuery-ajax cross-domain policy, but can I do something when I have this js file associated with an ASPX page? I mean - in ASP I can use WebClient
or HttpWebRequest
/Response
(cross-domain), so maybe there is some solution to use that with jQuery ?
So far i have only came up with:
WebClient wClient = new WebClient()
byte[] arr = wClient.DownloadData("http://www.google.com/");
Response.Write("<div id='placeholder' >");
Response.Write(System.Text.Encoding.UTF8.GetString(arr));
Response.Write("</div>");
And then with jQuery
var c = $('#placeholder').find('#content'); //assuming that there is some tag with id=content
$('body').append(c)
Is there more elegant solution? Do you know some tutorials?