By visualblind on
hello guys,
I'm new to drupal and have been trying ti implement Ajax in my module.. but cant seem to make it work..
I need my module to create a block that displays 15 records from a database table. Bottom will show "More Links" and when a user clicks it should display next 15 records in the same block without Page Refresh.
Can u help me achieve that.
i need a fully functional code that can update records in the block
i have created the module that adds the block n can write SQL to change whereever needed but Ajax calls not yet...
if anyone of u have time plz send me a code.... its urgent
Comments
Need more details...
Please post more details, about how are you making ajax work or not ! :)
You can read this post for more help: http://drupal.org/node/131146
Sorry for my english.
----
Diego Miola
http://groups.drupal.org/argentina
hi diego, i had seen that
hi diego,
i had seen that post last week only but it doesnt explain what i want to implement
wht i want to do is
1: create a module that creates a block ( already done )
2: display 10 records from the database with a link tht says "More NEWS"
3: clicking on this link should display next 10 records from my database without refreshing the page (AJAX calls)
i believe its very simple for one of you experts but i've been spending a lot of time n yet no use
i hope u'll help me solve this question
no need to be sorry for the language as my english is as bad as or say as gud as yours.
Sharad
I am having the same problem
I want to do ajax, but if I register a callback on a node/$nid type path, i always get a full page back. If I register it on any other path, I always get access denied errors (er, even though I am logged in as the root user).
Any guidance from anyone?
problem was solved in
problem was solved in another thread.
Cheers
I am having the same problem
I want to do ajax, but if I register a callback on a node/$nid type path, i always get a full page back. If I register it on any other path, I always get access denied errors (er, even though I am logged in as the root user).
Any guidance from anyone?
Code if gold
Not much we can do without seeing some code to fix.
Dave
Try this...
try with:
?q=node/$nid
is valid and works !
----
Diego Miola
http://diegomiola.dostypos.com.ar
sorry, problem was solved by
sorry, problem was solved by setting the access variable to true when I registered the callback in hook_menu