Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Script worked partially; onclick events still don't work #30

Open
@andreszs

Description

@andreszs

Hi, I have this meta tag in the header in order to allow all type of scripts to run:

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src * 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src * data: 'unsafe-inline'; connect-src * 'unsafe-inline'; frame-src *" />

Yet all the onclick events from dynamically generated (with jQuery) objects with this method:

$('#frm_login').append('<button class="uibutton blue" id="btn_login" onclick="javascript:doLogin()">Login</button>');

are failing miserably. They do worked when using the old WP8 platform in Cordova, but not anymore with the Windows platform when compiled for WP8 (appx).

Notice the .append() method works now thanks to the winstore-jscompat.js file, but not the events. This is really frustrating, I'm about to return to the discontinued WP8 platform unless I find a solution soon. Thanks in advance for your cooperation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions