Ajax and CSS horizonal Menu-onclick, load PHP include file

Discussion in 'Programming' started by jasso, Aug 12, 2009.

  1. #1
    I would like to include different PHP include files in my PHP index page when
    a menu item (from CSS horizonal menu) is clicked.

    I dont want to reload the entair index page, just the include php file based on menu selection.

    Can somebody help please....:confused:
     
    jasso, Aug 12, 2009 IP
  2. jasso

    jasso Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone...please give me some direction...
     
    jasso, Aug 14, 2009 IP
  3. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use Jquery and then use something like $.load() function : http://docs.jquery.com/Ajax/load#urldatacallback

    That way behind the scene with ajax easily done with Jquery you can call and then replace some html content with the returned content. Just keep in mind though if you don't somehow fall back to standard html links when javascript is disabled its gona hurt your SEO.
     
    kblessinggr, Aug 14, 2009 IP