| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I have a problem because the project in windows build and tested in emulator and works very good , so I export it like .zip and later on MAC I just imported like new project and later follow the steps that we need to do for build in test in the emulator
PRODUCT> MACBUILD> NATIVE
and the emulator opened like always but when the splash screen finished show me this error
**Image removed for security reasons**
my friend told me that we should check in the main form actions "Init" and here we invoke the function "crearloading" (means MakeLoading)
**Image removed for security reasons**
**Image removed for security reasons**
and here is the function , he and I don't know what is the exactly problem with that because the loading on iOS maybe make some problems but how we use a customized loading the problem not should appears **Image removed for security reasons**
@Alison Skinnew
You need to call the function function crearLoading() in the form postshow instead of init.
At the time init you may not getting instance of the form and it's widgets. It will be always null and undefined. Call the function in postshow and it will work for you.
Thank you so much, Now the loading circle appear, but seems that the same problem appear when I go to another form , so I will have to fix them put the posthow the invoke function .
@Twvcey Rvndvll Hello I am doing some fix in he code in Mac but I have a behavior that when I tested in android device are right but in the Mac simulator of Xcode not show the correct behavior
**Image removed for security reasons**here is a product section where each box show a segment with rows of the different products like product1, product2 , product3 , when you make click or tap they release the segment but in Mac I don't know what happens, because this segment in my Templates invoke function ClickProducto , please if you have the answer please reply me .
**Image removed for security reasons**
here is the correct behavior, how you can see when I did a click the segment with the rows appears , but I don't what happens
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns null for object references that are blank. An object is expected somewhere and wasn't provided. So, you will get null is not an object error if the DOM elements have not been created before loading the script. In JavaScript , null is not an object; and won't work. You must provide a proper object in the given situation.
We can resolve this type of issues by adding an event listener that will notify us when the page is ready. Once the addEventListener is fired, the init() method can make use of the DOM elements.
document.addEventListener('readystatechange', function() {
if (document.readyState === “complete”) {
init();
}
Hello @Awwen Millew thank you just we can resolve this a log time ago. but your answer was right
Can you go to my latest question about a behavior in ios about swipe menu?