[Zope] javascript problems with zope/apache

Fredrick Rybarczyk Fredrick.Rybarczyk@lub.lu.se
Thu, 30 Sep 1999 11:33:09 +0200


Hi all.
my box: zserver 8080 , apache  80

I need to pass information from a window, opened with javascript, back
to a hidden input tag in within a named form in the original window. The
new window is opened with a url to a cgiscript on my apacheserver. The
script generates a page where the user can create a CERIF classification
on a webresource. So, when the user finishes, avalue is returned back to
the original form. This works like charm on our other pages. When I try
to do the same from Zope, the window opens but the input tag don't get
updated. Both servers run from the same box. I tried to fib with
document.domain and got some interesting results. If I set
" document.domain = 'our.domain';  ", Zope won't open the window. I've
also tried
" document.domain = 'our.domain:8080';  " which resulted in that zope
opened the CERIF window but the input tag still didn't get updated.

Should different portnumbers break the "Same origin principle"  in the
javascript security model?
Is there a way to get around this problem with javascript without having
the client to change his browser configuration?
Do I have to set up apache to handle my zopepages ? :-(

Could anyone please help me out before I dig myself deeper into this
pit.
-Fredrick

--
_____________________________________________________
Fredrick Rybarczyk  voice +46 46 222 9369
Research Engineer   fax   +46 46 222 3682
LUB NetLab          http://www.lub.lu.se/~fredrick/