[ 
https://issues.apache.org/jira/browse/WOOKIE-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003330#comment-13003330
 ] 

Scott Wilson commented on WOOKIE-90:
------------------------------------

I've created a test widget for this and it seems to work fine for me:

<html>
        <head>
                <script src="/wookie/shared/js/jquery/jquery-1.3.2.min.js" 
type="text/javascript"></script>
                <script>
                  $(document).ready(function() { 
$("#loadtest_result").html("PASSED"); });
                </script>       
        </head>
        <body>
          <div id="loadtest">Document.ready <span id="loadtest_result"></div>
        </body>
</html>

> JQuery document ready function not working
> ------------------------------------------
>
>                 Key: WOOKIE-90
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-90
>             Project: Wookie
>          Issue Type: Bug
>            Reporter: Ross Gardler
>             Fix For: 0.9.1
>
>
> In JQuery it is recommended to use $(document).ready(function() { ... } to 
> run a function on document load. however this does not work in a widget.
> It is necessary to use <body onload="..."> instead

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to