Results 1 to 9 of 9

Thread: CSS lost upon refresh

  1. #1
    Join Date
    Jan 2008

    CSS lost upon refresh

    Hi, I hope someone can help us -- we have an ecommerce website that depends on customers having a good user experience, but we have been having this problem that our developer for some reason, cannot solve for some reason.

    Basically, if you refresh the page on the site, all of the css is lost, it won't pick it up. Usually, if you refresh again, it will be correct again. In IE8, even refreshing won't help, the css will not come back in.

    Has anyone heard of anything like this?? The site is in ASP.NET and prob Ajax --

    the worst case scenario is when the css menus just list all of the items in the dropdowns - at the top of the page. It looks HORRIBLE. This only happens sometimes, and other times it is ok.

    I would really appreciate it if someone out there had some clue as to what is going on and why the css is not picked up every time. I am not sure if it is because it is calling the css securely, ie https... somebody in our company with a fancy title and making a ton of money no doubt originally screwed up the security certificates and then we had to change every image etc. to https. Not sure at all if this has anything to do with this annoying refresh/css issue.
    Thanks in advance for any help you can give me. Thanks!

  2. #2
    Join Date
    May 2010
    please provide alink to the page

  3. #3
    Join Date
    Jan 2008

    It doesn't do it all the time, so hopefully if you look and refresh, you can see what it is doing. Thanks --

  4. #4
    Join Date
    Aug 2006
    I don't think I've ever seen a web page with 881 errors on it before...

    I would start with moving your DOCTYPE to being the first link of the page, and address the issue of missing character encoding and xmlns attribute. Maybe that'll do the trick, but I'd have a discussion with your developer about the 881 errors in the code....


  5. #5
    Join Date
    Jan 2008
    What character encoding is missing, etc. - is it something specific?

  6. #6
    Join Date
    Aug 2006
    Quote Originally Posted by keltoid View Post
    What character encoding is missing, etc. - is it something specific?
    Yes, for example inside your <head> section you should have something like:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  7. #7
    Join Date
    Jan 2008
    Thanks --
    what we have is
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    it is at the top now, but not in the head section per se, because there is master page info at the top like

    <%@ Master Language="VB" CodeFile="pc_master.master.vb" Inherits="pc_master" %>
    <%@ Register Src="~/common/wsp.ascx" TagName="wsp" TagPrefix="uc1" %>

    and more. I have moved the doc type to the top and it is up there now. The errors are things like 'no such attribute 'cellpadding' etc... is this some confusion with having an xhtml1 in doc type and having html??

    I don't understand why having attributes like cellpadding is a problem and says there are issues with the ul and li ....

    thanks for your help

  8. #8
    Join Date
    Aug 2006
    I think perhaps there's some confusion about the doctype. Fundamentally you can think of the doctype statement as describing the *language* you're writing the rest of the page in. Let's say you were going to write a Word document, and had two options, to write in French or in English. Then you had a header (doctype) that stated whether the following text was going to be in French or in English. You wouldn't be asking "should my doctype say this is French or should it say it is English?" - you would know because that's the language you've written in. So to get back to the web page, it looks like you're writing partially in HTML Transitional, and partly in XHTML (by randomly adding closing slashes at the end of some lines), and you're now wondering what language to tell the parser you've written in. The answer is "none of the above" (or maybe "Franglish" ).

    You picked XHTML Transitional, so that's the language the validator and web browsers are trying to parse.

    Attributes like 'cellPadding' are illegal because all attributes in XHTML must be lowercase and you've got an uppercase "P" in there. In HTML you could mix & match case as you're doing.

    Hope that helps,

  9. #9
    Join Date
    Jan 2008
    Dave, thanks -- Yeah, I figure the same thing you figure - lol -- however, I have deferred to the developers who built the core of the site in asp.net. So maybe if I mention it to them, they will know which doctype they should use... its interesting that when I designed the new site it was primarily with css, yet one of their people reworked it all over in html, or a lot more of it. I was surprised, but figured it didn't matter. It really hasn't, but now we have this problem...

    Thanks - I guess I can at least go through and take out all the capital P's and such. Not sure if we'll ever get rid of all of those errors.

    Thanks again.

    edit: actually, can't make them with no capitals. It doesn't render the cell padding and spacing if I make them lower case....
    Last edited by keltoid; 06-28-2010 at 02:03 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10112 seconds
  • Memory Usage 2,930KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (9)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates