[drupal-devel] question re maps in drupal (fwd)
Gerhard Killesreiter
killesreiter at physik.uni-freiburg.de
Sat Jun 18 07:53:54 UTC 2005
On Sat, 18 Jun 2005, Anselm Hook wrote:
> > > Basically there is a tipping point between 'do this one little hack' and
> > > 'build out an AJAX API'... I'm not on top of what the drupal / civicspace
> > > plan is however and any input is welcome.
> >
> > You may not know it, but there is now Ajax-autocompletion in core. So
> > you should try to re-use as much as possible of this code.
>
> Yeah I guess when I mean AJAX I just mean exposing many of the database
> queries via XML to the client browser... like 'get an rss feed of all
> users' or 'get an rss feed of all events'... I'll check it out to see if
> it helps but it does not sound like what I am looking for offhand.
You'd need to make a callback function for the specific function or db
query that you'd like to execute. Look at user.module for the definition
of the user_autocomplete callback and how to call it in node.module
node_form. The JS-calling functions are oin common.inc (I think they
should be in bootstrap.inc, though).
Cheers,
Gerhard
More information about the drupal-devel
mailing list