Skip to main content

All Questions

Tagged with
1 vote
1 answer
42 views

How to access the global-level object from a callback inside the same global-level object's attribute?

var calendar = { activeDates: null, dateClicked: function () { this.activeDates = document.querySelectorAll( '[data-calendar-status="active"]' ) for (var i = 0; i < this....
Jiang Ng's user avatar
1 vote
1 answer
575 views

Trigger a C++ action from a C# event

sorry if the question is too general, but I would like to know what is the best solution. I have two projects. The main one is in C++ and needs to receive some information from a software component. ...
Mario Sanz Gómez's user avatar
0 votes
1 answer
36 views

JavaScript : When exactly the function assigned to the onload event executes?

function loadScript(src, callback) { let script = document.createElement('script'); script.src = src; script.onload = () => callback(script); document.head.append(script); } loadScript('/...
AjithKumar's user avatar
0 votes
2 answers
3k views

Best practice in sending message in python telegram bot from a 3d party listener

I have a custom code that does its routine and I want to send a message to myself in Telegram if something goes wrong. In my case I use python-telegram-bot library along with apscheduler and its ...
Good Pen's user avatar
1 vote
1 answer
827 views

Pixi.js: How to Detect end of movie (callback for ended event?)

I have a project where I need to switch between full HD videos in a browser. I realized that my macbooks fans are starting to blow after a while. My assumption was that the video load is a bit too ...
Merc's user avatar
  • 4,482
1 vote
3 answers
3k views

Registering a function to be called on an event in Python

I want to write a function that will be called after an event occurred but only if the user has registered it. e.g. #Defination def fnBookUber(objUser): print 'Inside fbBookUber()' #calling ...
Iqra.'s user avatar
  • 733
0 votes
1 answer
473 views

Full Calendar callback function on time slots selections

How it is possible to get the times that selected? In my scenario, I have a calendar that is selectable and the user can select some cells of calendar, then if the selected time becomes less than 3 ...
Nasser Ali Karimi's user avatar
0 votes
1 answer
144 views

window scroll event – need prevent bubbling or not?

Which of these examples is more correct? window.addEventListener('scroll', someFunc, false); window.addEventListener('scroll', someFunc); I know what is bubbling, it moves up from element to window....
Michael Rafailyk's user avatar
0 votes
2 answers
184 views

How to close and reopen a form from another form?

I have a list box with a list of employees and when the event of selected index changed is called a new form opens with some employee info such as email, name, location. But when another user is ...
SauerweinB's user avatar
1 vote
1 answer
997 views

EventCallback seems to be changing a parameter value on the razor page

I have a view in my project with 2 nested views/components (the main view contains a tree view and the tree view contains individual 'node' views for each object in the tree). I'm using event ...
Broad3857's user avatar
  • 443
7 votes
2 answers
10k views

Unreal Engine 4: C++ Delegate not being called

I've been working on converting some blueprint logic over to C++. One of the things I have is a button. The button can be pressed in VR and has a delegate that is called to notify any registered ...
Katianie's user avatar
  • 609
0 votes
1 answer
313 views

How can I trigger a custom event and use it's callback return value NOW?

Normally I can do something similar (I could use array to manage multiple subscriptions) in vanilla js. window.doCensorship = function($value, $proposal){return true}; function canPublish(text){ ...
beppe9000's user avatar
  • 1,106
0 votes
0 answers
354 views

How to emit a PyQt-signal out of a cffi-callback

I am a bit stuck right now. This is more of a "how to approach this problem the right way" kind of question since I dont even know what exactly to type into google. I got a scientific camera from ...
user3183627's user avatar
1 vote
2 answers
117 views

Converting different classes to void* and back safely in C++

I have a map of callbacks that pass information and execute various functions throughout code, very much like events in C# but in C++. The map is defined as std::map<std::string, std::function&...
Mich's user avatar
  • 3,542
0 votes
1 answer
1k views

Send Event from Native to Ionic

I'm using an Ionic/Cordova plugin to watch a data set and want to call a function in my typescript class when the native api triggers an event. What I have so far is: (Typescript file) this.platform....
swforlife's user avatar
  • 558

15 30 50 per page
1 2
3
4 5
18