How to automaticly approve opening of new window for authenticating - javascript

I'm using office js helpers for a word addin, that is a collection of helpers to simplify development of Office Add-ins. in my case it is the authentication that is used.
When you open the addin. The authentication proccess starts and it opens up a small window with the text(translated to english)
Templatehandler wants to open a new window
Allow or Ignore
(Allow or ignore are buttons)
The company that I work for wants this proccess to be automated - It should be allowed right out of the box. How do I acomplish that?

Related

Screen shot of the available windows

I am building a messaging web application where I want to add a functionality to capture and upload the screenshot of any of the opened windows selected by the user.
Complete Use case: On the web app instead of uploading an image user will click a button (called capture) which will enable the user to take a screen capture of any of the selected window. This is similar to screenshot/screen clipping in outlook or office products. We need this functionality to be embedded in the web app running on the browser.
Example: A user is using my web app and wants to share a painting art s/he made using the paint application, s/he clicks on the 'capture' button and select the paint window which is opened and take a screenshot of that paint window and upload that image in the web app.
Is there any javascript library which can help me perform this action?
It is different from this question (Using HTML5/Canvas/JavaScript to take in-browser screenshots) as I am looking for the screenshot on different window rather than on the browser window.
Thank you.
It is not possible to capture screenshot, or do anything at all, outside of the DOM content in one tab/window.
Refer https://en.wikipedia.org/wiki/Same-origin_policy
A web page can only access its own contents. Not other web pages. Not things outside the window.
If you're looking for some tool to capture screenshots of any window and any web page, it should be a native application of that OS (windows app, android app, etc) and should use the tools/api's provided by that OS. That cannot be integrated directly into a web page.
The closest option is to let the user take a screenshot using whatever tool necessary and upload/paste that image onto your web page.

How to develop live chat using node js

I want to develop live chat using node js. Can anyone guide me how to do this? The use cases I decided :
User will see a link or icon on the app screen labeled ‘Online chat support’.
Clicking on this, chat window will open up. Either it will indicate the name of an agent who is online and ready, or it will indicate that agents are busy, and change that status once an agent is available.
On the agent’s side, upto 3 windows (from 3 users) will be opened up before the busy message is generated for further users. This number (3) will be configurable.
The agent will get the name of the screen the user is pinging him from.
Since there will be multiple agents, we need ability to tag a bunch of screens (or apps) to a particular agent.
A load distribution mechanism is required whereby a new query gets routed to any agent who is free, and tagged to that screen or app.
"We need ability to set up an unavailable message for certain time windows –
if chat support is only available say between 9 Am and 6 PM IST, we should be able to set up a message for users who log in outside this window that says ‘Online chat support is only available between….”"
Please advise how to proceed.
You can use socket.io module for creating live chat.
Check this tutorial.

asp.net javascript Always open single instance of application from email link

I am working on an application (asp.net) where links to my application go through an email. Now one of the requirements is that only one instance of the application must be open for a user. Now when a user clicks on a link from an email I want to be able to spot if my application is already open in one of the browsers, grab it, change location and focus on that. Expecting it to be a javascript solution.

opening up a server location from a websitse

GOAL:
I have a business request that wants us to create a link so the user can open a server directory (in a file manager window) from a link on our website. We want them to stay on the same IE page. FWIW- this is in our salesforce environment
PROBLEM:
I am getting an irritating defect. That is, that the file manager window is opening up to a server, but i'm also getting a blank IE window to open up, which is a poor user experience.
Can someone help me with a way around this artifact?

Downloading a file from the web to be attached to an outlook message sent from client

Yes. I know most developers avoid this because the browser does not allow such hidden downloads, and ask the user if and where to save the file (Known web security issue).
And also I could not know when the download is over.
But
If my client realy insist that he will be able to click once on a web page an have an outlook window open and filled,containing an attachment. can I do so using my own customized browser?
Using a customized browser, yes. (If your client runs windows and has office installed...)
For example, create a .Net winform-program with a IE-browser-control in it.
Add hook to IE-control to get when user clicks a specific a-link.
Then perform a download of file from winform-program, use office-api/automation/3rdpart-control from winform-program to fire up a new mail and add attachment to the mail.
There is no way you can push a server side existent file into a local email window as attachment. It is not sure your client machine runs windows or has MS Outlook at all.
there are mailto link specifications to have urls made in a way that most of the Email clients will receive certain commands from the browser and act accordingly, for example as you can see here: Mailto Parameters Test try the link in the page and you will get a new email window in your default Email Client with To, CC, BCC, Body and subject prefilled.
There is nothing else you can do because you cannot embed file streams in such mailto url.

Categories