Announcement

Collapse
No announcement yet.

Newsletter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Newsletter

    I am trying to add the newsletter sign up code (the email box, subscribe/unsubscibe radio buttons, etc) to a blank page. I can get it to look fine, but the "GO" button does nothing when clicked.

    I copied/pasted the code between <!--START: FRAME_MAILLIST--> and <!--END: FRAME_MAILLIST-->

    What am I missing? Or is there a better way to add the sign up section to a blank page?

  • #2
    Without seeing all the code hard to tell what my be wronge.
    Off the top of my head you need to have the start and end form tags.
    See the sample code below:
    Code:
    <!--START: FRAME_MAILLIST-->
                          <form method="post" name="mailing" action="mailing_list.asp?action=add" onSubmit="return mailing_list();" style="margin: 0px; padding: 0px;">
                            <table width="202" cellspacing="0" cellpadding="0" border="0">
                              <tr>
                                <td class="menu-headers" colspan="2">[frame_mailinglist]</td>
                              </tr>
                              <tr>
                                <td class="catBorder"><table width="100%" border="0" cellspacing="0" cellpadding="4">
                                    <tr>
                                      <td class="menu-text" colspan="2">[mailinglist_text]</td>
                                    </tr>
                                    <tr>
                                      <td width="60"><input type="text" size="16" name="email" class="txtBoxStyle" onFocus="javascript:if (document.mailing.email.value=='enter email') {document.mailing.email.value='';};"  onBlur="if(this.value.length == 0) this.value = 'enter email'" value="enter email"></td>
                                      <td align="left" width="76"><input type="submit" name="www" value="[mailinglist_button]" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
                                    </tr>
                                    <tr>
                                      <td  class="menu-text" colspan="2"><input type="radio" name="subscribe" value="1" checked>
                                        [mailinglist_subscribe]</td>
                                    </tr>
                                    <tr>
                                      <td  class="menu-text" colspan="2"><input type="radio" name="subscribe" value="0">
                                        [mailinglist_unsubscribe]</td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="10"><img src="assets/templates/[template]/images/catL.png" width="10" height="10" alt=""></td>
                                      <td style="background: url(assets/templates/[template]/images/cat-baseM.png) repeat-x;"><img src="assets/templates/common/images/spacer.gif" width="10" height="10" alt=""></td>
                                      <td width="10"><img src="assets/templates/[template]/images/catR.png" width="10" height="10" alt=""></td>
                                    </tr>
                                  </table></td>
                              </tr>
                            </table>
                          </form>
                          <div><img src="assets/templates/common/images/spacer.gif" width="1" height="15" alt=""></div>
                          <!--END: FRAME_MAILLIST-->
    I know you said that you placed everything between the maillist tags but sometimes the form tags are just outside of the maillist tags.
    Last edited by Go Live; 07-25-2011, 08:53 AM.
    .
    Clayton
    Go Live Industries

    Comment


    • #3
      Perhaps you are missing the correct .js file in the common folder in templates that contains mailing_list() or the mailing_list.asp file.
      Elegant Weddings +
      www.elegantweddingsplus.ca
      www.elegantweddingsplus.com

      Comment


      • #4
        GoLive: I know you said that you placed everything between the maillist tags but sometimes the form tags are just outside of the maillist tags.
        I checked, and that code is included, so it must be something else.

        ElegantWeddings: Perhaps you are missing the correct .js file in the common folder in templates that contains mailing_list() or the mailing_list.asp file.
        I don't think that is the problem because the mailist "GO" button works correctlt in the side column.



        Here is the code that I inserted into a blank page:
        Code:
        <!--START: FRAME_MAILLIST-->
        <table width="100%" cellspacing="2" cellpadding="0" border="0" id="Table9">
                          <form id="Form2" onsubmit="return mailing_list();" action="mailing_list.asp?action=add" name="mailing" method="post"></form>
                            <tbody><tr>
                              <td colspan="2" class="menu-headers"><center>Mailing List</center></td>
                            </tr>
                            <tr>
                              <td colspan="2"><img alt="" src="assets/templates/v30014/images/dots.gif"></td>
                            </tr>
                            <tr>
                              <td colspan="2" class="menu-text">Subscribe to our Newsletter</td>
                            </tr>
                            <tr>
                              <td width="60"><input type="text" value="enter email" onblur="if(this.value.length == 0) this.value = 'enter email'" onfocus="javascript:if (document.mailing.email.value=='enter email') {document.mailing.email.value='';};" class="txtBoxStyle" name="email" size="16"></td>
                              <td width="76" align="left"><input type="submit" id="Submit2" onmouseout="this.className='btn'" onmouseover="this.className='btn_over'" class="btn" value="GO" name="www"></td>
                            </tr>
                            <tr>
                              <td colspan="2" class="menu-text"><input type="radio" id="Radio1" checked="" value="1" name="subscribe">
                                Subscribe</td>
                            </tr>
                            <tr>
                              <td colspan="2" class="menu-text"><input type="radio" id="Radio2" value="0" name="subscribe">
                                Unsubscribe</td>
                            </tr>
                          
                        </tbody></table>
        <!--START: FRAME_MAILLIST-->
        Last edited by Barry; 07-25-2011, 12:51 PM.

        Comment


        • #5
          Ok, I got it to work by copy/paste the code that GoLive posted here! I will have to do some testing to make sure I am not sending email subscribers to GoLive's site !!!!!

          Just curious, but was that code copied from a COMMON template from inside 3DCart? I ask because mine was copied from a revised template using FireFox (even though I didn't change anything that had to do with the newsletter).

          Comment


          • #6
            I see the code twice and no closing </form> tag

            Oh wait a minute now I see the closing tag now

            Code:
            <form id="Form2" onsubmit="return mailing_list();" action="mailing_list.asp?action=add" name="mailing" method="post"></form>
            Closing tag needs to be after the form contents.

            I would go to common folder and recopy your maillist code from the frame template
            .
            Clayton
            Go Live Industries

            Comment


            • #7
              Originally posted by Barry View Post
              Ok, I got it to work by copy/paste the code that GoLive posted here! I will have to do some testing to make sure I am not sending email subscribers to GoLive's site !!!!!

              Just curious, but was that code copied from a COMMON template from inside 3DCart? I ask because mine was copied from a revised template using FireFox (even though I didn't change anything that had to do with the newsletter).
              See the post above to get your code that matches your template. Mine has some extra pics that may not be on your site.
              .
              Clayton
              Go Live Industries

              Comment


              • #8
                Ok, I will do that. Thank You for your help, I think I'm on the right track now!

                Comment


                • #9
                  See the post above to get your code that matches your template. Mine has some extra pics that may not be on your site.
                  Just to update: Got it to work! I went ahead and copy/pasted the code from MY frame template inside 3DCart. Again, thank you GoLive.

                  Comment


                  • #10
                    You're welcome, Glad you got it.

                    Rock On!
                    .
                    Clayton
                    Go Live Industries

                    Comment

                    Working...
                    X