Hm.  This may take a little re-work, since (of course) framesets don't have
bodies.

If your JavaScript is entirely static, just include the reference to it as
part of your static HTML.

If you need to generate dynamic JavaScript ... you're hosed for the moment.
Add a bug and I'll find a way to make it all work.

----- Original Message -----
From: "len" <[EMAIL PROTECTED]>
To: "Howard M. Lewis Ship" <[EMAIL PROTECTED]>
Sent: Sunday, June 09, 2002 5:28 PM
Subject: Re: [Tapestry-developer] Example of integration JavaScript


> Dear Howard,
> How it is necessary to act, if Home.jwc consists from frames?
>
> That is <body> is absent?
>
> Please, Your opinion?
>
>
> Elena
>
> ----- Original Message -----
> From: "Howard M. Lewis Ship" <[EMAIL PROTECTED]>
> To: "len" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, June 10, 2002 3:51 AM
> Subject: Re: [Tapestry-developer] Example of integration JavaScript
>
>
> > Please see the documentation, including the article at OnJava.
> >
> > Instead of using a <body> tag, you should use a Body component.  The
> Script
> > needs the Body component.
> >
> > You can do the following:
> >
> >     <body jwcid="body"> .... </body>
> >
> > <component id="body" type="Body"/>
> >
> >
> > That's it!
> >
> > ----- Original Message -----
> > From: "len" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 09, 2002 8:46 AM
> > Subject: [Tapestry-developer] Example of integration JavaScript
> >
> >
> > > Dear Developers and Users!
> > > How to use script component?
> > > I read a guide, but had no successful attempt to construct an example.
> > > I need to connect external file Tab.js is JavaScript a code.
> > > I did(made) the following:
> > >
> > > 1. In Home.html I add a fragment:
> > > ...
> > > <script jwcid="tab_script"></script>
> > > </head>
> > > ...
> > >
> > > 2. In Home.jwc I add:
> > >
> > > ...
> > > <id="tab_script" type="Script">
> > > <static-binding name="script">/site/Tab.script</static-binding>
> > > </component>
> > > ...
> > > </specification>
> > > ...
> > > 3. Create Tab.script. In which there is a code:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE script PUBLIC
> > >   "-//Howard Ship//Tapestry Script 1.1//EN"
> > >   "http://tapestry.sf.net/dtd/Script_1_1.dtd";>
> > >
> > > <script>
> > > <include-script resource-path="js/TabLayer/Tab.js" />
> > > </script>
> > >
> > > I receive a mistake:
> > >
> > > Name:  net.sf.tapestry.RequestCycleException
> > > Message:  Script components must be contained within a Body component.
> > > component:  net.sf.tapestry.html.Script@260d8d[Home/tab_script]
> > >
> > > Dear People!
> > > What in this example is a mistake?
> > > I very much need in an example.
> > >
> > >
> > > Please, advise!
> > > Elena
> > >
> > >
> > > _______________________________________________________________
> > >
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -
> > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> > >
> > > _______________________________________________
> > > Tapestry-developer mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> > >
> >
> >
> > _______________________________________________________________
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to