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 8893173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:10:51+00:00 2026-06-14T23:10:51+00:00

my patience with ajax is gone. no matter cannot get this working. To be

  • 0

my patience with ajax is gone. no matter cannot get this working. To be honest, I have not tried this outside a DIV because the intention is specifically use AJAX to load and post a form across to a page within the confines of said DIV.

Many Thanks for the advancement of what is to come.

The #contentmainpane is a DIV. I have …

if (isset($_POST['l'])) {
echo $_POST['l']; }
else { 
echo 'nope'; }

… in the CART page loads fine but does not receive the post from the BOOK page(so I get nope echoed on CART.PHP within #contentmainpane DIV).
Here is the offending BOOK page code:

<form id="form1" method="POST">
<input id="l" name="l" size="45" type="text" value="book">
<input id="submit" name="submit" value="save" type="submit">
</form>


<script>
$('#form1').submit(function(event){

event.preventDefault();

var book = $('#book').serialize();
var cart = '/content/pages/cart.php';
var formdata = {"book": book}


$.ajax({

type: "POST",

url : "/content/pages/cart.php"

data: formdata,

success: function(msg){

$("#contentmainpane").load(cart);

}
});
});
</script>
  • 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-14T23:10:53+00:00Added an answer on June 14, 2026 at 11:10 pm

    The problem has been resolved

    Thank you all for your suggestions and efforts. A user on codingforums resolved this ajax post issue.

    Here’s the thread http://www.codingforums.com/showthread.php?p=1294868#post1294868

    Best Regards to all coders

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

Sidebar

Related Questions

This seems simple but I've exhausted my Google search patience. I have a RelativeLayout
First try with ajax, please have patience. <html> <script type=text/javascript src=jquery-1.4.2.min.js></script> <script type=text/javascript> $(document).ready(function()
Have patience with me, I'm still learning Cocoa Touch. Other -viewDidLoad not being called
I hope someone has the patience to look at this..... I have a flash
Greetings, I hope someone has the patience to read this. I have a setup
I'm not very familiar with triggers so thank you for your patience. I have
I'm very new to C# so please have some extra patience. What I am
This is an output of Boost.Test when test case failes: bjam toolset=msvc ...patience... ...found
I'm an impulsive coder by nature and have started learning the virtue of patience
Totally new to Obj-C, so thanks for patience. :P Because I'm beginner, I will

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.