0
On the server side:
return JavaScript("Callback()");
On the client side:
function Callback(){
//
}
The result is displayed as "Callback()" on the web page, I took the example here.
Some solution ?
0
On the server side:
return JavaScript("Callback()");
On the client side:
function Callback(){
//
}
The result is displayed as "Callback()" on the web page, I took the example here.
Some solution ?
Browser other questions tagged javascript asp.net-mvc
You are not signed in. Login or sign up in order to post.
Javascript does not interact directly with back-end and front-end, or runs on the front end or runs on the back end (with interpreters like Node.js or the like), direct communication will never be possible, WEB is HTTP, that is is request and response, containing payload (POST, PUT) or not.... What exactly do you want to do? Because there are strategic solutions for every case that can suit you, but.
– Guilherme Nascimento
@Guilhermenascimento this is the idea: The site sends an email to confirm the account, after clicking a "confirm" button, redirects to the main page and show a modal saying it has been confirmed success. I don’t want to create another view or an html page saying it’s been confirmed, I just want to show a modal.
– Matheus Miranda
You can use a session to say that it has been sent or you can use the querystring parameter for an IF to inform the View that it should display the modal on the following page.
– Guilherme Nascimento
@Guilhermenascimento because I didn’t think of it ? What anger , thank you.
– Matheus Miranda
Imagine, a good night/
– Guilherme Nascimento
@Guillhermenascimento
– Matheus Miranda