jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window change mouse cursor in modal window

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • change mouse cursor in modal window #43597

    kevinrusch
    Participant

    Hi. I’ve got a jqxWindow that’s modal. (not that that seems to make any difference.) There is an <image> tag in the window that takes a while to download its image. I’d like to change the mouse cursor to something different while it’s loading.

    So, the easy thing seems to be
    $(“body”).css(‘cursor’,’progress’);

    and changing it back with this:
    var image = $(‘#RentImageBox’);
    image.attr(‘src’,SlowURL);
    image.load(function(){
    $(“body”).css(‘cursor’,’default’);
    }

    However, when I do that, the cursor is only changed when it’s OUTSIDE of the JqxWindow <div>. If the mouse is inside the <div>, nothing changes.

    I tried $(“#popupWindow”).css(‘cursor’,’progress’), but that didn’t seem to do anything.

    Any ideas? Google seems to have never encountered this before.

    Thanks.

    change mouse cursor in modal window #44571

    Dimitar
    Participant

    Hello kevinrusch,

    Here is the solution:

    $("#popupWindow div").css("cursor", "progress");

    provided that popupWindow is the window’s id.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.