The problem probably happens when you open the script tag and immidiately following it
you include a comment
<!-- like you did here:
> <script language="Javascript1.1">
> <!--
but you never close the comment.
You have to close the comment within the script tag or it will generate errors in some
browsers, example:
<script language="Javascript1.1">
<!--
...some code
//--> (NOTICE RIGHT HERE HOW IT IS CLOSED)
</script>
--proteanman
On Thu, 25 January 2001, GORTSILAS ANDREAS wrote:
>
> actually the problem exists because of the remark ... <!-- .... -->???? and
> not of the form element...
>
> -----Original Message-----
> From: GORTSILAS ANDREAS [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 1:36 PM
> To: Dynapi-Help Mailing List (E-mail)
> Cc: [EMAIL PROTECTED] (E-mail)
> Subject: [Dynapi-Help] Frames and form element
>
>
> in the following page the error "DynDocument is undefined" occurs during the
> page loading!!!! but not if I remove the form element!!!???
>
> The error occurs in the dynapi.js:
> ....
> loadHandler : function() {
> DynAPI.document=new DynDocument(self,'document')
> .....
>
> Can anyone explain this?
>
> Thanks
>
> Andreas Gortsilas
>
> ===============================
>
> <html>
> <head>
> <title>Frames example</title>
> </head>
>
> <script language="Javascript1.1" src="/SrcDC/_Gen/dynapi.js"></script>
> <script language="Javascript1.1">
> <!--
> DynAPI.setLibraryPath('/SrcDC/_Gen/')
>
> DynAPI.include('dynacore.api.*')
> DynAPI.include('dynacore.ext.inline.js')
>
> DynAPI.include('dynaetc.util.thread.js');
> DynAPI.include('dynaetc.util.pathanim.js');
>
>
> DynAPI.onLoad=function() {
> DynAPI.targetFrame=new DynDocument(parent.page)
>
> DynAPI.document.findLayers(DynAPI.targetFrame)
>
> DynAPI.targetFrame.elements["testlayer"].setBgColor('#c0c0c0')
> DynAPI.targetFrame.elements["testlayer"].moveTo(100,100)
> DynAPI.targetFrame.elements["testlayer"].setSize(100,100)
>
> // DynAPI.targetFrame.elements["testlayer"].slideTo(600,10,3,25)
> }
>
> </script>
>
> <body>
> testing
> <!--form id="frmMain" name="frmMain">
> <p>Language:<select id="selLang" name="selLang"
> onchange="DoOnChangeLang()"><option value="Gr">Greek<option value="En"
> selected>English</select></p>
> <-p>Language:<a href="Frames_Main_Gr">Greek</a>, <a
> href="Frames_Main_En">English</a></p>
> </form-->
>
> </body>
> </html>
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help