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: <[email protected]> > 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]
