Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript ajax call returns garbage

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #204242
    triplebit
    Participant

    I use the following code that ends up with”success” but the return data is as follows(see the html text):
    (it continues and I truncated, but I beleive you can get the idea). The real data that is beeng echoed from the php is “abc”
    “<br />
    <font size=’1′><table class=’xdebug-error xe-notice’ dir=’ltr’ border=’1′ cellspacing=’0′ cellpadding=’1′>
    <tr><th align=’left’ bgcolor=’#f57900′ colspan=”5”>( ! ) Notice: Undefined variable: innerLineIndex in C:\AAAA WEB MASTER\webroot\responsive-design-helper\wp-content\plugins\aaa-responsive-design-helper\build_total_css.php on line <i>53</i></th></tr>
    <tr><th align=’left’ bgcolor=’#e9b96e’ colspan=’5′>Call Stack</th></tr>…

    Few more detaisl:
    1.The problems exists nomatter what data being sent to the server.
    2. If I echo the data right after the beginning of the server php file, it works fine
    3. I have some other ajax calls in the same project that end up right.
    Does anyone have any idea whats wrong?

     jQuery.ajax({       
                 type: "POST",
                 url: site_url +  "/wp-content/plugins/myplugin/build_total_css.php",                                                     
                 data:{'data':"any data" },
                 success: function(data, status) {
                 alert(data);
                 },                
                 error: function(xhr, desc, err) {
                 console.log(xhr);
                 console.log("Details: " + desc + "\nError:" + err);
                 alert('error');
                 }
      }); // Ajax Call
    

    Regards
    I. Sher

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.