Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

why there is overflow in google chrome browser (text comes above each other)?!

Posted on 2010-11-21
10
Medium Priority
?
387 Views
Last Modified: 2012-05-10
hi,

I am developing my company website, responsible to some parts, I test the website using ie8, firefox, opera, it runs ok, but there is problem in google chrome browser!

here is the demo website:
www.leamratech,com/test_pages

then please go to products, then scroll down, then click second product, face identification system , scroll to the end of the page, check end of page in both firefox and google chrome!!

so how to solve the overflow problem??
0
Comment
Question by:njgroup
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 34183788
It looks the same messed up in both Firefox 3.6.12 and Chrome 7.0 from here.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 34184092
I got past the comma error, but when the page loads, the top flash presentation grabbed 100% of CPU time and I never did get to the products, which kept jumping all over the screen as the various flash components were trying to load.

This site is a classic example of how an overbearing flash presentation makes the rest of an otherwise good page presentation unusable.  Sorry, I Xed out of it before the flash nonsense even finished.  If you want people to ENJOY this site and stay, GET RID of the flash !!
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

Author Comment

by:njgroup
ID: 34185668
but I don't have any flash in website load!

I have two small sized flash object in "face identification" product, which is in products --> face identification, and all others are non-flashes, they are javascript, css, jquery!

is that flashes making the trouble?
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 34185732
No, you have so much stuff going on that it is out or order the first time it loads.  After refreshing a couple of times on both Firefox and Chrome, it finally displays correctly because almost everything is in the browser cache.  Looks like a timing problem to me.
0
 

Author Comment

by:njgroup
ID: 34185802
I think, I found the problem,

As ajax loading, after user click the product, I am getting the html content (as string) from server, and I set it to main div as inner html, then I am getting the height of the div that contain loaded html, and using jquery function animate to animate the  main div height to html div height,

that happens in this code snippet:

 
var content_html = msg.d;
                                $("#products_loading").hide('explode', 500, function() {
                                    change_products_main_contents(content_html, productName);
                                    $("#products_main_contents").show('drop', 500, function() {
                                        var inner_content_product = $("#inner_content_product").height();
                                        alert(inner_content_product);
                                        $("#products_main_contents").height(inner_content_product);
                                        alert($("#products_main_contents").height());
                                        $("#products_contents").animate({ height: inner_content_product + "px" }, 1000, function() { alert($("#products_contents").height()); });

                                    });

    function change_products_main_contents(content_html, productName) {
        $("#products_main_contents").html(content_html);
        

        switch (productName) {
            case "face":
                $("#product_lable").html("LEAMRA Face Identification - LFIS");
                break;
        }
    }

Open in new window


now, the problem is that the headers (such as "What is LFIS" and others...) for each paragraph are taking some time to be loaded, and the jquery height function getting the height before they are loaded!
so the height is not correct as its increased after loading of them.


I test it, before the are loading, I got height 2172px for inner div html, but after the loading of images, I got 2282px.

by the way, the problem happens in all browsers, but it looks google chrome slower in loading pictures
0
 

Author Comment

by:njgroup
ID: 34185881
I solve that by replacing each image with div with width and height, and set the background of div to this image,

is there any solution better?
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 34185895
I'm glad you figured it out.  I wouldn't be able to tell you anything more.  As long as it works, it's good to me.
0
 

Author Comment

by:njgroup
ID: 34185910
DaveBaldwin,

yes!  I think once its is in cache, then, the html images will be loaded and taken height before the jquery retreive the height, so that means,

in first time loading website, I got:

inner div html height (before loading the images): 2172
main div (which will be animated to same inner div html height): 2172
after loading inner div html heigh: 2282

after many loading of page so it has images in cache:
inner div html height: 2282
main div (which will be animated to same inner div html height): 2282

0
 

Author Comment

by:njgroup
ID: 34185915
scrathcyboy, please let me know how the site is stuck and where or because which element?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question