Re: tutorial for javascript

2012-12-29 Thread Roger Meier
Quoting Amit Prakash : var transport = new Thrift.Transport("/thrift/service/tutorial/"); What is the string "/thrift/service/tutorial/" supposed to mean. Is it supposed to point to the server? If yes, how can I give a host port. I tried "host:port" and that seems to throw an error. please c

Re: tutorial for javascript

2012-12-28 Thread Amit Prakash
var transport = new Thrift.Transport("/thrift/service/tutorial/"); What is the string "/thrift/service/tutorial/" supposed to mean. Is it supposed to point to the server? If yes, how can I give a host port. I tried "host:port" and that seems to throw an error.

RE: tutorial for javascript

2012-08-27 Thread Elswick, Richard
27;t fully inspect the html file. Thanks, Richard -Original Message- From: Juan Moreno [mailto:jwellington.mor...@gmail.com] Sent: Saturday, August 25, 2012 11:51 AM To: u...@thrift.apache.org Cc: dev@thrift.apache.org Subject: Re: tutorial for javascript This is what I see in the

Re: tutorial for javascript

2012-08-26 Thread Henrique Mendonça
Hi Richard It does work with you have the java lib built On 25 August 2012 17:51, Juan Moreno wrote: > This is what I see in the HTML page: > > function calc() { > var transport = new Thrift.Transport("/thrift/service/tutorial/"); > var protocol = new Thrift.Protocol(transport); > v

Re: tutorial for javascript

2012-08-25 Thread Juan Moreno
This is what I see in the HTML page: function calc() { var transport = new Thrift.Transport("/thrift/service/tutorial/"); var protocol = new Thrift.Protocol(transport); var client= new CalculatorClient(protocol); var work = new Work() work.num1 = $("#num1").val(); wor

tutorial for javascript

2012-08-24 Thread Elswick, Richard
I have not compiled the java or c++ server side code for the Javascript tutorial, but it seems that it is broken as the .html page that comes in the tutorial shows as the method call being calc(), not calculate(logid,Work) as shown in the thrift file. Do I understand this correctly? Thanks, Ri