Microsoft Content Management Server - Embedding a standard form inside a CMS template

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2006 > Embedding a standard form inside a CMS template





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 Embedding a standard form inside a CMS template
Jenni Merrifield

2006-03-25, 11:39 am

We have a client who is using a 3rd party tool to handle their mailing lists
and subscription to the same. The client has received, from the other party,
a basic Web Form with several fields, some checkboxes and a submit button.
The form tag looks like this:

<form action="http://announcements.westportct.gov/subscribe/subscribe.html"
method="POST">

They want us to embed this form inside a CMS template with HTML placeholders
above and below it for "customization". On a mad impulse I tried putting the
"action" attribute and it's value into the template's form tag and embedding
the form fields in the template but, not unsurprising, it didn't work -
clicking "submit" just did a post-back and nothing appeared to be posted to
the subscribe.html url.

Can anyone tell me if this is even possible and, if so, how I would go about
implementing it?

Thanks!


--
Jenni A.M. Merrifield ((<-- Yes, I am the one from NCompass//CMS))
| walking on water and
| designing to requirements are easy
| so long as both are frozen

design - development - usability
user experience specialist
software engineer


Pandurang Nayak

2006-03-25, 11:39 am

I am not sure I understand your question. But are you looking at cross
posting to a different page.

That is possible with MCMS SP2 - check
http://blogs.technet.com/stefan_gos.../15/419617.aspx

Regards,
Pandurang
--
blog: www.thinkingMS.com/pandurang


"Jenni Merrifield" wrote:

> We have a client who is using a 3rd party tool to handle their mailing lists
> and subscription to the same. The client has received, from the other party,
> a basic Web Form with several fields, some checkboxes and a submit button.
> The form tag looks like this:
>
> <form action="http://announcements.westportct.gov/subscribe/subscribe.html"
> method="POST">
>
> They want us to embed this form inside a CMS template with HTML placeholders
> above and below it for "customization". On a mad impulse I tried putting the
> "action" attribute and it's value into the template's form tag and embedding
> the form fields in the template but, not unsurprising, it didn't work -
> clicking "submit" just did a post-back and nothing appeared to be posted to
> the subscribe.html url.
>
> Can anyone tell me if this is even possible and, if so, how I would go about
> implementing it?
>
> Thanks!
>
>
> --
> Jenni A.M. Merrifield ((<-- Yes, I am the one from NCompass//CMS))
> | walking on water and
> | designing to requirements are easy
> | so long as both are frozen
>
> design - development - usability
> user experience specialist
> software engineer
>
>

Adnan Al-Ghourabi

2006-03-25, 11:39 am

Hi Jenni,

If you embed it in an HtmlPlaceholder, the form should work (is it fixed for
all templates? is it page specific? etc.). It should also work if you simply
put it in the template. Have you tried it? And if it didn't work, what errors
did you get?

We use the Telerik RadEditor. With lite (free) version, you cannot embed
form tags in the placeholder (unless you used a migration tool like
MetaLogix). The premium version, however, does allow you to manage that.

"Jenni Merrifield" wrote:

> We have a client who is using a 3rd party tool to handle their mailing lists
> and subscription to the same. The client has received, from the other party,
> a basic Web Form with several fields, some checkboxes and a submit button.
> The form tag looks like this:
>
> <form action="http://announcements.westportct.gov/subscribe/subscribe.html"
> method="POST">
>
> They want us to embed this form inside a CMS template with HTML placeholders
> above and below it for "customization". On a mad impulse I tried putting the
> "action" attribute and it's value into the template's form tag and embedding
> the form fields in the template but, not unsurprising, it didn't work -
> clicking "submit" just did a post-back and nothing appeared to be posted to
> the subscribe.html url.
>
> Can anyone tell me if this is even possible and, if so, how I would go about
> implementing it?
>
> Thanks!
>
>
> --
> Jenni A.M. Merrifield ((<-- Yes, I am the one from NCompass//CMS))
> | walking on water and
> | designing to requirements are easy
> | so long as both are frozen
>
> design - development - usability
> user experience specialist
> software engineer
>
>

Jenni Merrifield

2006-03-25, 11:39 am

Yes, I think that cross posting to a different page is the essence of what
we've been asked to do. Unfortunately, I don't think their CMS server has
been upgraded to SP2 - I'll have to look into that and see if I can have that
done.

Thanks for your help!

--
Jenni A.M. Merrifield
| walking on water and
| designing to requirements are easy
| so long as both are frozen

design - development - usability
user experience specialist
software engineer




"Pandurang Nayak" wrote:
[vbcol=seagreen]
> I am not sure I understand your question. But are you looking at cross
> posting to a different page.
>
> That is possible with MCMS SP2 - check
> http://blogs.technet.com/stefan_gos.../15/419617.aspx
>
> Regards,
> Pandurang
> --
> blog: www.thinkingMS.com/pandurang
>
>
> "Jenni Merrifield" wrote:
>
Jenni Merrifield

2006-03-25, 11:39 am

The client came to us to have a "customized" template made because they had
tried to implement it inside a standard CMS HTML template and couldn't get it
to work. Given that it is not legal HTML to have one <form> tag embedded
inside another <form> tag, it didn't seem unreasonable to me that their
original approach didn't work.

When I tried to put it inside the template, moving the "action" attribute to
the <form> tag for the template, it didn't work either.

You imply that the "professional" version of the telrek r.a.d. editor (I'm
familiar with the "lite" version) allows users to embed form elements. How
does the user define the action taken when the "submit" button of their form
is clicked?

--
Jenni A.M. Merrifield
| walking on water and
| designing to requirements are easy
| so long as both are frozen

design - development - usability
user experience specialist
software engineer




"Adnan Al-Ghourabi" wrote:
[vbcol=seagreen]
> Hi Jenni,
>
> If you embed it in an HtmlPlaceholder, the form should work (is it fixed for
> all templates? is it page specific? etc.). It should also work if you simply
> put it in the template. Have you tried it? And if it didn't work, what errors
> did you get?
>
> We use the Telerik RadEditor. With lite (free) version, you cannot embed
> form tags in the placeholder (unless you used a migration tool like
> MetaLogix). The premium version, however, does allow you to manage that.
>
> "Jenni Merrifield" wrote:
>
Stefan [MSFT]

2006-03-25, 11:39 am

Hi Jenni,

ASP.NET does not allow form tags inside the ASP.NET form tag.
The correct approach to do cross posts with ASP.NET 2.0 is to use the
PostBackUrl property of the controls.

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
----------------------


"Jenni Merrifield" <strawberryATjammDOTcom@example.com> wrote in message
news:7B88FD12-64C4-485D-BDEA-4DA3BBEC0C1C@microsoft.com...
> We have a client who is using a 3rd party tool to handle their mailing
> lists
> and subscription to the same. The client has received, from the other
> party,
> a basic Web Form with several fields, some checkboxes and a submit button.
> The form tag looks like this:
>
> <form
> action="http://announcements.westportct.gov/subscribe/subscribe.html"
> method="POST">
>
> They want us to embed this form inside a CMS template with HTML
> placeholders
> above and below it for "customization". On a mad impulse I tried putting
> the
> "action" attribute and it's value into the template's form tag and
> embedding
> the form fields in the template but, not unsurprising, it didn't work -
> clicking "submit" just did a post-back and nothing appeared to be posted
> to
> the subscribe.html url.
>
> Can anyone tell me if this is even possible and, if so, how I would go
> about
> implementing it?
>
> Thanks!
>
>
> --
> Jenni A.M. Merrifield ((<-- Yes, I am the one from NCompass//CMS))
> | walking on water and
> | designing to requirements are easy
> | so long as both are frozen
>
> design - development - usability
> user experience specialist
> software engineer
>
>



Adnan Al-Ghourabi

2006-03-25, 11:39 am

Hi Jenni,

It is actually doable to have a form embedded within another form in
ASP.NET. The action tag simply submits to another page with no problem at
all. We are using that at our company as a temporary solution until we
develop a CMS-based form builder application.

Contact me and I'll happily share with you sample pages that do that
successfully!

Adnan



"Jenni Merrifield" wrote:
[vbcol=seagreen]
> The client came to us to have a "customized" template made because they had
> tried to implement it inside a standard CMS HTML template and couldn't get it
> to work. Given that it is not legal HTML to have one <form> tag embedded
> inside another <form> tag, it didn't seem unreasonable to me that their
> original approach didn't work.
>
> When I tried to put it inside the template, moving the "action" attribute to
> the <form> tag for the template, it didn't work either.
>
> You imply that the "professional" version of the telrek r.a.d. editor (I'm
> familiar with the "lite" version) allows users to embed form elements. How
> does the user define the action taken when the "submit" button of their form
> is clicked?
>
> --
> Jenni A.M. Merrifield
> | walking on water and
> | designing to requirements are easy
> | so long as both are frozen
>
> design - development - usability
> user experience specialist
> software engineer
>
>
>
>
> "Adnan Al-Ghourabi" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com