views:

13

answers:

1

Hi,

I tried to access Datatable outside gui tag, but failed. Could some tell me why?

thanks.

the code like this:

<gui:dataTable id="myDataTable" .../>
<script>
    var data = GRAILSUI.myDataTable;
    alert("hi, " + data);

</script>

it ends with "hi, undefined"

A: 

Did you import the resources correctly ?

in the header ?

Rob
yes, i did. every thing else is working. i guess this has something to do with javascript object that is defined.
john