Philippe Guillard wrote:
Johnson wrote:

Hi!

I'm trying to use cform in a portal,It work fine except image src location and client side script.
the image src location must use the portal's relation location, not the orignal one ex. cal.gif and help.gif must put to the portal sub directory.
the client side script define in head tag disappeared,so the cform can't run it's own client side script.
if i put the calendar.js and others to portal-page.xsl,the portal only show the main page,click other tab just show the main page.


is there anyone integrating them successfully.

Best regards

Johnson


Hi Johnson,

I think you already discovered it. The reason is that with portal, your form is in a coplet, and the window.xsl stylesheet for the coplet only copies <content>, not the headers, and your uri stays /samples/blocks/portal. So that's it, your have to put what you need in the portal-page.xsl header for css/js accessing something likee portal/skins/common/css-or-js or anywhere.
Then you say you can't go to other tabs?
Do you use cachingUri coplet? Do you use pageLabel? Maybe you should tell what link you see on the tab, something like portal?pageLabel=tab1.tab2 or portal?cocoon-portal-event=X? You don't have this when you remove the css/js?

[moving discussion over to [EMAIL PROTECTED]

If you have more than one form (Cocoon Forms) on your page this might lead to problems because of the Javascript stuff. It creates IDs for e.g. the calendar but those IDs are not unique if the same form is shown twice on a page.

Any ideas how to fix it?

--
Reinhard Pötz Independant Consultant, Trainer & (IT)-Coach


{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

Reply via email to