I've been searching for an answer to this but can find anything on it.
In Word, when the user closes a document they are prompted with the "save", Cancel Save", "Cancel" dialog.
Is there a way to tell which one of those buttons the user clicked on?
I know the even DocumentBeforeSave is sent out, But I can't find a way to tell which button the user actually clicked on.
I need to know in particular if the user clicked the "Cancel Save"
Note: using c#; 2007 dll's
I am pretty sure that cancel save and cancel are the same thing. When a user saves a document, you will see a DocumentSave.
Related
I'm developing a Word Add-in (Word API + Office.js) and I'm wondering if it's possible to get notified when the user click on Close button of word application
Currently my word template has few content controls with data, i am saving the content control data to database when the cursor comes out of the control.
i am trying to implement the same logic when the user click on Close button.
so want check whether Word API has a way to track user click on Close button? Thanks!
I'm afraid that there is no way yet to handle that event in Office.js. But it's a great idea. Please go to Office Developer Suggestion Box and vote up this suggestion.
I am builing Word Plugin, I follow the tutorial to set up SSO by adding
<WebApplicationInfo>
<Id>{application GUID here}</Id>
<Resource>api://localhost:44355/{application_GUID here}</Resource>
<Scopes>
<Scope>openid</Scope>
<Scope>offline_access</Scope>
<Scope>profile</Scope>
<Scope>files.read.all</Scope>
</Scopes>
</WebApplicationInfo>
into my manifest file, however, everytime I refresh the page, when I click my plugin icon, it pops "Permission Needed" dialog box to ask above permissions, even I already gave the consent before, I thought it will remember my consent for the app. It shouldn't bother me again and again, this behavior happens before "Office.initialize" event, therefore not my code cause that.
My question, any way to let the "permission needed" only popup at first time, and after I gave the consent no matter how many times I refresh the page, when I click my plugin icon, it will not popup again?
Thanks
* More info appended *
I use my "Work or School" account login to office365, the URL is https://word.office.com
choose any word file, and click my plugin.
Then give the consent for app.
Then, If I reload the current Word page (by pressing Ctrl+F5) and click my plugin icon again, it repeat the above steps which I already give the consent.
That not make sense, or it only happens when I am developing, then it will be ok when published to Microsoft AppSource?
This may be silly but i really want to know about this, not only me this may be question a from thousands of students.
The following link is my university website
LINK
there is a login panel.
after entering my username & password if i click enter then page reloads but the expected behaviour is to submit the form.
To actually login into this website you need to click on submit button.
Can anyone explain me about this.
what i think is there must be some onlick event on sumit button but
the button there is <input type="submit"> so by default it
need to submit by pressing enter as usally happens in all websites
I also noticed one more thing that the form tag is missing there.
Any help or explanation about this question is appreciated
EDIT
just enter a wrong email and password
if u press enter: there is no red color error message of wrong
email and password
if u click submit:there is a red color error message of wrong email and password
The default behaviour is that when input with type submit is present in the form, the form will get sumitted upon click on the button, or enter key press when some form control has focus. Since controls on your site are not inside of form the expected behaviour will not be seen.
I have a Selenium IDE (version 1.7.2) test that I use to test the registration flow on my site.
In this test, I simulate signing up for several different accounts. To do this, I recorded myself signing up for several accounts.
When I play the tests back, some of the accounts are registered ok, but other times the Submit button is clicked (the action turns yellow in the IDE) but it hangs, refusing to fail (turn red) or go on. However, if I manually click the submit button in the browser window again during the test, the test will continue and it will mark the submit button green as if it passed correctly.
How can I get it to click the submit button correctly the first time? Or is there a way to automatically get it to re-click if it times out?
Are you using clickAndWait??if yes then change it to click and put pause after click command.Or try to locate element by different ways, or hit enter to submit form as
`keyDown | locator of element/last field | \13`
as twall suggested
Did you use the command waitForElementPresent before calling the click command ?
I have found out that is more secure to just sendKeys("\n") (simulationg an 'enter' key press) instead of using click() when filling out forms. Don't ask me why, but it was a big relieve to me, after I had found out.
I've developed a Facebook iframe application, where we run a contest. It can be found here :
http://www.united-bakeries.no/facebook/tub/0412/
(The web site is in norwegian. The link will expire on March 4th when the contest ends.)
The contest is about guessing the winner of the Vasaloppet ski race. When you click the like button on one of the athletes, the pictures of all the athletes disappear, and a form appears where the athlete you liked is selected in a select box, and you are asked to submit your email address to take part in the contest. You can also reach this form without liking one of the athletes, by clicking the link below all the athletes where it says "Dersom du ønsker å delta i konkurransen uten å klikke Liker på en av deltakerne over klikk her.".
I think the contest works exactly in the same way as the Quiz application that Offerpop offers ( http://offerpop.com/SiteProduct.psp?view=quiz ).
This worked great for awhile. But after some time the Like button suddenly changed so that it now needs confirmation. This is apparently very confusing for users, as the statistics show that people stopped participating in the contest when the confirm button appeared. Offerpop doesn't seem to have the same problem with their applications. Why?
I have put an alert box there explaining to people that they need to press the confirm button for it to work, but it seems that it then becomes too complicated for most people. Are there any workarounds for this?
Confirmation link appears when facebook notices something suspicius about where the like button is placed and how it is shown to the user. That means if you are hiding any part of the button, if it is completely hidden under a custom button or if your links get too many unlikes.
Even for 'legit' likes you may get the confirmation button but it will soon dissapear if everything is right. If not, contact Facebook.
Hope it helps.