Passing an expression via ajax
Hi Fellow Developers!
Let me explain you my problem with a simple example:
I have 3 files. Index.html, script.js, ajax.php. The contents of these files are as follows:
alert( eval(exp) );
url : 'ajax.php',
What I want is based on the output of ajax.php file, the addition function should alert the number 15.
Can someone pls tell me what am I missing in above code?