[Using Sakai] Loading and Initializing JavaScripts (was Web page won't open in Sakai)
Marshall Feldman
marsh at uri.edu
Thu Jul 2 09:52:06 PDT 2009
Steve Swinsburg wrote:
> What's the path to the external Javascript resources you have in your
> HTML?
>
<script language="javascript" type="text/javascript"
src="code/clientSideInclude.js"></script>
<script language="javascript" type="text/javascript"
src="code/b9j-0.1.9/b9j.js"></script>
<script language="javascript" type="text/javascript"
src="code/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript"
src="code/jquery.dropshadow.js"></script>
<script language="javascript" type="text/javascript"
src="code/utilities.js"></script>
The web page sits in Resources/Web and Resources/Web/code is where the
JavaScripts sit.
> Also, you might have trouble using onload since the iframe already has
> a body onload, and you can only have one.
>
> I'd suggest using a jQuery $(document).ready() function. You are then
> assured the DOM has finished loading. As opposed to the window.onload
> which fires when the window loads.
>
Thanks. I'll give it a try.
--
Dr. Marshall Feldman, PhD
Director of Research and Academic Affairs
Center for Urban Studies and Research
The University of Rhode Island
email: marsh @ uri .edu (remove spaces)
Contact Information:
Kingston:
202 Hart House
Charles T. Schmidt Labor Research Center
The University of Rhode Island
36 Upper College Road
Kingston, RI 02881-0815
tel. (401) 874-5953:
fax: (401) 874-5511
Providence:
206E Shepard Building
URI Feinstein Providence Campus
80 Washington Street
Providence, RI 02903-1819
tel. (401) 277-5218
fax: (401) 277-5464
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20090702/ba363a3e/attachment.html
More information about the sakai-user
mailing list