I don't think any javascript will get executed until the document is ready
at which time onload will get fired. You could put the code in the body on
load but that wouldn't help in the partial.
You could use some jquery script and register a functioncall like
<div id="namesdata" style="float: left; width: 200px;">
names
</div>
<div id="rowsdata" style="float: left; ">
rows
</div>
<script>
$(document).ready(function(){
startClock('../../../../www/test/ggriptest/getdata1.dat','./ getdata2.php');
});
</script>
On Mon, Jul 6, 2009 at 7:57 PM, JannaB <[email protected]> wrote:
>
> Thanks but that doesn't work in a partial.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---