Strange Firefox and IE work

Discussion in 'Javascript' started by dskrizhewsky@gmail.com, Dec 26, 2006.

  1. Guest

    Hello,

    I have the following algorithm

    1. Show message DIV

    2. Long Loop Function

    3. Hide message DIV


    Opera shows DIV well. Firefox and IE don't show the DIV.
    If to rewrite the algorithm like this Firefox and IE will show DIV

    1. setTimeout(Long Loop Function,500)
    2. Show message DIV

    I also tried to debug the first algorithm in Firebug, and in step by
    step mode I see that Firefox shows the DIVs.

    Is it standart behaviour? What prevents browsers from showing the DIV?
     
    , Dec 26, 2006
    #1
    1. Advertisements

  2. Lee

    Lee Guest

    said:
    >
    >Hello,
    >
    >I have the following algorithm
    >
    >1. Show message DIV
    >
    >2. Long Loop Function
    >
    >3. Hide message DIV
    >
    >
    >Opera shows DIV well. Firefox and IE don't show the DIV.
    >If to rewrite the algorithm like this Firefox and IE will show DIV
    >
    >1. setTimeout(Long Loop Function,500)
    >2. Show message DIV
    >
    >I also tried to debug the first algorithm in Firebug, and in step by
    >step mode I see that Firefox shows the DIVs.
    >
    >Is it standart behaviour? What prevents browsers from showing the DIV?


    Yes, that's expected from graphical user interfaces in general.
    While script or other code is running, the GUI doesn't get any
    CPU cycles to update the display.


    --
     
    Lee, Dec 26, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Freeman
    Replies:
    8
    Views:
    8,264
    tcena9
    Feb 16, 2011
  2. Alan Searle
    Replies:
    2
    Views:
    9,600
    Alan Searle
    Nov 20, 2005
  3. Replies:
    9
    Views:
    5,204
    Animesh K
    Jul 26, 2007
  4. David Freeman
    Replies:
    5
    Views:
    378
    Nay Myo Aung
    Dec 27, 2004
  5. Udo Huebner
    Replies:
    22
    Views:
    1,213
    Udo Huebner
    Feb 2, 2012
  6. Replies:
    2
    Views:
    133
  7. VK
    Replies:
    9
    Views:
    320
  8. Larax
    Replies:
    1
    Views:
    174
    Randy Webb
    Aug 22, 2006
Loading...