Unable to Switch to Edit after SP2
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 > Unable to Switch to Edit after SP2




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

    Unable to Switch to Edit after SP2  
Andrew Ang


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


 
12-13-05 07:48 AM

Hi,

After SP2 is applied, I noticed that the below script is added to the page.

When the "Switch to Edit" is clicked, instead of loading a page like
"/NR/exeres/AABBAFFA-A80A-427F-9083-AAEA064473A8,frameless.htm?NRMODE=Unpubl
ished&WBCMODE=PresentationUnpublished&wbc_purpose=Basic'",
the page loaded contains the URL stated in __CMS_CurrentUrl. The loaded page
has the console but only the "Live" mode functions are shown.

Btw, I am mapping host header names to the channel for CMS.

Any advise on the script added to "hijack" the postback? Actual use?
Possible to disable it?

Thanks.

<!-- Generated by Microsoft.ContentManagement.WebControls.Console to reset
form.action -->
<SCRIPT type="text/javascript">
<!--

var __CMS_PostbackFormBeenReset = false;

function __cmsRestFormAction()
{
if ( !__CMS_PostbackFormBeenReset )
{
// set form postback Url to be current translated CMS Url
__CMS_PostbackForm.action = __CMS_CurrentUrl;
}
}

var __cmsResetFormCachedPostBack = null;
if( typeof window.__doPostBack != "undefined" )
{
__cmsResetFormCachedPostBack = __doPostBack;
__doPostBack = __cmsResetFormOverridePostBack;
}

var __cmsResetFormCachedOnSubmit = null;
if( typeof __CMS_PostbackForm.onsubmit != "undefined" )
{
__cmsResetFormCachedOnSubmit = __CMS_PostbackForm.onsubmit;
__CMS_PostbackForm.onsubmit = __cmsResetFormOverrideOnSubmit;
}

function __cmsResetFormOverridePostBack( eventTarget, eventArgument )
{
__cmsRestFormAction();
__cmsResetFormCachedPostBack( eventTarget, eventArgument );
}

function __cmsResetFormOverrideOnSubmit()
{
__cmsRestFormAction();
if (__cmsResetFormCachedOnSubmit != null)
return __cmsResetFormCachedOnSubmit();
else
return true;
}
// -->
</SCRIPT>







[ Post a follow-up to this message ]



    Re: Unable to Switch to Edit after SP2  
Stefan [MSFT]


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


 
12-13-05 12:54 PM

Hi Andrew,

if webauthor does not work correct then this might be a bug.
You should open a support case to get this analyzed and to get an official
hotfix for this.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Andrew Ang" <col@newsgroup.nospam> wrote in message
news:uDc88f7$FHA.532@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> After SP2 is applied, I noticed that the below script is added to the
> page.
>
> When the "Switch to Edit" is clicked, instead of loading a page like
> "/NR/exeres/AABBAFFA-A80A-427F-9083-AAEA064473A8,frameless.htm?NRMODE=Unpu
blished&WBCMODE=PresentationUnpublished&wbc_purpose=Basic'",
> the page loaded contains the URL stated in __CMS_CurrentUrl. The loaded
> page has the console but only the "Live" mode functions are shown.
>
> Btw, I am mapping host header names to the channel for CMS.
>
> Any advise on the script added to "hijack" the postback? Actual use?
> Possible to disable it?
>
> Thanks.
>
> <!-- Generated by Microsoft.ContentManagement.WebControls.Console to reset
> form.action -->
> <SCRIPT type="text/javascript">
> <!--
>
>    var __CMS_PostbackFormBeenReset = false;
>
>    function __cmsRestFormAction()
>    {
>        if ( !__CMS_PostbackFormBeenReset )
>        {
>            // set form postback Url to be current translated CMS Url
>            __CMS_PostbackForm.action = __CMS_CurrentUrl;
>        }
>    }
>
>    var __cmsResetFormCachedPostBack = null;
>    if( typeof window.__doPostBack != "undefined" )
>    {
>        __cmsResetFormCachedPostBack = __doPostBack;
>        __doPostBack = __cmsResetFormOverridePostBack;
>    }
>
>    var __cmsResetFormCachedOnSubmit = null;
>    if( typeof __CMS_PostbackForm.onsubmit != "undefined" )
>    {
>        __cmsResetFormCachedOnSubmit = __CMS_PostbackForm.onsubmit;
>        __CMS_PostbackForm.onsubmit = __cmsResetFormOverrideOnSubmit;
>    }
>
>    function __cmsResetFormOverridePostBack( eventTarget, eventArgument )
>    {
>        __cmsRestFormAction();
>        __cmsResetFormCachedPostBack( eventTarget, eventArgument );
>    }
>
>    function __cmsResetFormOverrideOnSubmit()
>    {
>        __cmsRestFormAction();
>        if (__cmsResetFormCachedOnSubmit != null)
>            return __cmsResetFormCachedOnSubmit();
>        else
>            return true;
>    }
> // -->
> </SCRIPT>
>







[ Post a follow-up to this message ]



    Re: Unable to Switch to Edit after SP2  
Andrew Ang


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


 
12-15-05 12:48 PM

Hi Stefan,

I managed to find out that the cause of the inability to "Switch to Edit".
It is due to a missing statement in the "console.js" in IIS_CMS.

The missing statement is "__CMS_PostbackFormBeenReset = true;" in
"CMS_preparePostbackUrl()".

It seems that both the "console.js" and "optionsclient.js" are not updated
during the first installation of CMS SP2. When I reinstalled CMS SP2,
both files are updated. I have tried stopping IIS before the first
installation of SP2, but it makes no difference.

I also did an installation of CMS SP2 on a newly setup CMS server with SP1a.
Both
js files are updated on the first installation.





"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:eEUqMl8$FHA.916@TK2MSFTNGP10.phx.gbl...
> Hi Andrew,
>
> if webauthor does not work correct then this might be a bug.
> You should open a support case to get this analyzed and to get an official
> hotfix for this.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Andrew Ang" <col@newsgroup.nospam> wrote in message
> news:uDc88f7$FHA.532@TK2MSFTNGP15.phx.gbl... 
>
>








[ Post a follow-up to this message ]



    Re: Unable to Switch to Edit after SP2  
Stefan [MSFT]


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


 
12-15-05 12:48 PM

Hi Andrew,

ok, something seems went wrong on your original upgrade.
Maybe these files were in use by IIS?
Stopping IIS when doing the upgrade to SP2 is actually a good idea.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Andrew Ang" <col@newsgroup.nospam> wrote in message
news:evPq4mVAGHA.2392@TK2MSFTNGP09.phx.gbl...
> Hi Stefan,
>
> I managed to find out that the cause of the inability to "Switch to Edit".
> It is due to a missing statement in the "console.js" in IIS_CMS.
>
> The missing statement is "__CMS_PostbackFormBeenReset = true;" in
> "CMS_preparePostbackUrl()".
>
> It seems that both the "console.js" and "optionsclient.js" are not updated
> during the first installation of CMS SP2. When I reinstalled CMS SP2,
> both files are updated. I have tried stopping IIS before the first
> installation of SP2, but it makes no difference.
>
> I also did an installation of CMS SP2 on a newly setup CMS server with
> SP1a. Both
> js files are updated on the first installation.
>
>
>
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:eEUqMl8$FHA.916@TK2MSFTNGP10.phx.gbl... 
>
>
>







[ Post a follow-up to this message ]



    Re: Unable to Switch to Edit after SP2  
Andrew Ang


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


 
12-16-05 01:49 AM

Hi Stefan,

Yap. Have tried stopping IIS before the first installation, but both the js
still did not get updated.

Although the reinstallation looks okay, but I wonder if any files are still
missed out. I tried to interpret the first installation's ouput log file
generated by
"msiexec", but I did not find anything that point to error in these 2 js
files.

Rgds,
Andrew Ang

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23AiQZuVAGHA.3984@TK2MSFTNGP14.phx.gbl...
> Hi Andrew,
>
> ok, something seems went wrong on your original upgrade.
> Maybe these files were in use by IIS?
> Stopping IIS when doing the upgrade to SP2 is actually a good idea.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Andrew Ang" <col@newsgroup.nospam> wrote in message
> news:evPq4mVAGHA.2392@TK2MSFTNGP09.phx.gbl... 
>
>







[ Post a follow-up to this message ]



    Re: Unable to Switch to Edit after SP2  
Stefan [MSFT]


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


 
12-16-05 12:48 PM

Hi Andrew,

the log will not show the individual files.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Andrew Ang" <col@newsgroup.nospam> wrote in message
news:OnIHnZeAGHA.3140@TK2MSFTNGP14.phx.gbl...
> Hi Stefan,
>
> Yap. Have tried stopping IIS before the first installation, but both the
> js still did not get updated.
>
> Although the reinstallation looks okay, but I wonder if any files are
> still missed out. I tried to interpret the first installation's ouput log
> file generated by
> "msiexec", but I did not find anything that point to error in these 2 js
> files.
>
> Rgds,
> Andrew Ang
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:%23AiQZuVAGHA.3984@TK2MSFTNGP14.phx.gbl... 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:48 PM.      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