Results 1 to 2 of 2

Thread: Random Content Order (first load problem)

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Random Content Order (first load problem)

    1) Script Title: Random Content Order

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ntentorder.htm

    3) Describe problem:
    This is a quirky problem im finding with this script, works fine most of the time but especially when called for the first time in IE browser it causes the page not to load. Refresh it and all is ok. Happens less often in Firefox.

    Would be interested to know if anybody has any ideas of fix for this or has come accross this problem.

    Script controls adds on right and is the same as code on DD site.

    The domain is www.worldsporting.net and you should get this problem if not on first access by closing browser and trying to re load a few times.


    Thanks
    Mark

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The page uses PHP and from the looks of it PHP includes. Many if not all of these includes are complete pages in themselves with opening and closing html head and body tags. They also have meta tags and stylesheet link tags. This produces invalid HTML code. Once that happens it's really up to the browser as to what it can make of the page using its error correcting routines.

    There could be other problems, but this really should be fixed first. Ideally you should validate the page:

    http://validator.w3.org/check?verbos...porting.net%2F

    Even that may need to be reloaded a few times to get results. This is probably due to the same problem I outlined, but may actually be an issue with the server as indicated.

    But just removing of all those tags that don't belong on the included pages might fix things.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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