Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Progress Indicator problem (FF 3.5, IE 7)

Hi All,

We use
PlatformUI.getWorkbench().showMessage(label)/hideMessageArea()
to show progress status (saving, etc.) to a user. It works fine in FF 3.0, but we have the problem in IE and FF 3.5.

The message is not always displayed, although the message content is changed.
Was there any issues? (with the fade animation or with sync XHR).

Thanks in advance

0 votes



2 answers

Permanent link
I perform few tests.
The problem appears if I make a sync XHR after the showMessage method invocation.

If I remove the hideMessageArea method invocation from the XHR callback, the status message will be rendered after the request processing.

I didn't meet such behavior in FF 3.0.

0 votes


Permanent link
Because javascript is single-threaded, the browser can't process any other javascript callbacks or events until you return control to the browser. In order to animate something you need to use setTimeout or setInterval, which can't be processed if you're blocked on a synchronous call. Doing an async call will avoid this problem.

Curt

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 30 '09, 4:43 p.m.

Question was seen: 4,746 times

Last updated: Sep 30 '09, 4:43 p.m.

Confirmation Cancel Confirm