This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI Composer - No Preview on new html



Hi,

I am using Code Composer version 6.1.0.00104. The problem I have is whenever I create a new html file (let's say new.html) in addition to the original app.html, the preview of the new.html is blank.

The reason for the new html is to create an Event for the widget, so when I click on an object defined in app.html, it pops up the entire contents of new.html. So far, it has been a blank window upon opening, even there are widgets in it.

This is what I added in the Javascript file app.js, where the function is called in the "onclick" Event in one of the widgets in app.html:

function OpenNewWindow() {
var newwindow = window.open('new.html');
newwindow.focus();
}

Since the preview is blank, the window is blank upon opening. Why is the preview blank?

Does GUI Composer only accept one html file? How do I make GUI Composer open a non-blank window when I click on an object?

Thank you for your help,

Sam

  • Sam Chen79 said:
    Since the preview is blank, the window is blank upon opening. Why is the preview blank?

    Do you mean that when you preview your GUI Composer app it is blank? If so, there is something wrong with that set up that needs to be figured out first. 

    If I add the code you show above for function OpenNewWindow() to an "onclick" Event in one of my textbox widgets, and I make a copy of app.html in the GC workspace (.GUIComposerWS folder) and name it new.html, I can get it to open the new window when I click in the text box.

  • Hi AartiG,

    Thank you for replying.

    I am able to preview app.html, but not the new.html that I added to the same root folder. The new.html has some widgets in it.

    When I click the widget created in app.html, the window does open, but there is nothing in the window either.

    Does GUI Composer allow two or more html files to coexist in the same project?

    Thank you,

    Sam

  • Sam Chen79 said:
    Does GUI Composer allow two or more html files to coexist in the same project?

    Yes that should be fine.

  • AartiG,

    It looks like there is something wrong with my GUI Composer project files. I loaded a previous project and tried what you did, and it worked fine.

    In addition, whenever I try to edit the app.js file in my new project, the Code Composer closes itself, and I have to re-open CCS.

    Thank you,

    Sam