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

Loading forever #88

Open
cscopp opened this issue Oct 27, 2015 · 7 comments
Open

Loading forever #88

cscopp opened this issue Oct 27, 2015 · 7 comments

Comments

@cscopp
Copy link

cscopp commented Oct 27, 2015

I hate to even ask as I'm sure you've heard this before, but my grid just says loading forever and never displays anything. I can see the outline of the grid, but that's it. I've checked my files, tried to make it a simple as possible, checked db connection (user root with no password). I'm a PHP developer, but definitely not a JS guy. I'm sure this must be something simple I'm overlooking that hopefully you can tell me in 5 seconds.

Thanks,
Chris

@optikalefx
Copy link
Owner

So we need to do some debugging. First open the Chrome Developer tools and look at the Console tab. Are there any errors there?

Also, open the dev tools and go to Networking, and look at the ajax requests (the XHR tab). Click on each one and see what PHP is saying about the issues.

@cscopp
Copy link
Author

cscopp commented Oct 27, 2015

I see nothing in console. The network XHR tab IS displaying my data from the db (product info) so it must not be a DB issue right? See attached screen shots.

console
network

@optikalefx
Copy link
Owner

So you can see the problem is that that response is not PURE JSON. It's got all that HTML crap at the top. You need to go to your PHP and fnd out why all that is spitting out. And kill it.

@cscopp
Copy link
Author

cscopp commented Oct 27, 2015

Ahh, OK, I'll try that. This is a local WAMP server obviously, what I really is to run it on a friend's IIS server. I want to integrate into his site using a bootstrap theme. On that server, it displays the column headers, but no data. That console says "Uncaught TypeError: $(...).grid is not a function" for:

<script> $(function() { $(".products").grid(); }); </script>

@optikalefx
Copy link
Owner

That Error sounds like the grid JS file is not being included, or not included correctly

@cscopp
Copy link
Author

cscopp commented Oct 27, 2015

OK thanks. I'll try to see if it's in he wrong place or something.

@acastillo85
Copy link

I'm having the same issue. grid just says loading forever and never displays anything.

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

3 participants