Am I doing something wrong?
In preview it works, but when export, the json contents it´s not showed in the line marked below.
Acts.prototype.LoadAddress = function (zipcode){
var request = new XMLHttpRequest();
request.open('GET', '//viacep.com.br/ws/'+zipcode+'/json/', true);
request.onload = function() {
cr.logexport(request.status); // 200
if (request.status >= 200 && request.status < 400) {
cr.logexport(request.responseText); // show json content
this.dataJson = JSON.parse(request.responseText);
----> cr.logexport(this.dataJson.logradouro); // undefined when exported[/code:1yldme68]
Demo: [url]http://kiduca.com/frc/zipcodePlugin/[/url]
When click in "Find address", the form should be loaded with the address from zip code.