need help/advice with php on my site

Discussion in 'Programming' started by john247, Apr 23, 2008.

  1. #1
    I received the comment below from someone who checked out my site (not on DP). I wonder if anyone can tell me if (a) it is true and (b) what can I do to change it.

    My site (the first one on my sig) is a pre-bought PHP site and although I have made some minor changes I am not proficient in php/html etc

    comment -I only checked one sub page (too frustrated with the slowness) and found the browse categories is completely reliant on JavaScript. This means search engine spiders will not find these links, and most likely will not index your site fully.

    Thanks for any help / advice you can give regading how to change the script as I am very worried that my site doesn't get ranked if the above is true
     
    john247, Apr 23, 2008 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Yes they are correct, the menu in the top left corner is reliant on Javascript and will not show up if you have JavaScript disabled.

    There are several things you can do to fix this:
    a) Remove the javascript, and just hard code in the links
    b) Leave the javascript, and provide an alternative for users with JS disabled

    I couldn't tell you exactly how to do this, though, as I have no idea what files contain (or how they execute) the code.

    Cheers,
    Louis
     
    Louis11, Apr 23, 2008 IP
  3. milesbparty

    milesbparty Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In general it's not a good idea to have basic functionality of a site dependent on javascript. Not only for the points made in the previous post, but also because your site will break if a visitor has javascript turned off on their browser.

    Javascript should be reserved for the little extra touches on a site.
     
    milesbparty, Apr 23, 2008 IP
  4. john247

    john247 Peon

    Messages:
    690
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh well back to the drawing board

    Maybe I should learn CSS/HTML/Javascript and php myself.......if only I could!
     
    john247, Apr 23, 2008 IP
  5. john247

    john247 Peon

    Messages:
    690
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think I have now changed the categories to non-javascript
    Can someone please confirm for me if this is correct and also if it is better for people without javascript
    Thanks
     
    john247, Apr 23, 2008 IP