Skip to content Skip to sidebar Skip to footer

Submit And Photoslide Code Conflicts

I'm having some javascript conflict problem, and hope someone can help me out. I'm creating a page using a photoslide, so there are 3 divs on the page eg div id #item 1, 2 and 3. W

Solution 1:

Assuming that you are using jquery (based on the code you have listed) you could use ajax to call the email function without having to refresh/redirect the page (which is what happens when you submit the form right now)

Here is an example:

function aboardSubmit() {
    $.ajax({
        type: "POST",
        url: "example.php", // Change this to the path of your email script
        data: "aboard=aboard", // This is just an example, but you would fill it in with correct data
    });
}

Then in the html just remove the forms completely and place the following on your tags:

onclick="aboardSubmit()"

Post a Comment for "Submit And Photoslide Code Conflicts"