myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Myexperiment-discuss] adding stuff


From: Linde, A.E.
Subject: RE: [Myexperiment-discuss] adding stuff
Date: Tue, 1 Jul 2008 18:20:19 +0100

You guessed it, Danius!

I modified application.rhtml and added
                <script type="text/javascript">var sacEndpoint = "<%= 
SAC_ENDPOINT %>"</script>
                <%= javascript_include_tag "skua.js" %>

and views/workflows/_table.rhtml to add:
                              <%= icon "skua", SAC_ENDPOINT, nil, nil, "SKUA" %>

with the appropriate icons, js file etc added in the right places (was mainly 
trying to see what would and wouldn't work: putting call to js funciton in the 
icon url space certainly didn't!).

[[What happens next?]]

That's what I'm trying to figure out. I could use the url in the icon line to 
invoke my app, eg
                 <%= icon "skua", 
"http://spacebook.myskua.org/wf=1&ep="+SAC_ENDPOINT, nil, nil, "SKUA" %>

or have the icon call a function in the skua.js file: how would I do that, the 
icon method in application_helper.rb assumes the second parameter is a url: do 
I need to define a icon_use_js_func() method?

Cheers,
Tony.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]