You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Deepak Subhramanian <de...@gmail.com> on 2016/04/02 22:35:02 UTC

Re: z.run works only once from onClick function on a button

I got the latest code today. The run paragraph works in chrome also.

On Mon, Mar 28, 2016 at 3:22 PM, Deepak Subhramanian
<de...@gmail.com> wrote:
> Just tried with Safari and the example works fine. I will update my
> code and see if it is working in Safari.
>
> On Mon, Mar 28, 2016 at 3:13 PM, Deepak Subhramanian
> <de...@gmail.com> wrote:
>> Is it merged to master?  I got the latest code in master and rebuild it .
>>
>> mvn clean package -DskipTests -Pspark-1.6 -Dspark.version=1.6.1
>>
>> Then try to run a new notebook with the example given. But it doesnt
>> seems to work . I tried in my Mac with Chrome and Firefox.
>>
>> Paragraph1
>> %angular
>>
>> <form class="form-inline">
>>   <div class="form-group">
>>     <label for="paragraphId">Paragraph Id: </label>
>>     <input type="text" class="form-control" id="paragraphId"
>> placeholder="Paragraph Id ..." ng-model="paragraph"></input>
>>   </div>
>>   <button type="submit" class="btn btn-primary"
>> ng-click="z.runParagraph(paragraph)"> Run Paragraph</button>
>> </form>
>>
>> Paragraph2
>> println("Date "+new java.util.Date().toString)
>>
>> On Sun, Mar 27, 2016 at 5:18 PM, DuyHai Doan <do...@gmail.com> wrote:
>>> Now that https://github.com/apache/incubator-zeppelin/pull/742 is merged,
>>> can you try with plain HTML code and call z.runParagraph(paragraphId) ?
>>>
>>> On Sun, Mar 27, 2016 at 5:27 PM, Deepak Subhramanian
>>> <de...@gmail.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I added a button to run a paragraph with new values from text-box.
>>>> For some reason the onClick function runs only once.  I am using the
>>>> master branch from github.
>>>>
>>>> val button = <div class="btn btn-success btn-sm">Update
>>>> Display</div>.onClick{() =>
>>>>    z.run("20160326-202433_889465080" )
>>>>    z.run("20160326-203128_1912408797")
>>>>
>>>> }
>>>>
>>>> Here is the notebook.
>>>>
>>>>
>>>> https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook
>>>>
>>>> Thanks, Deepak
>>>
>>>
>>
>>
>>
>> --
>> Deepak Subhramanian
>
>
>
> --
> Deepak Subhramanian



-- 
Deepak Subhramanian