RE: JS questions

2024-05-04 Thread MARK HARTNETT
Almost every error has been a null reference and Iv'e either moved the code to creationComplete or did as did as Maria said used ternary statements. The spark and mx comboBox always fails when the dataProvider is initially null. The JS checks to see if the labelField is blank and adds "label"

Server setting

2024-05-04 Thread MARK HARTNETT
Hi all, My db server is up and running on 8080 and I get CORS policy: No 'Access-Control-Allow-Origin' error on connection. I'm guessing this is a server setting but I haven't been able to find the solution. Access to XMLHttpRequest at 'http://localhost:8080/rootmodel/securityCommand.flex?r

Update Server setting

2024-05-04 Thread MARK HARTNETT
The CORs policy restricts unknown servers from exchanging data. Tomcat needs a CorsFilter.jar and CorsFilter defined in the Tomcat6/conf/Web.xml and an entry for localhost:3000. I did that and still the same error. When I press the login button, the connection is actually successful. I see it

Re: Update Server setting

2024-05-04 Thread Harbs
You can turn off CORS restrictions for localhost in your browser. That might make development easier. Harbs > On May 4, 2024, at 11:11 PM, MARK HARTNETT wrote: > > The CORs policy restricts unknown servers from exchanging data. Tomcat needs > a CorsFilter.jar and CorsFilter defined in the Tom

Re: Update Server setting

2024-05-04 Thread Piotr Zarzycki
How are you launching your app? Trough Build and Debug in Moonshine ? You need to probably run your all trough the local http server. Setup some using Xampp or any other tool. Piotr Zarzycki On Sat, 4 May 2024 at 22:12, MARK HARTNETT wrote: > The CORs policy restricts unknown servers from exc

Re: Update Server setting

2024-05-04 Thread MARK HARTNETT
In Eclipse both the app and tomcat are on localhost:8080 so CORS policy is not a problem. I'm running Tomcat using the Eclipse IDE which is on 8080 and moonshine is localhost:3000 As Harbs suggested, I downoaded an extension that unblocks Cors Policy but I still have to play around with it.