Questions tagged [globalevent]

15 questions
4
votes
4 answers

How to close element when click is made everywhere except on opened element?

I'm trying to make panel that opens when it's clicked on the button. I have the button, I have the panel. With click() event it does open. When that button is pressed again, it does close. $('#button').click(function() { …
daGrevis
  • 21,014
  • 37
  • 100
  • 139
1
vote
1 answer

How to set ajax global event to false when using Bloodhound

i am using typeahead for autocomplete.The following code is working fine. var employees = new Bloodhound({ datumTokenizer: function (d) { return Bloodhound.tokenizers.whitespace(d.name); }, queryTokenizer: Bloodhound.tokenizers.whitespace, …
1
vote
2 answers

How to create a 'global event' in actionscript / flex?

What is the best way to create a 'global event' in flex/actionscript - preferably using a static class? I want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
1
vote
1 answer

cocoa global watch for modifier key press

Using addGlobalMonitorForEventsMatchingMask, I can check for keys being pressed. And when an event is fired, I can check the modifier flags to see if any modifiers were used in conjunction. But I need to know if a modifier is pressed without another…
Adam Meyer
  • 1,505
  • 1
  • 19
  • 28
0
votes
1 answer

how to test global event bus which is inside mounted method in jest

export default class Test extends Vue { mounted() { this.getData(); eventBus.$on("get", (id: string) => { this.displayData(id); }); } getData(){ return "hello" } displayData(id){ } I have written spec for the Test…
Sapthika
  • 31
  • 1
  • 4
0
votes
1 answer

How can I trigger global onError handler via native Promise when runtime error occurs?

With Q.js I can trigger window.onerror using .done(): window.onerror = function() { console.log('error from handler'); } var q = Q('initValue').then(function (data) { throw new Error("Can't do something and use promise.catch…
ArtemM
  • 145
  • 2
  • 4
  • 13
0
votes
3 answers

ASPxPopupControl appears on every page load

I use PoupControl for Base Popups on asp.net web form project's master page. My problem is; popup appears every page render after showing the popup once. When clicked the close or ok button on popup, popup is hide. It shouldn' t appear after every…
ebruszl
  • 469
  • 4
  • 11
  • 27
0
votes
1 answer

RoutedCommand for multiple Windows

been looking through Google results for quite some hours now and all i was finding were examples of how to use RoutedCommand to catch MouseClicks and Keyboard Shortcuts to do the same actions. I've read some sources about RoutedCommand like MSDN and…
Fruckley
  • 3
  • 3
0
votes
3 answers

Event-based interaction between two custom classes

I have such problem: I have 2 custom components, which have their own nesting hierarchy ... One is container for another. I have to "familiarize them" with each other. The way I'm trying to achieve that is using global events (one side is firing and…
Antenka
  • 1,519
  • 2
  • 19
  • 29
0
votes
1 answer

Listen to EditText OnFocusChangeListener Globally

I am interested in building a system application for Android which can globally listen to all EditText on focus change event, somehow I am gonna provide certain service when the user gain focus on any EditText. I have successfully downloaded…
Sammy
  • 155
  • 1
  • 10
0
votes
1 answer

Ext JS handling events in a single place

So I have and Ext js application and in my application launch function at the bottom, after I draw components there is the next line of code: Ext.ComponentManager.all.on('render', function(cmp) { console.log(cmp); }); I expect that all components…
Dimitri
  • 2,798
  • 7
  • 39
  • 59
0
votes
1 answer

Listening for global keyboard events while computer is locked

I'm experimenting with keyboard events and what you can do with them and I've found alot of tutorials and open source libraries to listen for keyboard events in other processes. I came up with the idea to create a simple 'hack' to lock the computer…
Linus
  • 1,516
  • 17
  • 35
0
votes
1 answer

Kentico Global Events (ObjectEvents) Causes Loop

I'm using ObjectEvents to give ActivityPoints to current user based on fields user filled. Now for example if user register and fill FirstName I will give 10 points to user. The problem is that I'm handling ObjectEvents.Update.After and inside it…
Reza Fard
  • 21
  • 4
-1
votes
1 answer

Monitor for all validation events

It's quite easy to check if certain container or its children have validation errors. This can be used to disable Save button. I can use timer public SomeUserControl() { InitializeComponent(); var timer = new DispatcherTimer { …
Sinatr
  • 20,892
  • 15
  • 90
  • 319
-1
votes
1 answer

Spark rdd write in global list

How to write in global list with rdd? Li = [] Fn(list): If list.value == 4: Li.append(1) rdd.mapValues(lambda x:fn(x)) When I try to print Li the result is: [] What I'm trying to do is to transform another global liste Li1…