| Author |
Message |
Suman Chakrabarti [MCP]
Guest
|
Posted:
Fri Jan 07, 2005 5:29 am Post subject:
CMS_PostBackForm and URL not showing up in production |
|
|
I've been working on a site for weeks and when I put it into dev (at the last
minute, of course), I no longer have the __doPostBack and __CMS_PostbackForm
scripts. This doesn't happen on any other machine, but it continues to occur
on our production environment.
Help me...
-- Suman Chakrabarti |
|
| Back to top |
|
 |
Suman Chakrabarti [MCP]
Guest
|
Posted:
Fri Jan 07, 2005 5:59 am Post subject:
RE: CMS_PostBackForm and URL not showing up in production |
|
|
I meant when I put it into production it no longer works. I'm concerned
because I no longer have the following script in my pages:
<script language="javascript" type="text/javascript">
<!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// -->
</script>
This current site is marketing only, but may grow to include an application
that will of course requires postback. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Fri Jan 07, 2005 5:22 pm Post subject:
Re: CMS_PostBackForm and URL not showing up in production |
|
|
Hi Suman,
these scripts are injected by the console.
They are only required on a read-write site when doing authoring - which you
should not do on a production machine.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]" <SumanChakrabartiMCP@discussions.microsoft.com>
wrote in message news:29651AC5-97DC-44A0-9989-E913239046E7@microsoft.com...
| Quote: | I meant when I put it into production it no longer works. I'm concerned
because I no longer have the following script in my pages:
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
This current site is marketing only, but may grow to include an
application
that will of course requires postback. |
|
|
| Back to top |
|
 |
Suman Chakrabarti [MCP]
Guest
|
Posted:
Fri Jan 07, 2005 10:11 pm Post subject:
Re: CMS_PostBackForm and URL not showing up in production |
|
|
Do you have any idea why I would no longer have __doPostBack available to me
as well? When I go set readonly mode on my dev box, I still get the CMS
Postback script regardless of whether I am a guest or not.
The reason why this came up is because I created a template in which I have
a user control that does my search. It works fine in dev because it will
allow me to postback, but in production, it tries to post back to the invalid
form action that is normally replaced by __CMS_PostBackForm.action =
"/Files/template.aspx...".
Basically, I just want my postbacks back.
"Stefan [MSFT]" wrote:
| Quote: | Hi Suman,
these scripts are injected by the console.
They are only required on a read-write site when doing authoring - which you
should not do on a production machine.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]" <SumanChakrabartiMCP@discussions.microsoft.com
wrote in message news:29651AC5-97DC-44A0-9989-E913239046E7@microsoft.com...
I meant when I put it into production it no longer works. I'm concerned
because I no longer have the following script in my pages:
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
This current site is marketing only, but may grow to include an
application
that will of course requires postback.
|
|
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Sat Jan 08, 2005 7:33 am Post subject:
Re: CMS_PostBackForm and URL not showing up in production |
|
|
Hi Suman,
that sounds as if you did not include the console on this template.
Please double check.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]" <SumanChakrabartiMCP@discussions.microsoft.com>
wrote in message news:E6C0C3DE-CCAF-42BD-A453-954A780A580C@microsoft.com...
| Quote: | Do you have any idea why I would no longer have __doPostBack available to
me
as well? When I go set readonly mode on my dev box, I still get the CMS
Postback script regardless of whether I am a guest or not.
The reason why this came up is because I created a template in which I
have
a user control that does my search. It works fine in dev because it will
allow me to postback, but in production, it tries to post back to the
invalid
form action that is normally replaced by __CMS_PostBackForm.action =
"/Files/template.aspx...".
Basically, I just want my postbacks back.
"Stefan [MSFT]" wrote:
Hi Suman,
these scripts are injected by the console.
They are only required on a read-write site when doing authoring - which
you
should not do on a production machine.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]"
SumanChakrabartiMCP@discussions.microsoft.com
wrote in message
news:29651AC5-97DC-44A0-9989-E913239046E7@microsoft.com...
I meant when I put it into production it no longer works. I'm
concerned
because I no longer have the following script in my pages:
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
This current site is marketing only, but may grow to include an
application
that will of course requires postback.
|
|
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: CMS_PostBackForm and URL not showing up in production |
|
|
Hi Suman,
I would suggest to open a support case to analyze this in more detail.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]" <SumanChakrabartiMCP@discussions.microsoft.com>
wrote in message news:7B168F7B-3E4C-4135-B97C-A5BDEEE2F952@microsoft.com...
| Quote: | Sorry, I haven't checked back in a while.
I have an inherited page that includes the CMS console. In addition, this
works fine in my local development environment (Win2003) but does not work
appropriately.
In my current development environment with the site set as Read-Only, I
get
the following script:
script language="javascript" type="text/javascript"
!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document._ctl0;
}
else {
theform = document.forms["_ctl0"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// --
/script
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document._ctl0;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpGateway.aspx?NRMODE=Published&NRORIGINALURL={...}&NR |
NODEGUID={...}&NRCACHEHINT=LoggedIn";
| Quote: | __CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
However in the production environment, I am missing both scripts. I could
understand it if the scripts were missing in dev once I went to Read-Only
mode since there aren't any postbacks in the page, but it's not the case.
Thanks
"Stefan [MSFT]" wrote:
Hi Suman,
that sounds as if you did not include the console on this template.
Please double check.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]"
SumanChakrabartiMCP@discussions.microsoft.com
wrote in message
news:E6C0C3DE-CCAF-42BD-A453-954A780A580C@microsoft.com...
Do you have any idea why I would no longer have __doPostBack available
to
me
as well? When I go set readonly mode on my dev box, I still get the
CMS
Postback script regardless of whether I am a guest or not.
The reason why this came up is because I created a template in which I
have
a user control that does my search. It works fine in dev because it
will
allow me to postback, but in production, it tries to post back to the
invalid
form action that is normally replaced by __CMS_PostBackForm.action =
"/Files/template.aspx...".
Basically, I just want my postbacks back.
"Stefan [MSFT]" wrote:
Hi Suman,
these scripts are injected by the console.
They are only required on a read-write site when doing authoring -
which
you
should not do on a production machine.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]"
SumanChakrabartiMCP@discussions.microsoft.com
wrote in message
news:29651AC5-97DC-44A0-9989-E913239046E7@microsoft.com...
I meant when I put it into production it no longer works. I'm
concerned
because I no longer have the following script in my pages:
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
This current site is marketing only, but may grow to include an
application
that will of course requires postback.
|
|
|
| Back to top |
|
 |
Suman Chakrabarti [MCP]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: CMS_PostBackForm and URL not showing up in production |
|
|
Sorry, I haven't checked back in a while.
I have an inherited page that includes the CMS console. In addition, this
works fine in my local development environment (Win2003) but does not work
appropriately.
In my current development environment with the site set as Read-Only, I get
the following script:
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document._ctl0;
}
else {
theform = document.forms["_ctl0"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
<script language="javascript" type="text/javascript">
<!--
var __CMS_PostbackForm = document._ctl0;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpGateway.aspx?NRMODE=Published&NRORIGINALURL={...}&NRNODEGUID={...}&NRCACHEHINT=LoggedIn";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// -->
</script>
However in the production environment, I am missing both scripts. I could
understand it if the scripts were missing in dev once I went to Read-Only
mode since there aren't any postbacks in the page, but it's not the case.
Thanks
"Stefan [MSFT]" wrote:
| Quote: | Hi Suman,
that sounds as if you did not include the console on this template.
Please double check.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]" <SumanChakrabartiMCP@discussions.microsoft.com
wrote in message news:E6C0C3DE-CCAF-42BD-A453-954A780A580C@microsoft.com...
Do you have any idea why I would no longer have __doPostBack available to
me
as well? When I go set readonly mode on my dev box, I still get the CMS
Postback script regardless of whether I am a guest or not.
The reason why this came up is because I created a template in which I
have
a user control that does my search. It works fine in dev because it will
allow me to postback, but in production, it tries to post back to the
invalid
form action that is normally replaced by __CMS_PostBackForm.action =
"/Files/template.aspx...".
Basically, I just want my postbacks back.
"Stefan [MSFT]" wrote:
Hi Suman,
these scripts are injected by the console.
They are only required on a read-write site when doing authoring - which
you
should not do on a production machine.
Cheers,
Stefan.
"Suman Chakrabarti [MCP]"
SumanChakrabartiMCP@discussions.microsoft.com
wrote in message
news:29651AC5-97DC-44A0-9989-E913239046E7@microsoft.com...
I meant when I put it into production it no longer works. I'm
concerned
because I no longer have the following script in my pages:
script language="javascript" type="text/javascript"
!--
var __CMS_PostbackForm = document.Form1;
var __CMS_CurrentUrl =
"/Internet/Templates/tmpNewsSummary.aspx?NRMODE=Published...";
__CMS_PostbackForm.action = __CMS_CurrentUrl;
// --
/script
This current site is marketing only, but may grow to include an
application
that will of course requires postback.
|
|
|
| Back to top |
|
 |
|
|
|
|