One more hint Nick, a very basic but weird one:

I first got the error you're reporting because I was facing (without of
course noticing it) cross-domain scripting restrictions, namely I was
calling on the browser something like :

http://localhost:7001/cocoon-nozilla/genfe/it/index.html


while the dojo javascript were loaded with my local network IP like:


<script type="text/javascript"
src="http://my.local.ip.address:7001/cocoon-nozilla/genfe/ajax-resources/dojo/dojo.js";


This is not a problem itself as an HTML page is allowed to link to external
javascript, but as dojo is doing JS loading on demand (with his js packaging
layer) it will turn out that the domain "localhost" where the js is running
is trying to download JS dojo packages from the domain "my.local.ip.address",
silently failing.
Don't know if this match your case, but it's something good to be aware of.

Regards,
Gabriele









On 11/24/06, Gabriele Columbro <[EMAIL PROTECTED]> wrote:

Hi Nick,
I had to solve the same problem yesterday, working on Cocoon 2.1.9 and
Weblogic 9.2 appserver. The problem is somehow related to the Dojo
framework js files loading, so that probably the files you reference
directly from your HTML ( cocoon.js, dojo.js, forms-lib.js) are probably
correctly loaded, but referenced javascript (as they are referenced with
relative URI are not).
I ended up with some dirty hacking (like extracting the whole bunch of js
to a resource folder), and now I have a temporary working solution,  but now
I'm refactoring the js serving pipeline in order to make it work without the
need to explode all needed resources.
Before we go on, can you post some more info like:

1. which exactly are the errors you get in the js console and what output
do you get if you set dojo in debug mode by adding :

<script> djConfig = {isDebug: true}</script>

in your page (via forms-field-styling.xsl) before any dojo js is loaded.

2. How does your js serving pipeline look like and how do you reference
ajax resources within your form template?


HTH,
Gabriele



On 11/23/06, Nick Goupinets <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> Sorry to trouble you guys with one more CForms/dojo question, but I have
> no idea how to get it working. There are 2 cocoon based web sites. One
> works as a web-proxy that takes a request, translates it slightly and
> calls a page that contains CForms on another site. The page returned to
> the proxy is then forwarded to the user and displayed in an HTML frame.
>
> However, the response that comes back from the proxy doesn't work as
> expected - it shows:
>
> Symbol 'cocoon.forms' is not defined after loading '__package__.js'
>
> At the bottom of the page. All links within the returned page are
> absolute, referencing that another site, and all resources they
> reference seem to be accessible.
>
> I wish I had more experience with dojo to debug this problem, but I
> don't. Hope somebody more experienced in this area can help me with
> that.
>
> Thank you very much in advance.
>
> Sincerely,
> Nick.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-----------------------------------------
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-----------------------------------------
work: [EMAIL PROTECTED]
private: [EMAIL PROTECTED]
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: [EMAIL PROTECTED]
AIM:   gabrielecolumbro

-----------------------------------------
"Keyboard not found.
Press F1 to continue"
-----------------------------------------




--
-----------------------------------------
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-----------------------------------------
work: [EMAIL PROTECTED]
private: [EMAIL PROTECTED]
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: [EMAIL PROTECTED]
AIM:   gabrielecolumbro

-----------------------------------------
"Keyboard not found.
Press F1 to continue"
-----------------------------------------

Reply via email to