views:

356

answers:

4

I want to implement AJAX in DRUPAL 4.7 as I am beginner in Drupal can any one help me in this, it would be great if I get a snippet of Code.

Actually in a page I have list of items is being there using pagination it is being accessed, but everytime when I click on the next button it relaods the page, Since in the same page I have other features like ADS, TAGS so it takes more time each time loading. So I need to list out the only the content.

So do help me in this Issue.

A: 
a2h
A: 

If you upgrade to Drupal 5, you could use http://drupal.org/project/ajax%5Fviews . At any rate, I'd recommend taking a look at the code in that module and see what you can use/what ideas you can get.

tog22
A: 

It sounds like you have a JavaScript fatal error on your page, which will disable all JavaScript. There should be an return false attached to the click handler for the pagination, but if that fails, the graceful degradetion would be to execute the link, which will simply reload the page.

So I would suggest you get something like Firebug for Firefox or any other JavaScript development tool, and first check if you get fatal errors.

googletorp
+1  A: 

You really should upgrade to D6 if AT ALL possible. You're like 5 years behind the times and in Drupal years, that's a loooong time.

Mike Crittenden