Closed (works as designed)
Project:
Views Datasource
Version:
6.x-1.0-beta2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 07:25 UTC
Updated:
29 Oct 2016 at 13:57 UTC
Jump to comment: Most recent
Comments
Comment #1
miaoulafrite commentedin both cases it opens a windows dialog
'you have chosen to open'
which is a file of type: text/jsonwhat shall firefox do with this file?
- open with... browse
- save
...
Comment #2
IncrediblyKenzi commentedYou might try forcing the header to be application/json:
Comment #3
anthonylindsay commentedYou should not need a page callback: a views_datasource JSON view will have a path, so there is no need to embed it at all: simply call the JSON view at its path.
Then views_datasource will manage the content type header for you.