I’m getting a fairly repeatable Session Javascript error. It is:
[quote]Could not execute returned javascript: ‘undefined’ is not an object (evaluating ‘Xojo.controls[‘Hu6qtwbK’].setVisible’)
Source: Xojo.controls[‘Hu6qtwbK’].setVisible(true);
Xojo.controls[‘Hu6qtwbK’].refresh();[/quote]
Is there a way to evaluate what object ‘Hu6qtwbK’ is? I’m setting the visibility of a bunch of things so just looking at the visibility source code isn’t helpful. Wondering if I can narrow it down somehow.
In Open or Shown ?
As a general rule when do you do it ?
Just trying to help narrow down what might be done differently & there fore possibly the culprit
It sounds like you’re trying to possibly manipulate something that has not arrived in the browser yet - hence the control doesn’t exist & you get an error.
What Norman said I was getting similar things. What I was doing was creating a page and setting things up in the Open event, but since it was a large page it was possible that data would change and there would be updates sent to the page BEFORE the shown event had fired. Make sure you dont make any changes to the page elements until after their shown event has fired. In my case the solution was easy, just register with the data service for the object in the shown event rather than the open event. But it might require other design changes.