[Seaside] Seaside - JavaScript - CSS

tushar.n.padhye at jpmorgan.com tushar.n.padhye at jpmorgan.com
Wed Sep 24 16:04:19 UTC 2008


I am new to using Seaside and would appreciate some help. I am using 
seaside 2.6 on VisualWorks based application. I cannot upgrade to the 
latest seaside version for at least some time.

My plan is to render some raw html table data from seaside to browser and 
then use JavaScript based libraries (dhtmlx) to manipulate the data. For 
this, I am including the libraries and css sheets into the html and they 
get loaded on to the page fine. A stripped down version of my page is 
pasted below.

I might consider AJAX / Scriptalicious at a later stage - but don't think 
its required at this stage...

1. How do I write into the onLoad() function of the generated page. As you 
see in the html - the "var mygrid = new 
dhtmlXGridFromTable('displayGrid')" is printed into a separate script tag 
and not in the onLoad() function.
2. What is the function of 
<script type="text/javascript" 
3. Is there any other way of loading a CSS file other than using 
stylesheet method in updateRoot: 


<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
        <meta content="text/html; charset=us-ascii" 
http-equiv="Content-Type" />
        <link rel="stylesheet" type="text/css" 
href="http://myhost:123/dhtmlxGrid/codebase/dhtmlxgriid.css" />
        <link rel="stylesheet" type="text/css" 
href="http://myhost:123/dhtmlxGrid/codebase/dhtmlxgrid_skins.css" />
        <script type="text/javascript" 
        <script type="text/javascript" 
        <script type="text/javascript" 
        <script type="text/javascript" 
        <link rel="stylesheet" type="text/css" 
href="/seaside/myWeb?_s=QnaWEgNcskJnEEtI" />
        <link rel="stylesheet" type="text/css" 
href="/seaside/myWeb?_s=gPPLgGiDQBvpZAfn" />
        <link rel="stylesheet" type="text/css" 
href="/seaside/myWeb?_s=ahGnhtsREzeUiPvQ" />
        <link rel="stylesheet" type="text/css" 
href="/seaside/myWeb?_s=dDxCEuRMmWolJDAe" />
        <script type="text/javascript" 
        <script type="text/javascript" 
        <script type="text/javascript" 
        <script type="text/javascript" 
<body onload="onLoad()" onkeydown="onKeyDown(event)">
        <table lightnavigation="true" 
imgpath="../../dhtmlxGrid/codebase/imgs/" gridheight="300px" 
class="dhtmlxGrid" gridwidth="99%" name="displayGrid">
<script type="text/javascript">/*<![CDATA[*/var mygrid = new 
<script type="text/javascript">/*<![CDATA[*/function 

Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080924/1a5bcef3/attachment.htm

More information about the seaside mailing list