Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8776081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:57:54+00:00 2026-06-13T18:57:54+00:00

I am building a self serve email campaign app for a client. I would

  • 0

I am building a self serve email campaign app for a client. I would like the client to download the template they desire and the data will be sent to another page.

I am using the Jquery.Ajax to post the data, though I need it to select the content of the html template the client chooses:

Get template

function getTemplate(id){
$.ajax({
    type: 'get',
    url: 'ay/templates/Postcard_Template.html,
    data: 'EmailTemplate_id=' + id,
    success: function(data) {
     $('#shadow').fadeIn('slow');
     $('#popupContact').fadeIn('slow');
     $('#content').html(data);
}

});

Post to new page…

$.ajax({
    type: 'Post',
    url: 'wwww.Test.co.uk/test.html,
    data: 'EmailTemplate_id=' + id,
    success: function(data) {
        $('#shadow').fadeIn('slow');
        $('#popupContact').fadeIn('slow');
        $('#content').html(data);


});

I will then bind this to a form, any suggestions if this looks correct?

Thanks, Tom.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:57:55+00:00Added an answer on June 13, 2026 at 6:57 pm

    All I can see wrong is a single quote missing at gettemplate:

    function getTemplate(id){
    $.ajax({
        type: 'get',
        url: 'ay/templates/Postcard_Template.html',
        data: 'EmailTemplate_id=' + id,
        success: function(data) {
         $('#shadow').fadeIn('slow');
         $('#popupContact').fadeIn('slow');
         $('#content').html(data);
    }
    
    });
    

    and a single quote + bracket at post template:

    $.ajax({
        type: 'Post',
        url: 'wwww.Test.co.uk/test.html',
        data: 'EmailTemplate_id=' + id,
        success: function(data) {
            $('#shadow').fadeIn('slow');
            $('#popupContact').fadeIn('slow');
            $('#content').html(data);
        }
    
    });
    

    My suggestion if u are gonna bind this to a form u should serialize the form and pass it to the data parameter.
    Short example:

    <form id="menu">
        <select name="daymenu" size="3" multiple>
    
                <option value="1">maple</option>
    
                <option value="2">hickory</option>
    
                <option value="3">birch</option>
    
        </select>
    </form>
    

    then adjust your ajax data:

    data: $("#menu").serialize(),
    

    Good luck Tom 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To make story short, i'm building self-learning banner management system. Users will be able
I'm building a self hosted WCF service. I'm building a special data structure for
I'm building an app that pulls data from a remote server and stores them
I'm building a self-hosted web app using CodeIgniter and I need a nice GUI-ified
I'm building an application that's self-hosted, and I'd like to have some form of
Im building a WPF 3.5 desktop app that has a self-hosted WCF service. The
I am building xml rpc service using twisted and I would like to use
Hi i have the following super class class Room: def __init__(self,building,floor,number): self.building=building self.floor=floor self.number=number
I am currently building an application in Java on Eclipse as a self help
I have a self hosted TCP based WCF service. I am now building a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.