Image Placeholder Question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Image Placeholder Question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Image Placeholder Question  
Michael Iannone


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-04 10: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





[ Post a follow-up to this message ]



    Re: Image Placeholder Question  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Image Placeholder Question  
Michael Iannone


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-04 05:27 PM

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

Michael Iannone





[ Post a follow-up to this message ]



    Re: Image Placeholder Question  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-04 05: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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:58 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register