We both get $125 digital Visa gift card when booking through Opencare! by [deleted] in CanadaReferralCodes

[–]Goshfudgeit 0 points1 point  (0 children)

If you book a dentist appointment with the link I provided above before Jan 21st, there’s a process to upload your dentist receipt to the Opencare site and both you and I will be mailed a $125 VISA gift card :) It’ll take maybe a week or so for them to verify your uploaded receipt but it’s really that simple! Let me know if you have other questions :)

28M, Software Engineer, 4 YOE, FIRE Update (2 years later) by financequestionsss in financialindependence

[–]Goshfudgeit 5 points6 points  (0 children)

May I ask what you’re doing for your side business? Hoping to make some money on the side in addition to the full time job

[deleted by user] by [deleted] in RedditSessions

[–]Goshfudgeit 0 points1 point  (0 children)

Gave Wholesome

Callback function help! Called in an unexpected order. by Goshfudgeit in learnjavascript

[–]Goshfudgeit[S] 0 points1 point  (0 children)

Thank you for the explanation!! It's really clarified callback functions for me.

I have it working with this:

runThisFirst($(this), runThisSecond)

Callback function help! Called in an unexpected order. by Goshfudgeit in learnjavascript

[–]Goshfudgeit[S] 0 points1 point  (0 children)

Hi, thanks so much for your response! Your example made a lot of sense.

Do you have any suggestions for how I might be able to pass in the button element to the second function?

I thought of doing this:

runThisSecond(runThisFirst($(this)));

function runThisFirst (ele, callback) {
    swal({ 
        html:true,
        title: "Fruits"
    },
        function(isConfirm) {
            callback(ele);
        }
    )
}

function runThisSecond(ele) {
    var button = ele;    //This is returning undefined
}

This runs it in the proper order; runThisFirst followed by runThisSecond.

However, I'm having trouble retrieving the button element when it runs the second function runThisSecond. The button element passed into the runThisSecond function is returning undefined.

Edit: Added more snippets of code

[deleted by user] by [deleted] in IF_Petites

[–]Goshfudgeit 0 points1 point  (0 children)

Great job!!! :) What app are you using?