Showing a "Please wait..." window / Changing mouse cursor to hourglass

Can one of the following be done using javascript:
1) Show a "Please wait" window (when using synchronous SOAP requests) with the ability to "hide" it
2) Change the mouse cursor to hourglass
I went over the JS API and found nothing, any ideas?

Was the PDF opened within a web browser and was the PDF on a web server?

Similar Messages

  • I need a code that allows me to show a "Please Wait" Dialog while performing a lengthy operation

    Hi,
    I have very basic knowledge of C++ and I don't understand completely how this works. I have been trying to use pthreads in order to be able to show a "Please Wait" Dialog while performing a lengthy operation. The problem is that the dialog
    box is showing up with a blank box where the label should go. Could you please modify the following code so that the program does what I am looking for? (note that I have pasted the sections of the program I think are useful for someone to provide an answer).
    void *run_optimization( void *ptr );
    void *run_optimization( void *ptr )
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    Proc->Show(); // this is the "Please Wait" Dialog
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, NULL);
    pthread_join( thread1, NULL);
    Thank you!!
    EDIT:
    I have tried the following:
    void *run_optimization( void ^ptr );
    void *run_optimization( void ^ptr )
    Processing^ Proc = (Processing ^)ptr;
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    Proc->Close();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, (void *)Proc);
    Proc->Show(); // this is the "Please Wait" Dialog
    But I am getting the following error:
    error C2440: 'type cast' : cannot convert from 'RCM::Processing ^' to 'void *'

    Hi Shu!
    It runs in windows. I am using Visual Studio 2010 (and I can't use another version) which still doesn't have the threads integrated as I have read. So I am using POSIX threads for windows. 
    Regarding the other question, I don't really know what either of those (.net framework library or native API) mean. I am sorry but I am really new at this and really don't know much but I am doing my best because I have to get this done.
    I only know basic C++ but had to use C++/CLI windows forms because of a code I integrated in my program for running macros in excel and it was in C++/CLI.
    Thank you for your help!
    You cannot pass a managed handle to void* (as you have discovered).
    If you really want to use Posix threads, you probably need to make your Processing class a normal C++ class, not a C++/CLI ref class.
    But the .NET way to do this would be to use a BackgroundWorker:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx
    David Wilkinson | Visual C++ MVP

  • Changing Mouse Cursor with a Thread

    Hi all
    I am trying to change mouse cursor inside a thread for a graphical program so that the GUI does not freeze while new image is calculated and shown on the main frame. I have the below code. It works altough not the way it should. Forexample, when I press accelarator keys to show an image (ctrl+D) I see strange characeters on the frame and they disappear when the image is shown. Also I use scroll pane to show the images but when I use this thread it does not display scroll bars when the image does not fit into the viewing area (a panel). If I don't use this thread scroll bars apeear as they should. I could not find what is causing these strange behaviours. Also after image calculaed and shown on the screen, the thread should be terminated, right? But how? I could not find exact info on this. Any ideas on these? Thanks.
    pp = new PixelPanel();
    jsp.setViewportView(pp);
    pp.addMouseMotionListener(this);
    setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    thread1 = null;
    thread1 = new Thread("thread1")
    public synchronized void run()
    try
    pp.showGrayImage();
    finally
    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    thread1.start();

    I am trying to change mouse cursor inside a thread
    for a graphical program so that the GUI does not
    freeze while new image is calculated and shown on the
    main frame.What does the mouse cursor have to do with your lack of multithreading and you doing all the work in the AWT thread?
    I have the below code. It works altough
    not the way it should. Forexample, when I press
    accelarator keys to show an image (ctrl+D) I see
    strange characeters on the frame and they disappear
    when the image is shown.Probably because it can't repaint because you're hogging it with painting work.
    Also I use scroll pane to
    show the images but when I use this thread it does
    not display scroll bars when the image does not fit
    into the viewing area (a panel). If I don't use this
    thread scroll bars apeear as they should. I could not
    find what is causing these strange behaviours.Probably because it can't repaint because you're hogging it with painting work.
    Also
    after image calculaed and shown on the screen, the
    thread should be terminated, right? But how? I could
    not find exact info on this. Any ideas on these?A thread executes its run method and just stops when it's done.

  • Change mouse cursor in applet

    Is it possible to change mouse cursor, from the arrow into an icon, when the mouse cursor is over an applet in browser?

    spekulanten wrote:
    Is it possible to change mouse cursor, from the arrow into an icon, when the mouse cursor is over an applet in browser?Have you tried it? (I think it requires the applet to have focus)

  • HT1688 i update ios 7 but it got sim loked and even i enter pin it is showing unlocking please wait but it is not getting opened

    i update ios 7 but it got sim loked and even i enter pin it is showing unlocking please wait but it is not getting opened

    Turn your phone off and connect your cable to the computer, but not the device just yet. Start up iTunes. Now, hold down the home button on your phone and plug it in to the cable - don't let go of the button until iTunes tells you it's detected a phone in recovery mode. Now you can restore to factory settings.

  • Problem with i-Planet and change mouse cursor

    Hello, I know how change mouse cursor using Toolkit.getdefaultToolkit().createCustomCursor(Imagen,new Point(0,0),String) and setCursor. It works in a local applet but it doesn`t in my aplication. This aplication attach a i-Planet web server and displays the following error:
    java.lang.NoSuchMethodError: java/awt/Toolkit: method createCustomCursor(Ljava/awt/Image;Ljava/awt/Point;Ljava/lang/String;)Ljava/awt/Cursor; not found
    Where's the problem? Maybe an incorrect jdk version. I don�t think so because I use 1.3.1 version and this method works since 1.2 version.
    Thank you for all.

    hi,
    iplanet has its own jar files in \Netscape\Server4\bin\https which contains the same jar files as it is in jdk dir...so importing ur jar files thru the environment might create a similar problem

  • Focus troubles with "Please wait" window

    Hello,
    This is a question for experts...
    I have a complex focus management. So I wrote a FocusTraversalPolicy.
    During focus calculation, I may need to call a server. So I display a nice "please wait" JDialog.
    Pb is that focus stays at original field and does not go to the result of my calculation.
    Note that everything was OK up to JDK 1.4.1 and pb appears both in 1.4.2 and 1.5
    The problem seems to be in the following sequence :
    - current field is fld1, user hit <tab>
    - focus calculation is started, calling my class (call it MyPolicy)
    - MyPolicy runs calculation and open the blocking dialog
    - calculation stops, dialog is closed
    - MyPolicy return the correct field (fld2) to go to
    - fld2 gets the focus
    - ONLY HERE the original window retrieves the focus
    - and as the focus returns to fld1 :-(
    Do you have any suggestions about how to solve that ?
    Thanks for help.
    Francois

    Thanks for trying ;-)
    To answer your question, NO : the behaviour is correct when JDialog is not showed.
    But suppressing the JDialog is not a solution because sometimes I really HAVE TO show a JDialog (error message).
    I succeeded to make it run by clearing the focus owner when I do my calculation :
    java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();That keeps the focus getting back to fld1.
    But I am not absolutely sure why. Implementation trick ?
    I understand that something changed in focusing windows in 1.4.2...

  • Change mouse cursor appearence in script

    Is it possible to change the appearance of the mouse cursor in a script?
    A couple of the scripts I've created takes a little time to execute, so I'd like to change the cursor to the hourglass while waiting for the script to finish (and then change it back to normal at the end of the script).
    Are the other ways of letting the user know that a little patience is required?

    Hi Salte,
    The following commands show a progress display in the status bar:
    Call AutoLoopInit()
    Call Pause(10) 'Replace this line by your time-consuming task
    Call LoopDeInit()
    Call Pause(5) 'Just to see what happens when the script stops
    In the user dialog boxes you could use the method BeginWaitCursor to display the mouse cursor as an hourglass.
    Hope this helps,
    Ralf

  • Change mouse cursor to pointer

    Hello!
    I have an Image control that I use to perform an action on
    click.
    How can I make the mouse cursor change to pointer on
    mouseOver and back to default on mouseOut, please?
    Thank you!

    Assuming you're talking about the hand-pointer cursor, you
    need to set three properties (useHandCursor, mouseChildren and
    buttonMode), as the attached example shows.
    If you want to use a cursor besides the default pointer,
    hand-pointer or busy cursor, then you need to dig further into
    using the CursorManager. It's a little bit of extra work but it's
    not too bad;
    null
    see
    the LiveDocs entry on setting and removing cursors
    Hope that answers your question.
    - Chris

  • Programmatically change mouse cursor size

    LV 8.5 on Windows XP
    Is there a way to change the size of the mouse cursor (custom or otherwise) programmatically? I can load custom cursors using included vi's but can't find a way to change the size - the cursor vi's are locked so I don't know what is going on behind them.
    Thanks

    smercurio,
    I had found that thread but the API example is written in 5.1, unfortunately I have wiped this machine several times since running 7.1 and would rather not reinstall if I can avoid it. (As I understand it 7.X can open the 5.X and THEN I can open in 8.X)
    I will look around for a machine running 7 and go from there but any other suggestions would be appreciated.
    Thanks again!
    -Jolt

  • Want to show a "Please Wait" message while processing

    Hi,
    I'm developing an image-processing tutorial applet where the user selects an image and then sets some parameters before pressing an update button which will run a JPEG compression on the image and show the compressed image.
    The compression takes a few seconds, so I want the program to show an image saying "Please wait" in the position that the compressed image will appear while the compression is done.
    Here is the relevant code:
    public void paint (Graphics g) {
      if (updating) {
        updating = false;
        g.setColor(getBackground ());
        g.fillRect(575, 370, 250, 250); //clear the area where the image will appear
        g.setColor(Color.white);
        g.drawImage(updatingImg, 575, 370, 250, 250, this); //updatingImg just displays a "Please Wait" message
        doImage = true;
      if (doImage) {
        doImage = false;
        //perform the compression to get the new image and then show it
        newImg = imagetest.compressImage(origImg, quantizationMat);          
        g.setColor(getBackground ());
        g.fillRect(575, 370, 250, 250);
        g.setColor(Color.white);
        g.drawImage(newImg, 575, 370, 250, 250, this);
    public void actionPerformed(ActionEvent evt) {
      if (evt.getSource() == update){
        //perform some error checking
        if (errorFound == false){
          updating = true;
          repaint();
    }The problem is that the "Please wait" image never gets shown.. while the compression is carried out that part of the screen remains blank and then the new image is shown.
    Can anyone tell me how to fix this?
    Thanks.

    Never mind, I've figured it out.. needed to put the time consuming code in a new thread.

  • Change mouse cursor over graph cursor.

    Is there a way to change the mouse cursor as it moves over graph cursors when using trackmode TrackDragCursor? To indicate that you can position the cursor.

    You could accomplish this with the graph's CursorMouseMove event. For example, create a new project with the NI Measurement Studio AppWizard and follow these steps:
    Add a graph to the dialog. Right-click on the graph in the dialog editor, click "Class Wizard ...", click the Member Variables tab and add a member variable for the graph called m_graph. Click OK.
    Right-click on the graph in the dialog editor and click on "Events ...". Add an event handler for CursorMouseMove called OnCursorMouseMove and add an event handler for PlotAreaMouseMove called OnPlotAreaMouseMove. Click OK.
    Go to the header file for your dialog class and add this to the bottom of the class declaration:
    private:
    bool m_cursorChanged;
    HCURSOR m_defaultCursor;
    HCURSOR m_crossCursor;
    Go to the source file for your dialog class and add this to the end of the
    OnInitDialog method:
    m_graph.TrackMode = CNiGraph::TrackAllEvents;
    m_graph.Cursors.Add();
    m_cursorChanged = false;
    m_defaultCursor = ::LoadCursor(NULL, IDC_ARROW);
    m_crossCursor = ::LoadCursor(NULL, IDC_CROSS);
    Add this to your CursorMouseMove event hander:
    if (!m_cursorChanged)
    :etCursor(m_crossCursor);
    m_cursorChanged = false;
    Add this to your PlotAreaMouseMove event handler:
    if (m_cursorChanged)
    :etCursor(m_defaultCursor);
    m_cursorChanged = true;
    Run the application. You should see that the mouse cursor changes to a cross when you mouse over the cursor.
    Hope this helps.
    - Elton

  • [Solved] Change mouse cursor in Awesome.

    I can't change the mouse cursor in Awesome. I added "Xcursor.theme: aero-drop" in my .Xdefaults and "xrdb ~/.Xdefaults" in .xinitrc, but the cursor is still the default black one. I searched everywhere and I couldn't find how to change it. Can you give me a hand? Thanks.
    Last edited by Boris Bolgradov (2009-09-10 15:38:52)

    It looks like the package in aur is messed up, It isn't extracting the themes and these are dead links to the tar.gz's.
    navi>> sudo pacman -Ql xcursor-aero <<~
    xcursor-aero /usr/
    xcursor-aero /usr/share/
    xcursor-aero /usr/share/icons/
    xcursor-aero /usr/share/icons/aero-drop.tar.gz
    xcursor-aero /usr/share/icons/aero-extra-large-drop.tar.gz
    xcursor-aero /usr/share/icons/aero-extra-large.tar.gz
    xcursor-aero /usr/share/icons/aero-large-drop.tar.gz
    xcursor-aero /usr/share/icons/aero-large.tar.gz
    xcursor-aero /usr/share/icons/aero.tar.gz
    you could manually extract the aero-drop.tar.gz into your ~/.icons folder and it should work.

  • IDCS5 Win - changing mouse cursor

    At times I have code that processes a lot of data in ways that are not amenable to progress bars (for example, saving a single, large file to disk).  During those times I would like to change the cursor from its standard arrow to another standard such as an hourglass.  I see lots of general documentation on changing cursors that are specially made, but nothing that describes the process for changing from one standard cursor shape to another.  Nor is there any sample code/snippets that demonstrate the procedure, as far as I could find.  Does anyone have a suggestion where to look or what boss to use to change a mouse cursor from one icon to another?
    TIA!
    John

    I took a quick look at the header file and it all seems waay too simple.  Are you sure you're talking InDesign here? (grin).
    Thanks Dirk.  This is what I was looking for.
    R,
    John

  • Change Mouse Cursor Inside JTextPane

    Hello Everyone,
    I am trying to change the mouse cursor of a specific text of a JTextPane to:
    setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));This specific text is a hyperlink which its color is blue and it is underlined, so I want to have the mouse cursor changed to make clearer that you can click on it.
    I thought about trying to track the mouse position inside the JTextPane until it reachs the text position but I am not aware of any class that provides this feature. Does anyone know or have another ideia?
    Any help is appreciated,
    Thanks in advance
    Edited by: ZeroTodd on Aug 10, 2010 6:26 AM

    This specific text is a hyperlink which its color is blue and it is underlined, so I want to have the mouse cursor changed to make clearer that you can click on it.That's the default behavior (in the default Metal LaF, at least) when you setEditable(false). And IMO it doesn't make much sense to change the cursor or allow hyperlink navigation when the text pane is editable.
    db

Maybe you are looking for

  • Have thumbnails, iPhoto lost many original files!

    This is the second time iPhoto has killed me, this time loosing some very valuable photos!  I am using iPhoto 9.5 on Mavericks.  I recently discovered lost pictures in an event from 6 months ago.  It has the thumbnails so it looks fine on the surface

  • OBIEE presentation services not starting

    HI, i downloaded samplesales OBIEE 11.1.1.6 bp2 virtual box image but presentation services are not starting ..giving 5 errors as follows #SEARCH_CRITERIA #     START_TIME: 2012-10-16T23:06:55.391+03:00 #     END_TIME: 2012-10-16T23:11:55.391+03:00 #

  • Can I get some help with keyboard shortcuts?

    This is my first Mac and I'm totally converted. Excellent! But the transition from a Windows O/S has not been without its difficulties. One problem that eludes me is how do I (in either Pages or Word for Mac) go directly to the end of a line of text?

  • Prob in hierarchies

    hi gurus, iam unable to load data into heirarchies...can u plz help in loading the data to hierarchies and creation of hierarchies thnak u in advance

  • Interfacing with linux

    Hi, How can I use my java application as a front end to run the linux commands. For eg : if I click a button on my java application it should run the command "adduser john" or "passwd john". Also how can I intercept the result of these commands. I wo