lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SOLR-620) Velocity Response Writer
Date Fri, 25 Jul 2008 17:51:34 GMT

    [ https://issues.apache.org/jira/browse/SOLR-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616969#action_12616969
] 

ryantxu edited comment on SOLR-620 at 7/25/08 10:51 AM:
--------------------------------------------------------------

the JSON feature gets around a javascript limitation for cross-site scripting.  If you enclose
your HTML within a JSON tag, you can access from any server -- otherwise it has to come from
the same machine.

the json feature just sends your velocity template output (perhaps html) surrounded with:
{code}
  { result: "your template output here (escaped for json)" }
{code}

      was (Author: ryantxu):
    the JSON feature gets around a javascript limitation for cross-site scripting.  If you
enclose your HTML within a JSON tag, you can access from any server -- otherwise it has to
come from the same machine.

the json feature just sends your velocity template output (perhaps html) surrounded with:
  {\"result\":\"" + json encoded output + "\"}
  
> Velocity Response Writer
> ------------------------
>
>                 Key: SOLR-620
>                 URL: https://issues.apache.org/jira/browse/SOLR-620
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Minor
>         Attachments: SOLR-620.jars.zip, SOLR-620.patch, SOLR-620.patch, SOLR-620.patch
>
>
> Add a Velocity - http://velocity.apache.org - response writer, making it possible to
generate a decent search UI straight from Solr itself.  Designed to work standalone or in
conjunction with the JSON response writer (or SolrJS) for Ajaxy things.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message