What is this popup notification in gmail, and how can I replicate it? I assume it is javascript. I'd like to use it in an outside google web project but I don't see anything in the API about what it is called.
That pop-up message that you see is not produced by the Gmail, it's already in your Spreadsheet when updating Custom Menus.
If you want something like that, then you can use Dialogs in Spreadsheet using the Google Apps Script.
You can either use Alert dialogs, Prompt dialogs or Customs dialogs that you want for your Docs or Spreadsheet.
Just visit the link of different dialogs, it will give you a sample code on how to do it :)
You'll need to use a browser extension.
Try out https://www.inboxsdk.com
Related
I am using the latest version of selenium web driver and google chrome browser.
In my app, after clicking on login button while dom is getting loaded I get a popup
image
I just want to close this popup without entering any value. I am using java for scripting.
I tried javascript executor, all popup handlers from selenium but not able to close the same. I am not able to shift control on the popup window.
I google a lot but didn't found any relevant code
This is a default behavior when using HTTP basic authentication. To stop this window to come you would need to send user and password in the request. Or as I understand from other response I found about this you can write:
driver.get("http://UserName:Password#Example.com");
There seems to be a similar issue, going on in thread: How to handle authentication popup with Selenium WebDriver using Java
If all you want to do is "Cancel" the popup, instead of entering credentials. You may be able to just use this.
driver.switchTo().alert().dismiss();
using AutoID was able to resolve above issue.
Refernce: http://learn-automation.com/handle-windows-authentication-using-selenium-webdriver/
I use autocrat to mail merge legal documents with a database in Google Sheet. Autocrat does instantaneously trigger when a Google Form is submitted, which is great, but I also require the task to perform automatically. Through some searching, I learnt that a modified Google Form link can submit Google Forms with pre=filled answer.
This is where I am stuck.
I have set up (or I think I have) the script in Google Sheet to onChange (Insert_row, edit). I'd like that to trigger a new window or tab to open, going to the modified Google Form link, thereby triggering the form, which then triggers autocrat, then I can have my documents mail merged automatically.
This is the code I am using, which isn't working.
function openWindow(url) {
window.open('url', '_blank');
window.focus();
}
Is this a coding error, or is this a limitation within Google Script? Most of the codes I found involves using a button and then clicking it, I also read that there are browser limitations for auto pop-ups.
Short answer
While Google Sheets and Google Forms use HTML, JavaScript and related things to work, there are some restrictions. See the guides to learn about what could be done.
Explanation
JavaScript window object doesn't work on your script because the code on .gs files runs on Google servers (server-side) not on the user browser (client-side).
See Dialogs and Sidebars on Google Apps Script to learn the basics about how to show a dialog.
I am trying to develop a chrome extension which basically has a button , on click which opens the Gmail compose mail popup, with subject/body filled with static text content everytime.
I tried reading Gmail APIs, but couldn't get far.
If anyone has worked on any such thing, please guide me.
I am still amateur at this.
Try this link -
https://mail.google.com/mail/?view=cm&fs=1&to=someone#example.com&su=SUBJECT&body=BODY&bcc=someone.else#example.com
This is the gmail link to compose an email.
Is this what you where looking for?
Is there a JS framework or library to add text/check box to gmail UI?
Please note that the data contained there will be sent through AJAX - JSON object to a particular server.
Idea is to make a Chrome extension with this functionality.
Something similar to:
Thanks.
You can write Greasemonkey script for that. It's supported by Google Chrome by default.
I guess the title is clear enough.
I would like to import the Javascript SDK of Facebook inside a Spotify App. Mainly to use the Dialog feature.
Does someone know if it is possible?
possible answer/workaround. https://developer.spotify.com/technologies/apps/docs/beta/09321954e7.html
the API has a showAuthenticationDialog, but what it actually does is that it shows a popup that closes when the url parameter is loaded inside that popup. if the authenticatewith facebook isn't enough for you then this might be a possible solution to use, you can use it with facebooks page too. if you just open a link regularly it will open up outside Spotify.
you still might be able to use the facebook js sdk though, but if it uses popups you'll need to use this in it instead.
You don't need the JS SDK to use the Dialog feature. All dialogs have a plain old URL you can send users to (within a popup, or the main window).
For example, the Feed dialog:
https://www.facebook.com/dialog/feed?app_id=YOUR_APP_ID&redirect_uri=YOUR_REDIRECT_URI