03-25-04 10:51 PM
Hi Michael,
this is a cross site scripting issue: the javascript is running on a
different site as the page it wants to modify.
IE does not allow this as cross-site scripting attacks do the same.
I think there is no workaround to this.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Michael Iannone" <Michael.Iannone@T4G.com> wrote in message
news:372d7f41.0403251429.7e9a4921@posting.google.com...
> I apologize for the length of this message, but I tried to explain my
> situation thoroughly.
>
> I have created a custom placeholder control that inherits from the
> SingleImagePlaceholderControl. One thing that this control does is
> change what the 'Add or Edit Image' button does when it is clicked.
> This button normally calls a javascript function which opens up a new
> window. This new window allows you to select an image from the
> resource gallery or insert a local image.
> I have changed this button so that it calls the same function, but I
> pass it a differnet URL so that it opens a new custom Add/Edit page,
> located on a web site that is not the CMS web site. My pages are very
> similar to the standard cms one and allow you to view the resource
> gallery and local images, but has a bit of extra functionality for
> editing the pictures. This all works fine. The problem I am having
> is when you attempt to insert the image.
> When you click insert it should update the cms page and display the
> new image. However, at this point I am getting an error becuase I do
> not have permission to insert this image. The error message says:
> "Microsoft JScript runtime error: Permission denied" (I know thats
> not very helpful)
> These pages work fine if I add the custom Add/Edit pages to the cms
> web site. When I do this I can use select the image I want, edit it,
> and then insert it normally. However, when I separate these pages to
> a differnt web site everything work until the insert.
> I assume what is happening is when the 'Add or Edit Image' button is
> clicked it opens the new window but the user info is getting lost. So
> when the popup window tries to write back to the cms page it cant.
> Does anyone know what I need to do so that the popup window can be in
> a different web site and still be able to write to the cms page? Any
> help would be appreciated.
>
> Here are things I have already done. In the CMS SCA I have given the
> Web Site the popup window is on Read and Write permission. Also the
> annonymous user for the popup window has administrator privlidges on
> the cms site. I thought this should do it, but maybe I am missing
> something. Please Help.
>
> Thanks.
>
> Michael Iannone
[ Post a follow-up to this message ]
|