1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Use Javascript to Load Recent Post of Blog

Discussion in 'JavaScript' started by scottjones, Mar 30, 2009.

  1. #1
    Hi, everyone.
    I have a wordpress blog attached to my website, I want to use javascript to load the title and url of the recent post of my blog (through Rss, maybe) and show it on the website sidebar.
    Because my site is absolutely static, so I cannot run php codes. That is why I need javascript.
    Thank you very much.
     
    scottjones, Mar 30, 2009 IP
  2. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Basically, you need to create an AJAX request that gets the information and shows it on the page. But if you can't execute any sever-side language how would you get the last post? Try explaining a bit further, cause I think you're missing something...
     
    xlcho, Mar 30, 2009 IP