N
N
not-deanon2016-08-05 15:27:54
JavaScript
not-deanon, 2016-08-05 15:27:54

How to send a command without reloading the page?

Hello. The situation is as follows: there is a command that looks like this: http://* ip address here*/*here are some letters and numbers*. I paste this command in a href="" and following the link, the command is executed. But at the same time, a new blank page opens, where the command is written in the address bar.
How can I send a command without reloading the page? And is a handler necessary in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Belyaev, 2016-08-05
@bingo347

Reading about
ajax and cors

T
tgnwest, 2016-08-05
@tgnwest

<button id="sendRequest">Отправить запрос</button>
$( function() {
$('#sendRequest').click( function() {
    $.get("url");
});
});

More jquery.page2page.ru/index.php5/Ajax_%D0%B7%D0%B0%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question