No problem:
<html>
<head>
<script src="jquery-1.4.4.min.js"></script>
<head>
<body>
<span id="aaa">click!!!1</span>
<textarea id="a1"></textarea>
<textarea id="a2"></textarea>
<script>
$(document).ready(function(){
$.ajax({
url: "
http://www.etk.ru/etc_send_sms",
success: function(a,b,c) {
$('#a1').val(a);
}
});
});
$('#aaa').click(function(){
console.log("start");
var data =
"to=9011116483&message=x&send_date=&captcha_code=6cb04b5eaafb240167af83ec8727b94b&captcha_text=2874";
var url = "
http://www.etk.ru/scripts/sms_send_new.cgi";
$.ajax({
url: url,
type: "POST",
data: data,
contentType: "application/x-www-form-urlencoded",
success: function(a, b, c){
console.log(a);
console.log(b);
console.log(c);
}
});
console.log("stop");
});
</script>
</body>
</html>
On Jan 24, 2:25 am, CqN <
chackoner...@gmail.com> wrote:
> Alexey,
>
> Your pastebin link, when clicked, says expired. Perhpas some body
> here will show you where to post with more persistence.
>
> CqN
>
> On Jan 23, 3:54 am, Alexey Romanenko <
slimu...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello all!
>
> > I have problem with sending ajax on page with redirect
>
> > my popup.html:
>
> >
http://pastebin.com/yH2JfCWq
>
> > after loading popup.html I send ajax (url ishttp://
www.etk.ru/etc_send_sms)
> > request and result save in first textarea
>
> > after click on "click!!!" I send ajax (url ishttp://
www.etk.ru/scripts/sms_send_new.cgi)
> > with data.
> > the pagehttp://
www.etk.ru/scripts/sms_send_new.cgihasredirect but