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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:08:37+00:00 2026-06-12T03:08:37+00:00

I am getting the jsong response from php backend like feedback = {html:<form action=’someurlonrest’

  • 0

I am getting the jsong response from php backend like

  feedback =   {"html":"<form action='someurlonrest' method='post' style='margin-left:100px;' ><div style='padding: 10px;'>Ticket No<input type='text' id='tkt' name='tkt' ><\/div><div style='padding: 10px;'>somthing <input type='text' id='smthing' name='smthing' ><\/div><div style='padding: 10px;'>Query about <input type='text' id='query' name='query' ><\/div><input type='submit' class='classname' ><\/form>"}

why i am getting undefined message whenever i am trying to do

alert(feedback.html);

Updated

function get_fb_success(){

    var feedback = $.ajax({
        type: "POST",
        url: "feedback.php",
        async: false
    }).success(function(){
        setTimeout(function(){get_fb_success();}, 100000000000000000);
    }).responseText;
    alert(feedback);
    //$('#log_success').val('');


    $('#log_success').html(feedback.html);
    //$('div.feedback-box-success').html('success feedback');
}
  • 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-12T03:08:38+00:00Added an answer on June 12, 2026 at 3:08 am

    The answer to your question is that you can see the object value you are looking for. See the fiddle here: http://jsfiddle.net/aWC8G/

    Below that, your ajax function looks a little strange. I think it should look like this:

    function get_fb_success(){
    
        var feedback;
        $.ajax({
            type: "POST",
            url: "feedback.php",
            async: false,
            dataType: 'json',
            success:function(data){
                feedback = data;  //assuming you are 
            }
        });
        alert(feedback);
        //$('#log_success').val('');
    
    
        $('#log_success').html(feedback.html);
        //$('div.feedback-box-success').html('success feedback');
    }
    

    Of course is is not an asynchronous call to the server, if you want real async ajax, do it like this (which should work since your function is not actually returning any value:

    function get_fb_success(){
    
        $.ajax({
            type: "POST",
            url: "feedback.php",
            dataType: 'json',
            success:function(feedback){
                $('#log_success').html(feedback.html);
            }
        });
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting a response from my php jquery / json / ajax.
I am getting json response from this google api service to get reverse geo
I am getting JSON response from the server..Inside that JSON string i am having
I am getting a JSON in response from server: { width: 765, height: 990,
I am getting json response like this {item_id:1,item_title:Item 1}{item_id:2,item_title:Item 2} how would I parse
i am getting the JSON response like this : [ {IndexID:1,IndexName:Consumer Confidence Index(CCI),IndexValue:34.79,Month:10,PercentageChanged:0,Position:0,Year:2011}, {IndexID:1,IndexName:Consumer
This is the code I am using to get the JSON response from PHP:
I'm having trouble getting a response back from a Jquery ajax call... (It's a
I am using a class to use HTTP POST & getting data from a
I've JSON response from php file. [{ NAME: Kiev }, { NAME: Kiev metro

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.