You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Lars Vogelgesang <vo...@rumms.uni-mannheim.de> on 2001/06/01 13:36:45 UTC

Re: Javascript in HTML-Portlet

Hi Carsten,

I use JavaScript within my portlets the following way ( b ist a Input.button,
htmlDatei is a String-
Object representing a html-files location):

b.setOnClick
("window.open('"+htmlDatei+"','displayWindow','directories=no,hotkeys=no,location=no,menubar=no,scrollbars=yes,toolbar=yes');");

This works quite fine,
but I have to admit, that I don't see the difference to your code....

Bye,
Lars

"Meyer, Carsten" schrieb:

> Hi,
>
> I'm trying to open a new windows using Javascript.
> I have a HTML-Page which holds the source code for the new window.
>
> I have the following code :
>
> <SCRIPT language="JAVASCRIPT">
> F1 = window.open("dat1.htm","Window1","");
> </SCRIPT>
>
> The new windows is opening, but the code isn't displayed. Instead I get the
> following error message in my browser:
>
> Exception: java.lang.ClassNotFoundException:
>
>         Requested Action not found: dat1.htm
>         Turbine looked in the following modules.packages path:
>         [org.apache.jetspeed.modules, org.apache.turbine.modules]
>
>         at
> org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:169)
>         at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:121)
>         at
> org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:149)
>         at org.apache.turbine.modules.Page.build(Page.java:92)
>         at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:122)
>         at org.apache.turbine.Turbine.doGet(Turbine.java:364)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
>
> I use Win2k, Tomcat 3.2.1 and Jetspeed 1.3a1.
>
> Thanks a lot,
> Carsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

--
-------------------------------------
Lars Vogelgesang
vogelg@rumms.uni-mannheim.de
http://www.vogelgesang.xodox.de
http://www.madnotmad.de
http://www.munsters.de.st





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Javascript in HTML-Portlet

Posted by Klaus Hildner <kl...@hildner.de>.
...
> > F1 = window.open("dat1.htm","Window1","");

I would suggest to try an absolute URL towards dat1.htm, i. e. something
like /.../dat1.htm because the doc base might point to a location where
it could invoke Turbine actions?

Klaus


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org