Ah, it works! Thanks, Florin! :)

Cheers,
Leo

--- Florin Vancea <[EMAIL PROTECTED]> wrote:

> As long as you do not have any form, getJavascript()
> in ValidatorTool does
> not generate any dynamic JavaScript.
> 
> Normally, when you get to generate the single
> separate JS for inclusion, you
> do not have any form and therefore you get only the
> static parts.
> 
> This is how I use it and it does work. Check the
> source to see for yourself.
> For what it's worth, the version of ValidatorTool
> I'm using is timestamped
> 23-Feb-2005.
> 
> Yes, getStaticJavascript() looked odd (and useless)
> to me, too, but as long
> as there's a replacement I don't mind it being
> there.
> 
> Florin
> 
> ----- Original Message ----- 
> From: "Leo Asanov" <[EMAIL PROTECTED]>
> To: "Velocity Users List"
> <velocity-user@jakarta.apache.org>
> Sent: Thursday, July 28, 2005 2:36 AM
> Subject: Re: Static validation javascript in
> separate .js file
> 
> 
> > Florin,
> >
> > getJavascript() generates both static and dynamic
> > javascript and it doesn't really make sense to put
> it
> > into separate file because you can't reuse it. I
> > thought that standard way would be to put all
> static
> > javascript (which is huge and doesn't get changed
> from
> > page to page) into separate .js file with
> > getStaticJavascript() and put dynamic javascript
> into
> > specific page with getDynamicJavascript(). At
> least it
> > makes sense to me.
> >
> > Anybody's using getStaticJavascript() at all?
> >
> > Cheers,
> > Leo
> >
> > --- Florin Vancea <[EMAIL PROTECTED]> wrote:
> >
> > > Use getJavascript() in separate file.
> > >
> > > ----- Original Message ----- 
> > > From: "Leo Asanov" <[EMAIL PROTECTED]>
> > > To: <velocity-user@jakarta.apache.org>
> > > Sent: Wednesday, July 27, 2005 5:19 AM
> > > Subject: Static validation javascript in
> separate
> > > .js file
> > >
> > >
> > > > Hi!
> > > >
> > > > I've tried putting static javascipt into
> separate
> > > .js
> > > > file with getStaticJavascript(), and when I
> load
> > > it
> > > > with <script src=""> I get javascript error.
> But
> > > if I
> > > > save the page and remove "<script..>" at the
> > > beginning
> > > > and "</script>" at the end of static
> javascript
> > > code
> > > > then it works fine. Apparently browser doesn't
> > > expect
> > > > "<script>" tags in .js files.
> > > > Am I doing something wrong?
> > > >
> > > > Cheers,
> > > > Leo
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> ____________________________________________________
> > > > Start your day with Yahoo! - make it your home
> > > page
> > > > http://www.yahoo.com/r/hs
> > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to