You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Sie, Yang" <ya...@fmr.com> on 2007/08/22 20:41:40 UTC
Additional Javascript file in Desktop Pipeline.
Hello:
I am trying to make our portlets work under desktop pipeline. Yes,
everything works under portal pipeline. Now the problem is that I have a
folder (say, myFolder) storing a file under myFolder (say, myFile.js).
I put it under /javascript folder under jetspeed. In the portlet I have
put the following line to refer to the a file under that my
<SCRIPT LANGUAGE="Javascript"
SRC="javascript/myFolder/myFile.js"></SCRIPT>
This lines works OK under /portal pipeline and also works fine under
/desktop pipeline from time to time. Without changing anything in my
portlet, IE gave me a syntax error (FF works no complain). This error
happens randomly but frequently enough.
Now I am thinking to let Jetspeed load myFile.js together with all other
javacscript files (such as dojo.js, core.js, etc). How am I going to do
that??
Thank you,
---Yang
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
Re: Additional Javascript file in Desktop Pipeline.
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Aug 22, 2007, at 11:41 AM, Sie, Yang wrote:
> Hello:
>
> I am trying to make our portlets work under desktop pipeline. Yes,
> everything works under portal pipeline. Now the problem is that I
> have a
> folder (say, myFolder) storing a file under myFolder (say, myFile.js).
> I put it under /javascript folder under jetspeed. In the portlet I
> have
> put the following line to refer to the a file under that my
>
> <SCRIPT LANGUAGE="Javascript"
> SRC="javascript/myFolder/myFile.js"></SCRIPT>
>
> This lines works OK under /portal pipeline and also works fine under
> /desktop pipeline from time to time. Without changing anything in my
> portlet, IE gave me a syntax error (FF works no complain). This error
> happens randomly but frequently enough.
>
> Now I am thinking to let Jetspeed load myFile.js together with all
> other
> javacscript files (such as dojo.js, core.js, etc). How am I going
> to do
> that??
>
You can have your portlet participate in the header phase of portlet
rendering (a Jetspeed specific feature)
There are examples of this in the trunk, look at the GoogleMapsPortlet
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org