|
Home > Archive > Microsoft Content Management Server > December 2005 > Unable to Switch to Edit after SP2
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 |
Unable to Switch to Edit after SP2
|
|
| Andrew Ang 2005-12-13, 2: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=Unpublished&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>
| |
| Stefan [MSFT] 2005-12-13, 7:54 am |
| 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=Unpublished&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>
>
| |
| Andrew Ang 2005-12-15, 7:48 am |
| 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...
>
>
| |
| Stefan [MSFT] 2005-12-15, 7:48 am |
| 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...
>
>
>
| |
| Andrew Ang 2005-12-15, 8:49 pm |
| 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...
>
>
| |
| Stefan [MSFT] 2005-12-16, 7:48 am |
| 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...
>
>
|
|
|
|
|