I am creating a simple widget with the same function as the following link:
http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=query_nomap
I just want to open this widget, click one button to do the query, and display the query results inside the widget pane (I will use a different url later). Here are my codes for widget.js and widget.html. I am confused why my codes are not working. My question is how to make the results display in the widget.html or widget pane? Why the JS API codes are not working in the