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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:34:23+00:00 2026-06-15T20:34:23+00:00

I am sending an ajax call via the following: var response = sendViaAjax(str,’Session/delete_From_Session_AJAX.php’) ;

  • 0

I am sending an ajax call via the following:

var response = sendViaAjax(str,'Session/delete_From_Session_AJAX.php') ;

    alert('response:|'+response+'|') ;

    if(response == 'complete') {//returns complete if the table was not to be rewritten
        el = this ;
        while(el.tagName !== 'TR'){
            el = el.parentNode ;
            alert(el.tagName) ;
        }
        removeChildren(el) ;
        removeElement(el) ;
    }else if(response!= 'complete') {
        alert(response+' is not equal to complete') ;
        parseHTMLStr(response,window.cur_tbl,1,0,0) ;       
    }

The relevant code from delete_Session… is

if( isset($_POST['REWRITE']) ) {
    include("return_Tabular_Data.php") ;
}else{
    echo 'complete' ;
}

The alert I am getting from the formatted string is:

complete
         is not equal to complete

Something must be added but I cannot find where. I use this function extensively and have never had a similar issue.

The only place I modify the response in sendViaAjax is

var RESPONSE = xmlhttp.responseText ;
RESPONSE = RESPONSE.replace(/^\s+/, '');
return RESPONSE ;
  • 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-15T20:34:24+00:00Added an answer on June 15, 2026 at 8:34 pm

    Do you have whitespace after your closing ?> tag on the server-side?

    Ideally, when using AJAX you want to exit specifically when you want output to end. Or you can just not put ?>, since it’s optional at the end of the file.

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

Sidebar

Related Questions

I am sending post data via ajax, and that data looks like this: var
I have a AJAX call from my webpage sending the following data to my
I am sending quite a few values with my AJAX call, like this: var
I have index.php page which makes a ajax call to thread.php by sending the
I sending ajax request from a jQuery file like below, which expects response in
I am sending an AJAX request to server and retrieving a response as a
I have a jquery function for sending email with ajax request; function sendMail(from,to,subject,message){ var
I am sending an ajax call to another page. I want to get a
I'm sending an Ajax call to a server and trying to call another function
I am using JQuery ajax call for sending synchronized call to server and want

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.