Accessing view content

Hi,

i have a main file (index.php)
i create a layout and a a view
ContentZone.view(“myview”).attachURL(“page1.php”);

in page1.php, i have a function javascript
function hello()
{
alert(‘hello’);
}

How can I call the function “hello” from index.php?
I try:
ContentZone.getView().hello(); → don’twork
ContentZone.getView().getFrame().hello(); → don’t work

Hi
Here is a documentition about this topic:
docs.dhtmlx.com/doku.php?id=dhtm … lattaching