View Full Version : Can't view any content

1 Feb 2012, 7:20 AM
Just getting started and can't view any designer generated content. I have WAMP server installed and put a test project and some examples from github in the www folder. I get blank pages with empty body tags. It links to the extjs library and localhost designer.js. I must be missing something but can't figure out what. Any ideas? Thanks.

1 Feb 2012, 8:14 AM
You can check the Web Inspector or any debug tool to see any javascript errors, nextwork tab if expecting response etc.

1 Feb 2012, 6:48 PM
Yeah it could be a lot of things. More information could help us help you. Project preferences you can select your url prefix which helps designer know a bit more.

2 Feb 2012, 11:24 AM
Did you select a view?

In the first project i exported i also got an empty page, i noticed that the page title was the name of my project. I forgot to select a view to start with. In the project inspector panel on the right, select (A) application, in the views parameter select your viewport/form/panel or whatever you like. Last thing, tick the autoCreateViewport property to enabled.
Then export and see if it works.

3 Feb 2012, 5:32 AM
I can see this as potentially being something very puzzling for anyone not savvy with Ext JS or Designer. A resultant blank page isn't very telling, and it's not immediately obvious where and what the autoCreateViewport parameter is.

Though I can be a dunce at times, I'm by no means a newcomer to Ext JS, and admittedly I was caught by this. I sat there wondering WTF was going on after repeated changes and refreshing only to end up with a blank page each time.

Perhaps adding a little tip icon beside Application in the Project Inspector might be helpful -- similar to the Initial View or Error notice icons that appear -- or even as a note in the Project Settings modal.

3 Feb 2012, 6:23 AM
The next build will have autoCreateViewport turned on by default.

5 Feb 2012, 6:17 AM
I followed the "Getting Started" word by word, as far as I can tell, yet when I point my browser at the designer.html using my local web server (Apache), I see a blank page.

To simplify things, I created a "Hello World" project, where I tried to just show a text inside a panel in a window. No joy. And yes - I did check the browser error console (checked in FF & Chrome, on Debian). No errors, no warnings, no messages, no debug info. Just Nothing. :((

Having seen what was written above, I tried to set autoCreateViewport - no good. Using a ViewPort instead of the window did not help either.

I'm sure there's something very basic I'm missing here. The point is, I have no way to tell what it is, except for maybe trying to strip down your example code, which I don't really want to do. I think a basic to-do list for starting a project would help here.


5 Feb 2012, 7:47 AM
Update: After closing & re-opening the project, I set autoCreateViewport again and this time it worked.

As I said, I think a basic to-do list for starting a project would help here. It should contain just the essentials, not a full-fledged example which makes it hard to follow once you need to get some real work done.
A FAQ could also come in handy.


5 Feb 2012, 8:16 PM
Yeah we have a lot of getting started stuff to write. In fact I'm working on a video tutorial just now.

18 Feb 2012, 2:44 AM
The next build will have autoCreateViewport turned on by default.

The update pushed out on Feb 15th (Sencha Designer 2.0.0 beta build 268) doesn't yet appear to have autoCreateViewport enabled by default. Is that change still forthcoming, or was it decided against for some reason?

18 Feb 2012, 11:28 AM
An existing project may already be set in its ways and not pick up that behavior. ANy new projects will however.

The way that it works is whenever you mark a component as the initial view it will set autoCreateViewport to true.