Please take a look https://developer.mozilla.org/en-US/docs/Web/API/Location. it might help.
Thanks, moon On Fri, Apr 8, 2016 at 11:08 AM Minudika Malshan <minudika...@gmail.com> wrote: > + what does "location" in this code secment refer to? > > var port = Number(*location*.port); > > return wsProtocol + '//' + *location*.hostname + ':' + this.getPort() + > skipTrailingSlash(*location*.pathname) + '/ws'; > > Is that the location of the webapp currently being hosted. > > Thanks > > On Fri, Apr 8, 2016 at 3:18 PM, Minudika Malshan <minudika...@gmail.com> > wrote: > > > Hi moon, > > > > Thanks for your reply. I looked into it. > > But I cannot understand how to specify the server url which the web app > > should be connected to. > > Could you please explain that for me. > > > > My implementation is as following. > > > > 1) I am deploying the zeppelin web app which can be found at > > > "incubator-zeppelin/zeppelin-web/target/zeppelin-web-0.6.0-incubating-SNAPSHOT.war", > > as an web app inside the WSO2 CEP server which is running on top of > TomCat > > Server. > > 2) After deploying it, I am able to access the zeppelin UI via the link " > > https://10.100.4.177:9443/zeppelin-web-0.6.0-incubating-SNAPSHOT/". > > > > But that UI cannot connect to the zeppelin server which is running on > > localhost:8080. > > > > What I want to do is connect these web app with the running zeppelin > > server and get that web app working. > > > > Thanks and regards. > > > > On Fri, Apr 8, 2016 at 7:01 AM, moon soo Lee <m...@apache.org> wrote: > > > >> Hi, > >> > >> While zeppelin-web.war contains only front-end side codes, therefore > >> ZeppelinServer daemon should be running in somewhere and zeppelin-web > need > >> to connect to it. > >> > >> You might be interested in baseUrl.service.js [1], which defines how > >> front-end find ZeppelinServer (rest, websocket) address. > >> > >> Hope this helps. > >> > >> Thanks, > >> moon > >> > >> [1] > >> > >> > https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-web/src/components/baseUrl/baseUrl.service.js > >> > >> > >> On Thu, Apr 7, 2016 at 8:48 PM Minudika Malshan <minudika...@gmail.com> > >> wrote: > >> > >> > Hi all, > >> > > >> > Is it possible to run zeppelin as a webapp within another server. > Since > >> > usually for zeppelin web app, it requires to zeppelin server to be > run. > >> > What I want is, I need to open zeppelin web app from another > >> interface(web) > >> > of a server instance which is running on top of TomCat and then work > >> with > >> > the zeppelin in normal the way. > >> > How to achieve this goal? > >> > Your comments would be much appreciated. > >> > > >> > BR > >> > > >> > -- > >> > *Minudika Malshan* > >> > Undergraduate > >> > Department of Computer Science and Engineering > >> > University of Moratuwa > >> > Sri Lanka. > >> > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80> > >> > > >> > > > > > > > > -- > > *Minudika Malshan* > > Undergraduate > > Department of Computer Science and Engineering > > University of Moratuwa > > Sri Lanka. > > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80> > > > > > > > > > -- > *Minudika Malshan* > Undergraduate > Department of Computer Science and Engineering > University of Moratuwa > Sri Lanka. > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80> >