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

  • Home
  • SEARCH
  • 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 6078525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:50:37+00:00 2026-05-23T10:50:37+00:00

I am currently using jquery ajax to POST data to a php file which

  • 0

I am currently using jquery ajax to POST data to a php file which uses that data to build and output a jQuery-based gallery.

the "links" that are clicked on to trigger the ajax are:

<li class="portfolioLink" id="identity">identity</li>
<li class="portfolioLink" id="mobile">mobile</li>
<li class="portfolioLink" id="web">web</li>

and a sample of the jQuery ajax is:

$("#identity").click(function(){
    $.ajax({
        url: 'portfolio.php',
        type: "POST",
        data: ({data: 'portfolio/design/identityDesign/*'}),
        success: function(data){
        $("#content_middle").html(data);
        }
    });
    $("#identity").addClass('active');
    $(".portfolioLink:not(#identity)").removeClass('active')
});

(this jquery is basically iterated 2 more times with different data:)

This is working fine, except that the output of portfolio.php (the gallery builder) is loaded into #content_middle as the output’s JavaScript is being processed (so it looks like the gallery is being built live in #content_middle). Seeing it happen will probably make more sense: http://www.frende.me/design.php

What I want to happen is for the gallery to load fully built.

  • 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-05-23T10:50:37+00:00Added an answer on May 23, 2026 at 10:50 am

    How about you hide the element, add the new html to it and show it again? Like this:

    $("#identity").click(function(){     
        $.ajax({         
            url: 'portfolio.php',         
            type: "POST",         
            data: ({data: 'portfolio/design/identityDesign/*'}),         
            success: function(data){ 
                $("#content_middle").hide();       
                $("#content_middle").html(data);         
                $("#content_middle").show();
            }     
        });     
    $("#identity").addClass('active');     
    $(".portfolioLink:not(#identity)").removeClass('active') }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the JQuery AJAX function to deliver data to a PHP doc. Currently,
I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type:
I'm currently using jquery's ajax feature or whatever they call it. To load data
I am currently using Valums JQuery File Upload plugin. The plugin is very convenient
I am currently using PHP/MySQL and the jQuery timeago plugin. Basically, I need to
I want to create external JS file for the form and post that data
Based on: Abort Ajax requests using jQuery ... In inventory_search() - before the ajax
For a website I am building, I am using jQuery to post data to
I am currently writing an Edit Account module. Using jQuery.post(); I can successfully update
Currently Im trying to do ajax request using jQuery Mobile. I`m trying to use

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.