how to call javascript function in A site?

J

Jun Young

Hello, rubiers.

now, I wanna call some functions in A site that was already
implemented by another company. ( I don't know internal... just
nothing..)

anyway, there are several javascript functions in there what I want
call frequently in my ruby scripts.

HOW DO I Connect it and calling it?

Could you give me some examples?

for example)

<head>
hello, this is template!!
</head>
<body>
<a href='javascript:func_a(arg1, arg2, arg3)'>click</a>
</body>


func_a().... that is my goal to call in my scripts.

thanks you.
</body>
 
I

Iñaki Baz Castillo

El S=E1bado, 6 de Febrero de 2010, Jun Young escribi=F3:
Hello, rubiers.

But this seems a RubyOnRails question, so please ask in RoR maillist/forum.

=20
<head>
hello, this is template!!
</head>
<body>
<a href=3D'javascript:func_a(arg1, arg2, arg3)'>click</a>
</body>
=20
=20
func_a().... that is my goal to call in my scripts.

Copy/get the Javascript functions into your site (if the license allows it).

=2D-=20
I=F1aki Baz Castillo <[email protected]>
 
M

Marnen Laibow-Koser

Iñaki Baz Castillo said:
El S�bado, 6 de Febrero de 2010, Jun Young
escribi�:> Hello, rubiers.

But this seems a RubyOnRails question, so please ask in RoR
maillist/forum.

No, actually, it seems like a JavaScript question, not a Ruby question
at all.
Copy/get the Javascript functions into your site (if the license allows
it).

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,886
Members
47,419
Latest member
ArturoBres

Latest Threads

Top