Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Sorry about your confusion. This module tends to provide an interface for exposing views in JSON or customized HTML for AJAX. For example, I can create a CCK type Media Releases, which has three different fields Contact Person, Contact Phone, and Contact Email. I want to load the contact person's name, the title and the link to the node of a media releases via AJAX requests. With the module I am able to set up two fields (the contact person and the title link) in a view display and output them via JSON or customized HTML. This module is mainly used as an web service for good careful cross-site scripting with drupal_http_request or jQuery.load. Therefore, this module supports data transmission between different websites or Drupal installations.
It still lacks documentation and needs a dev release. I am quite busy these days but it will be done asap.
It would probably be useful to explain this on the project page as well as explain the differences between this module and the http://drupal.org/project/views_datasource module which also outputs json from a view.
This module only outputs HTML snippets defined by user's templates. And it let users select fields and define the names of fields.
For JSON output, template system is not involved at all (for faster response).
Of course I would like to join the effort with views_datasource if the project is still active.
Comments
Comment #1
tommytom commentedmodule dedicated for general AJAX use - what do you mean ?
Comment #2
gzfelix commentedSorry about your confusion. This module tends to provide an interface for exposing views in JSON or customized HTML for AJAX. For example, I can create a CCK type Media Releases, which has three different fields Contact Person, Contact Phone, and Contact Email. I want to load the contact person's name, the title and the link to the node of a media releases via AJAX requests. With the module I am able to set up two fields (the contact person and the title link) in a view display and output them via JSON or customized HTML. This module is mainly used as an web service for good careful cross-site scripting with drupal_http_request or jQuery.load. Therefore, this module supports data transmission between different websites or Drupal installations.
It still lacks documentation and needs a dev release. I am quite busy these days but it will be done asap.
Thanks for your comment.
Comment #3
gzfelix commentedSimply put, this is a module like Insert View, but works across different sites.
Comment #4
WorldFallz commentedIt would probably be useful to explain this on the project page as well as explain the differences between this module and the http://drupal.org/project/views_datasource module which also outputs json from a view.
Comment #5
gzfelix commentedThis module only outputs HTML snippets defined by user's templates. And it let users select fields and define the names of fields.
For JSON output, template system is not involved at all (for faster response).
Of course I would like to join the effort with views_datasource if the project is still active.