Skip to content

Error executing JavaScript command #7

Closed
@sco1

Description

@sco1

I'm receiving a JS error every time I attempt to modify a UI element.

For example, the demos from the readme:

myGUI = DOMdemoGUI;
mlapptools.fontColor(myGUI.TextArea, 'aqua');

Throws the following:

Error using matlab.internal.webwindow/executeJS (line 701)
Error executing JavaScript command:

	JavaScript error: Uncaught TypeError: dojo.query is not a function at line 1 column 18 in undefined

Error in mlapptools/getWidgetID (line 345)
                    widgetID = win.executeJS(widgetquerystr);

Error in mlapptools.getWebElements (line 104)
            widgetID = mlapptools.getWidgetID(win, mlapptools.getDataTag(uiElement));

Error in mlapptools.fontColor (line 54)
            [win, widgetID] = mlapptools.getWebElements(uiElement);

Error in trialcode (line 2)
mlapptools.fontColor(myGUI.TextArea, 'aqua');

On both Windows & Mac

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions