# How to call javascript function in A site?

**URL:** <https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032>\
**Category:** Ruby\
**Created:** [February 6, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032 "2010-02-06T14:13:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junyan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@junyan](https://www.ruby-forum.com/u/junyan)\
**Post date:** [February 6, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032/1 "2010-02-06T14:13:32Z")

</div>

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)

hello, this is template!! click

func\_a()… that is my goal to call in my scripts.

thanks you.

---

<div class="post-metadata">

**Author:** ![junyan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@junyan](https://www.ruby-forum.com/u/junyan)\
**Post date:** [February 6, 2010, 5:22pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032/2 "2010-02-06T17:22:35Z")

</div>

El Sábado, 6 de Febrero de 2010, Jun Y.  
escribió:\> Hello, rubiers.

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

> hello, this is template!! click
> 
> func\_a()… that is my goal to call in my scripts.

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

---

<div class="post-metadata">

**Author:** ![junyan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@junyan](https://www.ruby-forum.com/u/junyan)\
**Post date:** [February 6, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032/3 "2010-02-06T17:32:48Z")

</div>

IÃ±aki Baz C. wrote:

> El Sï¿½bado, 6 de Febrero de 2010, Jun Y.  
> 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.

> > hello, this is template!! click
> > 
> > func\_a()… that is my goal to call in my scripts.
> 
> Copy/get the Javascript functions into your site (if the license allows  
> it).

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
