Hi,

I'd like to create a web site using Drupal 7 and I'd like my site to use AJAX for content requests.

What I want to achieve here is to have a website that doesn't reload the page and only the AJAX will replace some part of the page.

Please let me know.

Thanks,

Comments

criznach’s picture

I've had clients ask for this, and after much research and several attempts we've generally found the hassles outweigh the benefits or coolness factor. You'll need to alter every link that the site outputs, including menu system, content, etc. Most modules will not work in this fashion without lots of customization.

That said, if you still want to try it, check out hook_url_outbound_alter(). It will get you started.

putoshop’s picture

Hi criznach,

That's what I'm also thinking. I'm thinking of using jQuery for the AJAX to pull data from the database based on the parameters on the menu link like http://mydomain.com/#node/1 something like this.

Thanks for the help,

nevets’s picture

You might want to look at the Single Page Website module.

putoshop’s picture

Hi nevets,

The page only scrolls down on the page when clicking on the link.

Thanks,