Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

multiple javascript clients on tree #32

Open
dbuthay opened this issue Mar 14, 2012 · 3 comments
Open

multiple javascript clients on tree #32

dbuthay opened this issue Mar 14, 2012 · 3 comments

Comments

@dbuthay
Copy link

dbuthay commented Mar 14, 2012

I'm trying to build some UI components to interact with sensei, similar to those I built on https://github.com/flaptor/indextank-jquery/

I noticed there are 2 clients on sensei's tree:

  • clients/javascript/sensei-client-1.0.0.js
  • sensei-core/src/main/webapp/js/sensei-client.js

It seems the latter is the good one, but I want to make sure that's the case before extending it and contributing back. Maybe someone already started doing related work

@wonlay
Copy link
Contributor

wonlay commented Mar 14, 2012

For the new json-api, we actually do not have a js client, because the use
can just simply use

$.post(url, request, function(res){/* do something */})

that js clent is for the old parameter based http api. mostly not used.

I'm trying to build some UI components to interact with sensei, similar to
those I built on https://github.com/flaptor/indextank-jquery/

I noticed there are 2 clients on sensei's tree:

  • clients/javascript/sensei-client-1.0.0.js
  • sensei-core/src/main/webapp/js/sensei-client.js

It seems the latter is the good one, but I want to make sure that's the
case before extending it and contributing back. Maybe someone already
started doing related work


Reply to this email directly or view it on GitHub:
#32

@javasoze
Copy link
Contributor

HI Diego:

You are right, the later is the right one.

THe first one was left there for legacy reasons. There was a dependency

in Signal build to it. I think it is fixed out.

Lei, please confirm.

Thanks

-John

On Tue, Mar 13, 2012 at 8:58 PM, Diego Buthay <
reply@reply.github.com

wrote:

I'm trying to build some UI components to interact with sensei, similar to
those I built on https://github.com/flaptor/indextank-jquery/

I noticed there are 2 clients on sensei's tree:

  • clients/javascript/sensei-client-1.0.0.js
  • sensei-core/src/main/webapp/js/sensei-client.js

It seems the latter is the good one, but I want to make sure that's the
case before extending it and contributing back. Maybe someone already
started doing related work


Reply to this email directly or view it on GitHub:
#32

@wonlay
Copy link
Contributor

wonlay commented Mar 15, 2012

yes, the later are newer, what it does, is just the $.post.

An jquery plugin for sensei is a good idea. if you are trying to use the js client to do the query, the later one should be used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants