Microsoft Content Management Server - Image Placeholder Question

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2004 > Image Placeholder Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Image Placeholder Question
Michael Iannone

2004-03-25, 5:51 pm

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
Stefan [MSFT]

2004-03-25, 5: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



Michael Iannone

2004-03-26, 12:27 pm

Thanks Stefan,
I'll attempt to figure out a different way to handle this.

Michael Iannone
Stefan [MSFT]

2004-03-26, 12:27 pm

Hi Michael,

as this is an IE issue I would suggest to post this question to an IE
newsgroup.
These guys might know an answer.

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.0403260613.d2ffda0@posting.google.com...
> Thanks Stefan,
> I'll attempt to figure out a different way to handle this.
>
> Michael Iannone



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com