Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalext Reference issues #2

Open
tajashwin opened this issue Apr 10, 2014 · 8 comments
Open

Scalext Reference issues #2

tajashwin opened this issue Apr 10, 2014 · 8 comments

Comments

@tajashwin
Copy link

Hi Rovak,

When I download the latest application and deploy it, I get the following error on the Chrome console. Does the directFn have to point to a String and not a function.
Kindly advise.

Uncaught ReferenceError: Scalext is not defined 👍 9000/assets/examples/view/direct/Grid.js?_dc=1397123232544:18

Kind Regards
Ashwin

@Rovak
Copy link
Owner

Rovak commented Apr 10, 2014

Hi Ashwin,

The directFn must point to a function, this function is generated by including the /scalext/apiconfig script which is being done here

Could you check if you configured the classes correctly in the application.conf? They are located here

@tajashwin
Copy link
Author

Hi Rovak,

From the example that I downloaded yesterday, both these are present as I just checked. I am using the example without any changes whatsoever. I will give it one more shot now. Do you think something else could have gone wrong.

@Rovak
Copy link
Owner

Rovak commented Apr 11, 2014

Could you check if there are any errors when loading the page? Maybe some javascript files are not being loaded properly. This can be checked by opening the Chrome debugger and looking at the Network tab for any red filenames.

@tajashwin
Copy link
Author

Hi Rovak,

Here is exactly what I am doing and what I am seeing - I am downloading the zip file from https://github.com/Rovak/ScalextExample/archive/master.zip and running it after extracting to a folder. And this is what I see in the Chrome console. Kindly advise.

Uncaught ReferenceError: Scalext is not defined Grid.js?_dc=1397211929522:18
(anonymous function) Grid.js?_dc=1397211929522:18
Uncaught Error: The following classes are not declared even if their files have been loaded: 'ScalextApp.view.direct.Grid'. Please check the source code of their corresponding files for possible typos: '/assets/examples/view/direct/Grid.js ext-all-dev.js:10802
Ext.apply.onFileLoaded ext-all-dev.js:10802
(anonymous function) ext-all-dev.js:3355
onLoadFn

@tajashwin
Copy link
Author

Also my network tab looks perfectly fine - this is a local deployment.

image

@tajashwin
Copy link
Author

When I hit http://127.0.0.1:9000/scalext/apiconfig, this is what I get
Ext.direct.Manager.addProvider({"url":"/scalext/api","type":"remoting","actions":{"Form":[],"Upload":[],"Grid":[]}});

@Rovak
Copy link
Owner

Rovak commented Apr 18, 2014

Totally missed the update on this ticket, were you able to resolve it? Did you add the @Remotable annotations to the methods?

@tajashwin
Copy link
Author

Hi Rovak,

I am on holiday ... I will get back to you when i am at work.

Thanks n Regards
Ashwin
On 18 Apr 2014 17:36, "Roy van Kaathoven" [email protected] wrote:

Totally missed the update on this ticket, were you able to resolve it? Did
you add the @Remotable annotations to the methods?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-40822697
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants