Hi, Robert and Will,
Thanks for your timely response.
I have solved the problem. It is not a Velocity engine problem.
Rather, it is because of some weird invisible character that gets
added to the template that prevented the script section to be shown. I
am not sure about the actual character causing this problem. But I am
pretty sure it is the culprit.
Cheers,
Jian
On Nov 8, 2007 1:05 PM, Robert Koberg <[EMAIL PROTECTED]> wrote:
> Sometimes you need to ensure the script element stays open. Try using:
>
> <script src="xxxxx">//</script>
>
>
>
> On Thu, 2007-11-08 at 12:28 -0800, Will Glass-Husain wrote:
> > That's odd. Most likely has nothing to do with Velocity. Look for a
> > missing quote or bracket that hides the content from appearing in the
> > browser. Or, check the velocity logs for an FML error that keeps the page
> > from being generated.
> >
> > WILL
> >
> > On Nov 8, 2007 12:23 PM, jian chen <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I have a template included using #parse() into the main template. So,
> > > it is like: #parse("subtemplate.vm")
> > >
> > > In the subtemplate.vm, I have a javascript, <script src="xxxxx"></script>
> > >
> > > However, when rendering the main template, I do not see the javascript
> > > section in html source. But, If I take away the script from the
> > > subtemplate, I see the other content in that subtemplate rendered.
> > >
> > > Anyone has idea why this happened? How to fix it?
> > >
> > > Thanks!
> > >
> > > Jian
> > >
> > > ---------------------------------------------------------------------
> > > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]