# Checking div generation technique

**URL:** <https://www.ruby-forum.com/t/checking-div-generation-technique/61030>\
**Category:** Rails\
**Created:** [May 19, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/checking-div-generation-technique/61030 "2006-05-19T13:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bing](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@Bing](https://www.ruby-forum.com/u/Bing)\
**Post date:** [May 19, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/checking-div-generation-technique/61030/1 "2006-05-19T13:12:59Z")

</div>

Hi guys,

just wanted to ask, on the onset of our page, we generate several div’s.  
What we noticed on an intermittent connection is that several divs don’t  
get to generate all the div’s sometimes so we had to reload our page.

Would you have any technique on how we can do this?

thanks

bing

---

<div class="post-metadata">

**Author:** ![Bing](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@Bing](https://www.ruby-forum.com/u/Bing)\
**Post date:** [May 19, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/checking-div-generation-technique/61030/2 "2006-05-19T14:47:25Z")

</div>

“…that several divs don’t get to generate all the div’s sometimes…”

huh?

can you be a little more specific?

---

<div class="post-metadata">

**Author:** ![Bing](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@Bing](https://www.ruby-forum.com/u/Bing)\
**Post date:** [May 20, 2006, 8:02am UTC](https://www.ruby-forum.com/t/checking-div-generation-technique/61030/3 "2006-05-20T08:02:53Z")

</div>

Chris H. wrote:

> “…that several divs don’t get to generate all the div’s sometimes…”
> 
> huh?
> 
> can you be a little more specific?

Oops, I’m sorry. I was saying that when we load a page after a login, I  
need to load around 8 divs. what happens is that when the page gets  
loaded and we check the source we see that not all of the divs are  
created. Sometimes it’s only 6 out of the 8 divs sometimes 5 some times  
all 8 load properly. Again, the reason why I think this is the case is  
bec of intermittent internet connection.

So what I do is that I need to refresh my page again just to ensure that  
all 8 appear.

Is there a way to check that all divs are generated upon page load and  
if they don’t load, I want it to automatically refresh. This just  
happens once. When the page is already completely loaded, I don’t need  
this function anymore.

thanks,

Bing
