FineUploader On Leave Handling - fine-uploader

We are developing a Single Page Application in which we have hash based routing, FineUploader seems to have a functionality where when the user clicks the Browser Back the Upload is canceled, how can we use it on navigation inside our app...

Fine Uploader does not cancel an in-progress upload when the user navigates away from the current page. Quite the contrary - it prevents the uploader from being accidentally canceled by popping up a confirm dialog. If you would like to cancel all uploads at any time, you can do so via the cancelAll API method.

Related

Back button not working as expected in Teams Mobile

I have the MS team's custom tab application for the team's. It is an angular application, it has some internal navigations like navigating from one view to another. When I am sending a notification using the sendActivityNotification API call, it reaches to the mobile app. With the click of the notification, the application loads and it works fine.
But after navigation, if I tap on the back button of the device or (<-) button from the MS team's app header then it behaves like loading the history instead of navigating back to the activity(Feed).
Thanks,
Pratap

Slack event for when a bot authorization is removed

I'm building a Slack app that works across workspaces. I'm using the app_uninstalled event to update my database when a workspace uninstalls the app, but I can't figure out how to handle when a user removes the bot authorization from the app Settings page.
When this happens, the app is effectively uninstalled, but I need my app to get notified when this happens. I've tried the tokens_revoked event, but it's not being sent.
The short course: I'd like my app to get notified when the trash can icon (in the image down there) is clicked. Thank you!
As far as I've worked with the slack events APIs, tokens_revoked is the method which is triggered when a user clicks the trash-bin you are talking about and confirms the action. I've just confirmed it a few minutes ago as I'm also facing a similar (not same) issue.

Chat history Persistence in MicroSoft Botframework WebChat window

I have a requirement of maintaining chat history and loading them back in a window after a page refresh or close and opening of the window.
ISSUE : Buttons/carousel/Adaptive cards/Hero Cards events/ properties are not loading (ie; when I click on button or any event, actions are not happening).
DESCRIPTION:
In order to achieve the requirement i had 2 options.
BotFramework _ Directline JS
I guess using this we can only get conversation history and where we couldn't load back the conversation history in chat window.
Though we can get the conversation history we have to send all the messages to bot again.
So i had opted 2nd one.
Store the html controls and Load it in the bot div: When sending or receiving message action is happening from bot am storing the html controls(i.e; controls under wc-message-groups class in local storage) and binding back to the div on page load if data exists.
This works for me to show conversation history in a chat window. But I am not able to get the events/actions for buttons.
Can we do this with Directline JS or is there any option to load properties/events to controls?
Please help me with this issue.
Thanks in Advance
I would start by taking a look at this thread out the Webchat GitHub repo. There is a good discussion going on about how this may be accomplished.
I also created this project in C# using webchat which will provide chat history in the webchat control. The project uses this pull request branch which you would also need to use. Hope this helps, good luck.

MVC4 Remote Validation clashes with submit button

I have a remote validator setup on my text box which primarily checks if the data that the user enters is unique. I do understand this works on mouse out of the original control and does an AJAX call for the same.
My problem is that while this works fine while am tabbing between controls on my form containing like 6 other controls, if I am directly clicking on the submit button on my form, the request does not go across since the AJAX call for the remote validation is in progress, and the user would in this scenario have to click on the submit button twice to actually save the form.
Anyone come across this scenario?
I would suggest, leave your button disabled; and only enable if all of your validations have been passed. This way, your button will only be enabled once you have got the response back from the remote validation.

How to sync my backbone.js app with the changes on server?

I have an app in backbone.js. The user can add items to the app which are added at the backend server and the collection is refreshed and the user sees the added data. How can I sync the app with any changes in the backend. Suppose if multiple users add the data at the same time each one should see the changes.
There are options like ajax polling where I can refresh the model after a certain time period but I hate to use it.
Can you suggest any event driven method where any change in the backend is reflected immediately in the frontend of my app.
You can add a kind of refresh event on your app, which will refresh every few minutes. Something like evernote desktop application does. In that event you would add collection sync event.
You can also use something like
collection.sync(method, collection, [options])
http://backbonejs.org/#Sync
This doesn't answer your question though, and I'm not sure how you would push changes from server to client.

Resources