[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Myexperiment-discuss] adding stuff
From: |
Danius Michaelides |
Subject: |
RE: [Myexperiment-discuss] adding stuff |
Date: |
Wed, 2 Jul 2008 09:51:47 +0100 (BST) |
On Tue, 1 Jul 2008, Linde, A.E. wrote:
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?
Try just making a javascript: url eg:
<%= icon "skua", "javascript:alert('test: '"+SAC_ENDPOINT+"')", nil, nil, "SKUA"
%>
(I've not tested that, the quoting might be abit tricky to get right)
Danius