You might be able to use the onEvent mixin to attach a clientside event to
a serverside event.
http://tapestry-stitch.uklance.cloudbees.net/oneventdemo
If not, the code should help.
On 9 Jul 2013 18:59, "George Ludwig" wrote:
> I've got this working pretty well now, but I want to take it to the
On Tue, 09 Jul 2013 14:59:24 -0300, George Ludwig
wrote:
I've got this working pretty well now, but I want to take it to the next
level.
When the user clicks on a node of the graph, I want to trigger a callback
function on the java side. I assume this means attaching a click handler
method i
I've got this working pretty well now, but I want to take it to the next
level.
When the user clicks on a node of the graph, I want to trigger a callback
function on the java side. I assume this means attaching a click handler
method in javascript to the nodes...but how do I wire it up so when the
Thanks for those links!
On Sun, Jul 7, 2013 at 11:00 PM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> These examples describe the pros and cons of addScript() and
> addInitializerCall():
>
> -
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/javascript
Lance,
I've been using, for example:
@Inject @Path("context:/data/filename.gexf")
@Property
private Asset file;
And then I pass this to the JS function:
String ret= file.getResource().getPath();
It's working fine...but is toClientURL() the preferred method?
On Mon, Jul 8, 2013 at 4:44 AM,
You were totally right...my brainfart didn't notice that the data files
were in the wrong directory.
On Mon, Jul 8, 2013 at 5:09 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Sun, 07 Jul 2013 16:59:18 -0300, George Ludwig
> wrote:
>
> Here's my final (I hope block):
>>
>>
On Sun, 07 Jul 2013 16:59:18 -0300, George Ludwig
wrote:
Here's my final (I hope block):
What is happening is that when I try to load anyfile.anyextension using
javascript, the tapestry app always returns the contents of index page,
rather than the contents of the requested file.
I also tri
I think you want to @Inject the AssetSource to lookup the Asset. You can
then call Asset.toClientUrl() to get an href for the asset which you can
pass to your js library to use.
On 4 Jul 2013 23:32, "George Ludwig" wrote:
> Thiago,
>
> You're definitely right, it's now a JS issue. I figured out t
These examples describe the pros and cons of addScript() and
addInitializerCall():
-
http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/javascript
-
http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/reusable
-
http://jumpstart.doublenegative.com.au/jumpstart/ex
Here's my final (I hope block):
What is happening is that when I try to load anyfile.anyextension using
javascript, the tapestry app always returns the contents of index page,
rather than the contents of the requested file.
I also tried loading the file straight from the browser (i.e.,
http://loc
Thiago,
You're definitely right, it's now a JS issue. I figured out that somehow I
had downloaded a garbled sigma.parseGexf.js file, which was part of the
problem.
Quick javascript question: when I pass the filename for parsing to the gexf
parser, I currently pass it with relationship to the weba
Uncaught SyntaxError: Unexpected token < sigma.parseGexf.js:3
Uncaught TypeError: Object # has no method 'parseGexf'
tap5-sigma.js:24
Are you sure sigma.parseGexf.js is correct? What's in line 24 of
tap5-sigma.js? Anyway, it seems that now this error is completely about
Sigma and JavaScrip
I'm at a point where it seems to me that it really should be working, yet I
get this error in the javascript console:
Uncaught SyntaxError: Unexpected token < sigma.parseGexf.js:3
Uncaught TypeError: Object # has no method 'parseGexf' tap5-sigma.js:24
The method it can't find, parseGexf, is in th
Cool, thanks a lot!
On Tue, Jul 2, 2013 at 3:50 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig
> wrote:
>
> I think I got it...so to initialize my graph I need to pas it a file
>> name...is it most appropriate to use JavaScript
On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig
wrote:
I think I got it...so to initialize my graph I need to pas it a file
name...is it most appropriate to use
JavaScriptSupport.addInitializerCall()
so that the name of the file can be pulled from the @parameter of the
component?
For t
I think I got it...so to initialize my graph I need to pas it a file
name...is it most appropriate to use JavaScriptSupport.addInitializerCall()
so that the name of the file can be pulled from the @parameter of the
component?
On Tue, Jul 2, 2013 at 3:42 PM, Thiago H de Paula Figueiredo <
thiag...
On Tue, 02 Jul 2013 17:25:14 -0300, George Ludwig
wrote:
Thanks for the info Thiago!
Couldn't you just @Import to get the JS files included and
JavaScriptSupport.addScript() to invoke JS functions?
That's the route I ended up taking to import the necessary js files, but
I'm still unclear
Thanks for the info Thiago!
>> Couldn't you just @Import to get the JS files included and
JavaScriptSupport.addScript() to invoke JS functions?
That's the route I ended up taking to import the necessary js files, but
I'm still unclear on exactly how to use JavaScriptSupport.addScript() to
creat
On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig
wrote:
I'm working on a custom component of the SigmaJS visualization library (
http://sigmajs.org).
Specifically, this example: http://sigmajs.org/examples/gexf_example.html
Interesting!
I've been studying the got5 examples of js library
19 matches
Mail list logo