Constant Contact Link

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/25/2012 2:34:02 PM
Gravatar
Total Posts 5

Constant Contact Link

On my company's home page, I've embedded a link from a site called Constant Contact that is supposed to receive a visitor's e-mail in the textbox, then open the Constant Contact page where the user confirms their e-mail and signs up to receive our e-mail newsletter.  When an e-mail is entered in the textbox, and the visitor hits the "Go" button, our home page reloads, but the new window does not pop up.

Below is the code Constant Contact gave us to embed into our page:

<!-- BEGIN: Constant Contact Stylish Email Newsletter Form -->
<div align="center">
<div style="width:160px; background-color: #ffffff;">
<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:3;"><span style="background-color: #006699; float:right;margin-right:5;margin-top:3"><img src="https://imgssl.constantcontact.com/ui/images1/visitor/email1_trans.gif" alt="Email Newsletter icon, E-mail Newsletter icon, Email List icon, E-mail List icon" border="0"></span>
<font style="font-weight: bold; font-family:Arial; font-size:16px; color:#006699;">Sign up for our Email Newsletter</font>
<input type="text" name="ea" size="20" value="" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10px; border:1px solid #999999;">
<input type="submit" name="go" value="GO" class="submit"  style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px;">
<input type="hidden" name="llr" value="8iqy6igab">
<input type="hidden" name="m" value="1106253725979">
<input type="hidden" name="p" value="oi">
</form>
</div>
</div>
<!-- END: Constant Contact Stylish Email Newsletter Form -->
<!-- BEGIN: SafeSubscribe -->
<div align="center" style="padding-top:5px;">
<img src="https://imgssl.constantcontact.com/ui/images1/safe_subscribe_logo.gif" border="0" width="168" height="14" alt=""/>
</div>
<!-- END: SafeSubscribe -->

 

I spoke with Constant Contact support and they said it maybe something on the server was preventing it from opening the other page.  I have no idea what that maybe, because even on our home page, we have links that open up in new windows correctly.  Any ideas what may be preventing our Constant Contact window from opening? 

Thanks

6/25/2012 2:52:24 PM
Gravatar
Total Posts 18439

Re: Constant Contact Link

Hi,

The problem is that in ASP.NET WebForms which mojoPortal is built on, there can be one and only one form element in the page and one already exists wrapping the whole page so you can't add one inside it. However the problem can easily be solved by developing a custom usercontrol and using an <asp:Button you can set the postbackUrl property on the button to the remote url.

There is more detail on this in the article about Building a Simple PayPal Buy Now Feature.

However for your scenario where you want to open a popup page I'm not really sure of a good solution, possibly you could load a separate html page with the form inside an iframe.

Hope that helps,

Joe

6/25/2012 3:30:44 PM
Gravatar
Total Posts 5

Re: Constant Contact Link

Hi Joe,

Shortly after I created this thread, I created an iFrame to see if it would work, which it did.  Thank you for your response.

You must sign in to post in the forums. This thread is closed to new posts.