|
Home > Archive > Microsoft Content Management Server > May 2005 > Window.open in submitted event.
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 |
Window.open in submitted event.
|
|
| Serzen 2005-05-26, 5:55 pm |
| We would like that when the user submits a page the application gives
the opportunity to send a mail to the editors. We also need that
this mail is sent once the posting is submitted, so we have tried
to include the code in the CMS Submitted event. However we are
getting some client errors when we do this. What the code does is
in the submitted we create a new method with the following code:
HttpContext.Current.Response.Write("<script language=""vbscript"">")
HttpContext.Current.Response.Write("window.open
""/portalpublishing/aspx/SendMailOption.aspx?EVENT=Submit&SITE=" & strChannel
& """,""SendMailOption"",""Width=355px,Height=175px,top=250, Left=300""")
HttpContext.Current.Response.Write("</script>")
We have also tried to do this using a messagebox, but an error message
was displayed.
Please, could you give us some advice?
Thanks.
| |
| Angus Logan [MVP] 2005-05-26, 5:55 pm |
| Hi Serzen,
You should consider writing your own Custom Console Action.
See
http://msdn.microsoft.com/library/d...ms_extwebau.asp
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"Serzen" <Serzen@discussions.microsoft.com> wrote in message
news:BF3D66CF-D6BD-46D3-A0C4-F869981C9AAA@microsoft.com...
> We would like that when the user submits a page the application gives
> the opportunity to send a mail to the editors. We also need that
> this mail is sent once the posting is submitted, so we have tried
> to include the code in the CMS Submitted event. However we are
> getting some client errors when we do this. What the code does is
> in the submitted we create a new method with the following code:
>
> HttpContext.Current.Response.Write("<script language=""vbscript"">")
> HttpContext.Current.Response.Write("window.open
> ""/portalpublishing/aspx/SendMailOption.aspx?EVENT=Submit&SITE=" &
> strChannel
> & """,""SendMailOption"",""Width=355px,Height=175px,top=250, Left=300""")
> HttpContext.Current.Response.Write("</script>")
>
> We have also tried to do this using a messagebox, but an error message
> was displayed.
> Please, could you give us some advice?
> Thanks.
>
>
|
|
|
|
|