Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Ajax does not seem to work

$
0
0

Hi,

 

Can't seem to load any data from my php page into my edge animate.

 

Here is my code:

 

.ajax({ url: 'http://server-x:7890/db.php',

  dataType: 'json',

  success: function(data)

  { sym.$("Output1").html(data);

  }

});

 

so I tried to debug it by changing it to

.ajax({ url: 'http://server-x:7890/db.php',

  dataType: 'json',

  success: function(data)

  { sym.$("Output1").html("Help");

  }

});

And getting nothing. I can write successfully with sym.$("Output1").html("Help") outside Ajax function.

 

My db.php works successfully and  returns

"Ajax." -- in my crome browser

 

Anyone know what could be wrong?


Viewing all articles
Browse latest Browse all 9897

Trending Articles