Results 1 to 6 of 6

Thread: Site compatibility with Chrome

  1. #1
    Join Date
    Mar 2003

    Unhappy Site compatibility with Chrome

    Ok, let me begin by saying "I have not done this stuff in nearly 10 years!" A lot (ok, everything) has changed, and even when I made this site years ago, my coding skills were very minimal and sloppy, and shortly after making it, I quit.

    Nevertheless, the site continued to work, which was all my father-in-law needed.

    I noticed yesterday the graphics are misaligned in Chrome, but it still looks fine in IE and Firefox.

    Does anyone know, or can anyone take a peek at the code (yeah, it's a mess and full of non-compliant W3C errors) so I can get on with my life?


    And you thought Chewie was hairy...

  2. #2
    Join Date
    Mar 2012
    I've had a brief look and the most obvious point is that you have no DOCTYPE declaration before the opening <html> tag. E.g. To declare the code as HTML5 compliant, you should put <!DOCTYPE HTML> at the beginning of the file. Without such a declaration, the browsers default to "quirks mode". In quirks mode you will not achieve cross-browser compatibility.

    As to the rest of the code, I'd suggest that it is unrealistic to expect anyone to debug the code for free. And, whilst a competent coder could be employed to do that, it might well be more cost-effective to have a new site written from scratch.
    Last edited by jedaisoul; 02-25-2014 at 04:32 PM.

  3. #3
    Join Date
    Oct 2013
    I did the same as jedaisoul -- had a brief look in both Chrome and FF. First thought is that your issue has something to do with the image rotating scripts you have. They work in FF but not in Chrome. It may have something to do with not having the type="text/javascript" attribute in your script tags or it may be the stray // --> at the end of each.

    On the other hand and although you didn't ask, for a site built in FrontPage and for the basic design being 9+ years old, it's aged very gracefully and still looks good. JMO and FWIW...

  4. #4
    Join Date
    Mar 2003
    @jedaisoul - I guess I was hoping for an easy fix - a line of code that needed to be changed or old/outdated sytax or something. I will add the doctype - I tinkered with it last night, but it fouled the graphics on all the browsers. At that point I knew I was over my head - I didn't keep up with changes in code, which is why I quit making websites years ago.

    @Kevin2 - Thanks for the comments. I'll see about adding/fixing those bits.

    ALSO, is there a simple way to edit php files? Seems like years ago (after the design with Frontpage) I did the rest of the editing with Notepad (Frontpage didn't support php), but when I pulled up the index.php in notepad last night, it was an unformatted mess. Is there a better FREE prog to view the script?

    Thanks again
    And you thought Chewie was hairy...

  5. #5
    Join Date
    Mar 2012
    Just a couple of ideas:

    1. Between </script> and </head> insert:

    <style>* { margin:0; padding:0; border:0 }</style>

    2. Amend <h1><script> TO <h1><!-- script> also, arguably, you should comment out the matching closing </script> as <!-- /script -->

    No guarantees, and I've no idea what else the changes may affect, but they seem to sort out the header bar in Chrome. Some of the images have also disappeared in Chrome but that does not appear to be related. Not sure why that has happened...

  6. #6
    Join Date
    Feb 2014
    Like everyone else, your webpage loaded properly in IE and FF but not in Chrome. I did notice that you were using out-dated syntax and methods, which may account for the unusual effects. I haven't gone through with a fine-tooth comb but at first glance I noticed a few things.

    1)No DOCTYPE, so the browser won't load your page using HTML5 specification.
    2) When you're opening your <script> tags, you're using <script Language = "JavaScript">, however, the correct modern syntax is <script type = "text/javascript">.
    3) I cant imagine it causing the site to behave awkwardly but you have --> each time you close the script with </script>. I'm not sure if you're trying to comment something or if you forgot to remove comments.
    4) In your JavaScript, you're using document.write(...) to place content onto the page dynamically. While this technically is still correct, it's extremely outdated.
    5) You haven't used a single ; throughout your JavaScript.
    6) When inserting a video file into your page, in HTML5 you simply use the following:
    HTML Code:
    <video width = "400" height = "400" id = "myVideo" controls>
         <source src = "clip.mp4" type = "video/mp4"> <!-- browser attempts to load the source files in the order they are listed -->
         <source src = "clip.ogg" type = "video/ogg">
    Sorry, cannot play the videos <!-- occurs if the browser cannot load the source video files -->
    You can use JS to control the video files in any manner you choose.

    7) Syntax that is not valid in HTML5 and probably wouldn't do what you want it to. For example, the legal version of <b>...</b> to make content bold is <strong>...</strong> or to give it a class or ID and do it using CSS.

    If you run your HTML code through a HTML5 validator, you can update the code and see if that alone will fix the problem. If not, then your best bet would be to re-do the website. Here's a sample skeleton layout of HTML5 (it's bare-bones):

    HTML Code:
    <!DOCTYPE html>
              <title>My page</title>
              <meta charset = "UTF-8" />
         <script type = "text/javascript">
              <!-- your JS here but you can also call it in the <body> --> 
         <style></style> <!-- can include your CSS here or use <link rel /> for an external CSS file -->
             // stuff to display
    Quote Originally Posted by chewbubba
    Is there a better FREE prog to view the script?
    There are quite a few free web servers you can download, the one I prefer to use is Apache (free). You can either do a manual installation or use an installer such as XAMPP, which comes with MySQL, Tomcat (another web server), Mercury and other useful tid bits, all of which is free. One thing to keep in mind is that by default, it will use port 80, however, other programs such as Skype do too, creating a conflict. My preference is rather than tinker with other installed software, you can change the default port to something else, such as 81. To view the script, turn on your Apache web server and in the browser of your choice, type localhost:[your port]/your file path to the script. For IE, you will have to add http:// before the localhost otherwise it attempts to Google your query.

    Since Apache doesn't need an external FTP client, you can drag and drop the .php files and other content into the htdocs folder (default). If you've used FileZilla or similar software, it's akin to placing content within the public_html folder.

    Last bit, most web servers will not show you all of your php errors. You can check the logs via XAMPP and at the top of your script (below session_start() should you happen to use it), include the following 2 lines in each php file:

    PHP Code:

Thread Information

Users Browsing this Thread

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

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.11812 seconds
  • Memory Usage 2,902KB
  • Queries Executed 13 (?)
More Information
Template Usage (35):
  • (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
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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 (70):
  • 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_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
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • 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