About Me

I am Head of Development at a small company creating software for the professional sports industry.  I’m interested in a range of development technologies, but primarily .NET and Javascript.

Check out my answers on StackOverflow to find out more about what keeps me busy…


profile for Steve Greatrex at Stack Overflow, Q&A for professional and enthusiast programmers

Advertisements

6 thoughts on “About Me

  1. Hey Steve.
    I came across your loading-placeholder KO binding handler some time ago and been using it ever since. I’m wrapping up a Pluralsight course and have used it in the site there as well and just wanted to give you a heads up and that I’ll be mentioning you in the course so don’t think I’m taking credit for it :). You did a nice job with it and deserve all the Kudos. Keep a look-out for my course, Developing Multi-Client End-to-End Sevice Oriented Applications – online at Pluralsight on Sep 1.

  2. James says:

    Hello Steve,
    I am working on a Knockout Js project. Where I have a list grid .
    On that list grid there is edit button.And I do some ajax stuff on that edit button with ko.plus .
    So I have downloaded your zip but when I click on any edit button of that list grid then all the edit button has the loading image showing.
    I want to show the loading icon for that particular edit button .
    Here it is the html and script snippet below :

    SUBMIT

    my script:

    self.slowAction = ko.command(function(data) {

    var promise = $.Deferred();

    bootbox.confirm(“Are you sure want to submit the timesheet?”, function(result) {
    if(result == true)
    {

    $.ajax({
    url: “/timesheet?timesheetid=”+data[‘id’],
    type: “GET”,
    contentType: “application/json”,
    accept: “application/json”,
    dataType: “json”,
    success: function(result)
    {

    self.timesheet(result);
    }
    });
    }
    });

    return promise.promise();
    }).done(function(result) {

    });

    ** I hope you can help me with this.

    Thank you

    • Hi James,

      The problem here is that you have a single command that is shared between all buttons which therefore means that they are all loading at the point when you click it. The only way to work around this is to create a separate command for each instance which – in my experience- is rarely practical.

      I would recommend not using the command binding and instead simple use ‘click’. This will remove the loader display.

      Then you are free to use any other binding to handle the display of a single button loader.

  3. Olli says:

    Hello,

    We would be interested in using a part of the ko.plus library in a commercial web application. Specifically the sortable extender and ko.sortBy binding, with some modifications to fit our internar framework.

    However, I couldn’t find any license information for the library. Unfortunately, using and distributing a piece of code is prohibited without an explicit license in many countries.

    Even Github says that code without license can not be used freely by others:
    https://help.github.com/articles/open-source-licensing/
    “Generally speaking, the absence of a license means that the default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend.”

    Would it be Ok to license the code under license like MIT and to use and modify it to fit our needs freely.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s