Hi,
Have a webpage that 5% of the time the text and text box overlaps and the user needs to hit F5, which refreshes the page and rectifies the problem. Has anyone come across this problem and a possible fix?
fix your CSS, usually that's the issue there, also the CSS may not be landing properly especially if it's java driven when not all the data is accounted for before formatting, make sure any scripts that format the page are fired long after it's completely loaded.
personally last line before </body> i use a JS settimeout with the formatting function in it to ensure one it's at the very end of the page, and then gives the client more itme to do it's own formatting before force feeding it my desired layout
DreX
aKa - Robert if all else fails, light it on fire and do the happy dance! " I always think outside the 'box', because I'm never inside the 'loop' " - DreX 2005
Hi DreXor,
Firstly thanks for your help, sorry getting back been busy.
Can you place the line of code you want me to insert before </body> as I am unsure of your instructions and it's not Java driven I use ASP.net (VB).
Thanks,
T111!
remember that client side vbs isn't universally friendly i use the aforementioned JS environment at the end just to force formatting.
if the page you're referring to is something marginlly large or specifically takes like a second or two to load especially with formatting, you may want to look into using the response buffer and flush after closing out all instances of things like tables and blocks of text to adequately allow the browser to format it as it gets it instead of trying to juggle all the page data at the end of load.
more than likely i would guess your culprit is an image, the text formatting gets preset into place and the image finally loads and shifts everything, but after a refresh the image is already cached, so no "bump to fit" as in the previous load.
perhaps use some java preloading, or specify the actual image dimensions in the image tags
DreX
aKa - Robert if all else fails, light it on fire and do the happy dance! " I always think outside the 'box', because I'm never in the 'loop' " - DreX 2005
This was fixed by placing the text labels, text boxes, memo fields etc all within the same table so when the page loads only 1 table loads thus ensuring textboxes don't overlap the memo boxes.
Thanks anyway for you help DreXor!
Sorry about the delay in the response but I had to give it time to be tested!
DreX
aKa - Robert if all else fails, light it on fire and do the happy dance! " I always think outside the 'box', because I'm never in the 'loop' " - DreX 2005
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.