# Problem with page\<\<(...)

**URL:** <https://www.ruby-forum.com/t/problem-with-page/130451>\
**Category:** Rails\
**Created:** [February 28, 2008, 11:44am UTC](https://www.ruby-forum.com/t/problem-with-page/130451 "2008-02-28T11:44:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohneworte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a698b9/32.png) [@ohneworte](https://www.ruby-forum.com/u/ohneworte)\
**Post date:** [February 28, 2008, 11:44am UTC](https://www.ruby-forum.com/t/problem-with-page/130451/1 "2008-02-28T11:44:44Z")

</div>

Hello together,

I want to call my specific JavaScript-Functions in a RJS-File via  
“page\<\<(…)”. In Fact my code looks something like this (I am using  
Prototype!!):

page\<\<(“new MyFunctions(‘param1’,‘param1’,{ ‘objParam1’:‘a’,  
‘objParam2’:‘b’ })”)

A Problem occurs with the third parameter, which is an Object. It  
seems that Rails cannot handle it from here, it doesn´t reach  
“MyFunction”.

Am I making something wrong or are there any solutions for this  
problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![ohneworte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a698b9/32.png) [@ohneworte](https://www.ruby-forum.com/u/ohneworte)\
**Post date:** [February 28, 2008, 11:52am UTC](https://www.ruby-forum.com/t/problem-with-page/130451/2 "2008-02-28T11:52:33Z")

</div>

Hmm, I just figured out, that none of the parameters achive the  
function in the JavaScript-File. Every parameter is “undefined” …  
why?

---

<div class="post-metadata">

**Author:** ![ohneworte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a698b9/32.png) [@ohneworte](https://www.ruby-forum.com/u/ohneworte)\
**Post date:** [February 28, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/problem-with-page/130451/3 "2008-02-28T13:44:04Z")

</div>

I am really sorry, I made a stupid mistake - all works well! This  
thread is obsolete!
