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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:30:33+00:00 2026-06-15T01:30:33+00:00

Basically, I want to load the content of a page, while also passing it

  • 0

Basically, I want to load the content of a page, while also passing it some POST parameters.

Now, you may say, I use .post, and then just use something like $("#div").html(data), but the problem is I want the functionality of the only-select-one-element thing in .load. Can that be used with .post somehow, perhaps?

  • 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-15T01:30:35+00:00Added an answer on June 15, 2026 at 1:30 am

    No, there is no method for loading content with a POST request.

    You can make a POST request and place the result in the page. Example:

    $.post(
      'page.html',
      { post: 'data' },
      function(data){
        $('#someElement').html(data);
      },
      'html'
    );
    

    Edit:

    To use a partial result of the returned code, you can parse the result just as the load method does:

      function(data){
        var c = $(data);
        $('#someElement').append(c.find('#somePart'));
      },
    

    Edit 2:

    As Jack showed, there is actually a way to make the load method make a POST request. (I missed it because of the misleading documentation.)

    Example with a partial use of the result, sending the data as an object triggers the POST request method:

    $('"someElement #somePart').load('page.html', { post: 'data' });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to load some content using AJAX and Shadowbox Basically I would
basically I want php to decide which version of the site pieces to load
I'm creating a website where I'm doing ajax requests to load some dynamic content
Basically I want to load a HTML document and using controls such as multiple
Basically what i want to say is can we decide among the list of
I basically want something like: TextView Button Button . . . TextView TextView SeekBar
I basically want to setup a relationship similar to Netflix's DVD rental model. There
I basically want to do: git checkout branchA git checkout -b branchB <commit_id> which
I basically want the same functionality as facebook, twitter and all those other infinite
I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not

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.