Can't display data returned from AJAX call
Hi,
This result; [{"bakfile":"~\/DB-Web\/accounts\/ACCOUNTS_DUMP_06.16.14_11.30.27.sql.gz"},{"bakfile":"~\/DB-Web\/contacts\/CONTACTS_DUMP_06.16.14_11.30.07.sql.gz"}] is what is returned from the PHP code shown below. The <script> is what I am trying to read the "data" from. It gives me "bakfile undefined" as the result. I'm thinking this is some stupid thing I am doing but I can't figure it out. Any help here appreciated !!! Code:
<script type="text/javascript" > Code:
|
The function radioPick expects a parameter but you do not give it, do you?
|
[SOLVED]
I went back and reviewed a JSON tutorial. I needed to use JSON.parse() to access the 'data' returned from AJAX. The function radioPick expects a parameter but you do not give it, do you? The 'data' returned by AJAX is the parameter. Thanks for the help. R Code:
<script type="text/javascript" > |
All times are GMT -5. The time now is 05:37 AM. |