in reply to Re: JSON Return Values
in thread JSON Return Values

Thanks.

I assumed no SON errors because I was able to capture the data in an IFrame:

var data = {"DD":"2019-01-01","DP":"0000-00-00","MD":"120.00","M +J":"2018-01-01","address1":"1327 North St","address2":"Ste 242","busi +ness":null,"city":"Deluth","comments":"This is an insert test with ac +tion converted to sub calls","email":"tj@resolve.net","forename":"Tre +vor","id":65,"lastname":"Johnson","password":"xmk1041","phone_cell":" +(517) 269-1014","phone_home":"(414) 956-9219","pin":"TbwmJ","position +":"General Member","state":"MN","user_id":65,"username":"bwm65","zip" +:"36925-6647"}; loadJSONFormData(data);

and load in to form fields using loadJSONFormData(data). <.p>

So as I said, I assumed no error in the JSON data

I will explore further

Replies are listed 'Best First'.
Re^3: JSON Return Values
by tultalk (Monk) on Mar 21, 2018 at 10:27 UTC

    And checking the console.log reveals:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.xxx.org/httpsdocs/cgi-bin/update_tables.cgi?action=updatetable_167&kind=0&searchterm=19. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

      I added this to Firefox and works fine

      https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/

      Thanks. Now to get back to the main issue of loading the form fields

      Gad! What a diversion

        Not so fine.Every time I run test I have to remember to click new button on browser after the test fails.

        So I guess I have to get this set upwith the sevice provider