What I'm trying to do is quite simple, extend a small application which will send an Ajax request and retrieve a link from a website. The particular request is something along the lines of:
Expand|Select|Wrap|Line Numbers
- new Ajax.Request(url, {parameters:pars, onComplete:
- function(r) {
- var url = r.responseText;
- Element.hide('loading');
- Element.show('link_block');
- if ('' == url) {
- $('link').innerHTML = 'Failure: cannot get download url...';
- } else {
- $('link').innerHTML = '<a href="'+url+'">'+url+'</a>';
- }
- }
- });
What I'm really stumped on is how to easily include the Ajax request, in a purely winforms application, I can't seem to find any simple C# guides in Google. Anyone got any suggestions/starters?
Cheers!