how to capture different modes of refresh event in a web page other that F5 key press? - refresh

i am developing an MVC application in which i need to capture the different modes of web page refresh event.
F5 key press
view >> Refresh
Mouse Right Click >> Refresh
Refresh button click beside the address bar (for IE 7).
Ctrl + R
i need to set a variable to false when the page is refreshed by the above following ways. i tried it via window.onbeforeunload event, but it also gets triggered when the web page is closed wherein i need to do some other operation.
i was able to capture F5 key press via e.keyCode == 116 , but not able to capture others.
is there any common way to capture all such refreshes?

Related

Is there any button click event in Sitecore Tracker in version 9.1

I am looking for a personalization event that have to occur when a click event takes place.
No, there is not and you have to track your button click event on the server side in Sitecore.
Add an onclick() JavaScript event to your button to make the server call and pass details about the clicked button. Then register the click event as a Goal on the server side.
You can create a Goal and then trigger it as a pre-built Sitecore event using
the Sitecore.Analytics.Tracker.Current.CurrentPage.RegisterGoal() method to register your Goal against the current page as follows:
var goalId = "{Your Goal ID}"; // ID of your goal
var goalDefinition = Sitecore.Analytics.Tracker.MarketingDefinitions.Goals[goalId];
Sitecore.Analytics.Tracker.Current.CurrentPage.RegisterGoal(goalDefinition);
Read more about the pre-built events in Sitecore here.

I cannot retrieve data from PowerBi Integration after reopening PowerApps

I have launched a PowerApps from PowerBi and after saving I cannot see the same data in the PowerApps Editor and PowerBi. At the beginning I could see data in both. I refreshed PowerBi report. Any idea? Pictures below:
You will have to refresh your cache for powerapps.
I usually save my powerapps (Editor) close the browser and open it again. Once you do that you shall see your refreshed data.
You could also user ctrl+F5 to refresh cache.
If you are running the app in the browser then you need to clear out
the browser cache or simply by hard refreshing your browser by
pressing CTRL and F5 you can force PowerApp to reload data.
If you are running App in PowerApp from your mobile, IPad or Tablet
you need to open the PowerApp mobile application, Click on three lines
menu from the left top corner, click on 'clear cache' menu and click
on 'Confirm' button.
That will clear out the cache for the app.
Ref Article

Can't update a Web Dialog Box with iMacros

I’m trying to develop a macro to adjust invoices with iMacros. When I hit the Adjustment button. I get a Web Page Dialog box and am able to tab, enter and search the first few fields. When I get the results back, I only get 1 line; which I expect. So far so good.
The reesults appears in a "new" section of the Web Dialog Box. The issue I’m having is that I need to check a checkbox on thee only line in the results (2nd section) and haven’t been able to do it so far.
I can't record anything when the Web Dialog Box is open. If I try and record before hitting the Adjust button, iMacros records hitting the button. Then I get the Dialog Manager box; which I can use to tab, key and then Enter. Then I check the checkbox and select another value from a drop down. I stop recording and nothing has been recorded.
Any suggestions on what is going on? It's making me crazy.
I'm using iMacros 12

Simulate "Enter" key press using IAccessible in Google Chrome

I'm trying to create a QA automation for Google Chrome, in order to simulate URL navigation.
I got the correct object "Address and search bar" and also set the URL succesfully.
I can't figure out how to simulate the "Enter" key press after setting the URL.
I have tried accDoDefaultAction method but it is not supported by this object.
Any suggestions?
Thanks

CDialog with IWebBrowser component, backspace doesn't work

I have an MFC CDialog with an IWebBrowser2 in it. I get to a page that has a HTML text area, I can input text but backspace doesn't erase it.
When an ATL ActiveX control that subclasses an edit control is hosted in Internet Explorer, pressing the BACKSPACE key when focus is set to the Edit control causes Internet Explorer to navigate to the previous Web page. If there are no Web pages previous to the one with the control, the BACKSPACE key functions as normal.
When the user clicks on the subclassed control, the control is not UI Activated. This means that any accelerator keys are processed by the Internet Explorer frame. The control is never given a change to process the BACKSPACE accelerator key.
refer: http://support.microsoft.com/kb/190044