Saimon,

I get the same result using the
src="$content.getURI("resources,global.js")"/> , a blank screen. I think the
screen template substituted for the $screenholder in the layout is inside
the <html> tag, not sure this works?

What I find strange is that it found this URI without any directive before.
Just moving the template referring to the resource should not change this.
It makes sense for tempalte, navigation and layouts, but I am not so sure
about resources.

David

-----Original Message-----
From: Simon Moore [mailto:[EMAIL PROTECTED]]
Sent: 15 April 2002 15:58
To: Turbine Users List
Subject: RE: Finding path to resource


that's not what it was designed for but I thought you might be interested ;)

but try

src="$content.getURI("resources,global.js")"/>

hope that helps...


(You'll have to wait as I have it at home somewhere....I have to dig it up)

Personally, after implementing it..I then decided I wanted to try and avoid
javascript in my apps as much as possible...ironic isn't it..;)


Saimon,

> -----Mensaje original-----
> De:   David Wynter [SMTP:[EMAIL PROTECTED]]
> Enviado el:   lunes 15 de abril de 2002 16:48
> Para: Turbine Users List
> Asunto:       RE: Finding path to resource
>
>
>
> Sure, if it shows me how to include the JavaScript from a template in a
> sub
> directory off /screens. I have found the architecture hard to follow,
> mainly
> because of the documentation. I have found the Flux implementation has
> answered most of my questions when someone reminded me it was there!
>
> David
>
> -----Original Message-----
> From: Simon Moore [mailto:[EMAIL PROTECTED]]
> Sent: 15 April 2002 15:37
> To: Turbine Users List
> Subject: RE: Finding path to resource
>
>
> I submitted a javascript implementation for intake a while back now, that
> you might be interested in...
>
> If so..I'll see if I can dig it up...
>
> Saimon
>
> > -----Mensaje original-----
> > De: David Wynter [SMTP:[EMAIL PROTECTED]]
> > Enviado el: lunes 15 de abril de 2002 16:31
> > Para:       Turbine-User
> > Asunto:     Finding path to resource
> >
> > I have just moved my .vm templates to subdirectories of
> > webapps/myapp/modules/app/screens that represent the roles that use
> them.
> > I
> > have implemented a much simpler version of what Scott Weaver presented
> in
> > his extended security model. The last hurdle to overcome is finding my
> > JavaScript resources. I have a file 'global.js' located in the
> > webapps/myapp/resources directory. In this global.js file is a function
> > called comparePwds. It is address from a tempalte as follows:
> > <input type="submit" name="eventSubmit_doCreate" value="Create"
> > onClick="comparePwds(this.form)"/>
> >
> > It cannot find it now that the template has moved to
> > webapps/myapp/modules/app/screens/Admin.
> >
> > I tried adding this to the top of the template and separately to the top
> > of
> > the layout template.
> > <script language="JavaScript"
> > src="$content.getURI("resources/global.js")"/>
> > I ended up with blank screens in both cases but no error about not
> finding
> > the script. I found a reference to this is in the  arhive, but this had
> > <html> and <body> tags which my templates do not. I could not find
> > anything
> > on where these tags are implicitly in the Velocity templates. I
> understand
> > that I need to put the above <script ... in between the <html> and
> <body>
> > tags but where do these occur?
> >
> > thanks
> >
> > David Wynter
> > roamware Ltd.
> > (+44) (0) 208 922 7539 B.
> > (+44) (0) 7879 605 706 M.
> > [EMAIL PROTECTED]
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

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


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

Reply via email to