How to continue old conversation in Cortana after user clicks on a card that invokes a URL? - cortana

As you can see from the below screenshot, we are able to create a Cortana channel based MS Chatbot that lists out certain information.
When we click on the card, we are getting navigated to the URL's as well but there are additional dialogues post this action. Cortana for some reason doesnt retain this information and we have to start all over again, as it loses its focus. Can someone suggest how to get Cortana to be at the same point where we invoked the URL click action?

Related

How to get an alert/confirm dialog box with custom message when refreshing a page

I am trying to show a pop-up (alert/confirm box) with a custom message when a user refreshes a page. The reason is to alert the user that the data they entered might be lost. I have tried working with the 'beforeunload' event -> https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload.
It shows a dialog box specific to the browser and the message cannot be modified anymore. Is there a way to show our prompt (alert/confirm) with custom message? If there is, will it cause any security issues?

Unable to prevent browser back click after redirection

I'm Using Next.js in my project. I am having payment option in my application., Once I got redirected from the Payment gateway I want to stop user clicking browser back button.
currently, If user click browser back buton it goes back to payment gateway.
I am using next-routesfor routing, redux for state management.,
I tried to stop browser back navigation with this package disable-browser-back-navigation, but the issue remains same.
can anyone help me on this.

How to get back data entered in html controls on clicking of back button in browser in Angular

I am retain earlier values in web page controls once user click on back button in browser .
I want to do that in Angular application.
Please suggest
There is no specific way to tell when a user presses the back button.
What you can do, is call an ngDestroy hook and set local Storage items in the hook, refer to this article on how to set local storage items:
https://medium.com/#tiagovalverde/how-to-save-your-app-state-in-localstorage-with-angular-ce3f49362e31

Detect when a user leaves the single page app

I want to pop a modal with "Cancel" and "Yes" buttons when a user attempts to leave the single-page app.
To provide some context, I am working on a single page app that appears on a larger site that is not part of the single page app (so, the header and footer is part of the larger site, and single-page-app is the content). When a user attempts to leave to another part of the site (by clicking somewhere in the nav for instance) that is not part of the single page app, I want a warning modal to display with a warning. A user can close or refresh the page as much as they want, and it shouldn't pop a modal. Same thing if a user hard-codes a url (say, google.com in the browser), the modal should not pop.
So far the other similar threads I found on stackoverflow either uses Prompt component, or window.onbeforeunload. Both of these have the issue of them popping a default text box with a warning, and not a custom modal, which is an important problem, but that isn't all of the issue.
Prompt, to my understanding triggers whenever a user redirects within the single page app, which is not the behavior that I want.
window.onbeforeunload, to my undertstanding triggers even when refresh or close, which is not the behavior I want.
Maybe this isn't such a common problem, since I can't seem to find an easy solution for this, but any and all ideas are greatly appreciated.

Redirecting to previous page without reloading

I have a question that suppose, I have an Admin Dashboard page, on which I have given a list of users. clicking upon a particular user the details of corresponding user is shown on a different page (say on userDetails.jsp). Now I have a back button on userDetails page, Clicking of which I need to redirect admin to the last visited page that is Admin Dashboard page, I have one solution that I can "Reload" the previos page on clicking back button, but then I feel that there is the overhead of calling a server side API, retrieving all the data, Again redraw the whole admin dashboard page even when there is no change made in the userDetails[because it is read only page, modification is not allowed there]. Is there anyway that I can make user of cache or anything else so that I will not need to go to the server to fetch all the data again. I am using spring MVC, angularjs, Thank you.
On your button's click event add the following code:
$window.history.back();
make sure to use $window rather than window since you're using AngularJS

Resources