Seaside - JavaScript - CSS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Seaside - JavaScript - CSS

tushar.n.padhye

Hello,

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...

Question(s)
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" src="/seaside/myWeb?_s=UtwJWVIkSzhgjOgM"></script>
3. Is there any other way of loading a CSS file other than using stylesheet method in updateRoot:

Thanks,
Tushar

<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
        <title>Seaside</title>
        <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" src="http://myhost:123/dhtmlxGrid/codebase/dhtmlxcommon.js"></script>
        <script type="text/javascript" src="http://myhost:123/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
        <script type="text/javascript" src="http://myhost:123/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
        <script type="text/javascript" src="http://myhost:123/dhtmlxGrid/codebase/ext/dhtmlxgrid_start.js"></script>
        <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" src="/seaside/myWeb?_s=UtwJWVIkSzhgjOgM"></script>
        <script type="text/javascript" src="/seaside/myWeb?_s=KiyGNFOsPOlohyTK"></script>
        <script type="text/javascript" src="/seaside/myWeb?_s=qtgeNhXUcXkGXeak"></script>
        <script type="text/javascript" src="/seaside/myWeb?_s=YiafUmPCoDWMQWim"></script>
        </head>
<body onload="onLoad()" onkeydown="onKeyDown(event)">
        <table lightnavigation="true" imgpath="../../dhtmlxGrid/codebase/imgs/" gridheight="300px" class="dhtmlxGrid" gridwidth="99%" name="displayGrid">
                <tr>
                  <td>1</td>
                 <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>5</td>
                </tr>
        </table>
<script type="text/javascript">/*<![CDATA[*/var mygrid = new dhtmlXGridFromTable('displayGrid')/*]]>*/</script></form>
<script type="text/javascript">/*<![CDATA[*/function onLoad(){}/*]]>*/</script>
</body>
</html>


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.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside