|
Home > Archive > Microsoft Content Management Server > August 2006 > not able to access MCMS postback events\functions in netscape
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 |
not able to access MCMS postback events\functions in netscape
|
|
| nemesis.saurabh@gmail.com 2006-08-29, 7:22 am |
| hi,
we have a CMS posting with a submit button.
The code below is auto generated by MCMS.
The function __cmsResetFormOverrideOnSubmit() gets invoked on click of
Submit button in IE
but not in Netscape.
Please explain the sequence of events/ reason why this function does
not get invoked in Netscape.
Also explain why postback url is modified
<!-- 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>
Regards.
saurabh
| |
| Stefan [MSFT] 2006-08-29, 1:27 pm |
| Hi Saurabh,
did you install this hotfix:
http://blogs.technet.com/stefan_gos.../08/418995.aspx
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
<nemesis.saurabh@gmail.com> wrote in message
news:1156852860.921581.260310@p79g2000cwp.googlegroups.com...
> hi,
>
> we have a CMS posting with a submit button.
> The code below is auto generated by MCMS.
>
> The function __cmsResetFormOverrideOnSubmit() gets invoked on click of
> Submit button in IE
> but not in Netscape.
>
> Please explain the sequence of events/ reason why this function does
> not get invoked in Netscape.
>
> Also explain why postback url is modified
>
>
>
>
>
>
> <!-- 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>
>
>
>
> Regards.
> saurabh
>
|
|
|
|
|