Skip to main content
Participant
October 26, 2017
Question

loading multiple cfdiv in a sequential order

  • October 26, 2017
  • 1 reply
  • 798 views

Is there any way to load multiple cfdiv in a sequential order. For example in my page top half is coming from some cfdiv and bottom half is coming from another cfdiv. The problem is the second div loads first and then the first cfdiv is loaded. This causes the page to jerk like collapse and expand.

One of the solution I have is javascript delay. But is there any other way???

Your time & help is really appreciated.

Sathya

    This topic has been closed for replies.

    1 reply

    Inspiring
    October 26, 2017

    It most likely due to the length of time it takes the data in the cfdiv to be generated. The second one must be quicker.


    There is no real way of getting around this. Javascript can help, but you will need to move away from cfdiv. Coldfusion generated UI elements are generally discouraged because of their issues.

    I would recommend migrating it to standard html divs and then use javascript / jquery to control the div if the same issue still occurs. Its less likely to happen if you dont use cfdiv though due to the way the DOM loads.