Re: Anybody familiar with JavaScript: Page is empty

2014-01-10 Thread Igor Korot
Hi, On Fri, Jan 10, 2014 at 1:34 AM, trojactory wrote: > Hi Igor, > > You can solve this in three ways: > > 1. Return a JSON object from Django as a string using dumps: This will keep > your HTML file unchanged. The JSON file might not be exactly in the form you > want. But if you know javascript

Re: Anybody familiar with JavaScript: Page is empty

2014-01-10 Thread Igor Korot
Hi, Mario, On Fri, Jan 10, 2014 at 1:25 AM, Mario Gudelj wrote: > It's hard to tell what the issue is from what you've posted, Igor. Have you > looked at Chrome inspector to see if there are any js errors in it? Or have > you tried inspecting the page to see if it's not some weird css issue? Try

Re: Anybody familiar with JavaScript: Page is empty

2014-01-10 Thread trojactory
Hi Igor, You can solve this in three ways: 1. Return a JSON object from Django as a string using dumps: This will keep your HTML file unchanged. The JSON file might not be exactly in the form you want. But if you know javascript then you c

Re: Anybody familiar with JavaScript: Page is empty

2014-01-10 Thread Mario Gudelj
It's hard to tell what the issue is from what you've posted, Igor. Have you looked at Chrome inspector to see if there are any js errors in it? Or have you tried inspecting the page to see if it's not some weird css issue? Try placing usb_data into html outside of js or console.log data var to see

Anybody familiar with JavaScript: Page is empty

2014-01-10 Thread Igor Korot
Hi, ALL, I have a little problem. I'm trying to connect the Django based application with jQuery/jQWidgets (specifically jqxGrid). Here's what I've done: This is my views.py file: [code] def displayusbtable(request): usb_list = USB.objects.all() return render_to_response('html/index.