I've been looking everywhere for an example of how to create an Angular 2 component using Plupload with TypeScript and accesses Plupload on a CDN. If you have any related information, please post it.

djot wrote:


    function (id) {

(without "$")

Thanks! The problem indeed was the "$" and I replaced all of them that originally appeared on that page with a new arbitrary name and thus  I now have

    function myPL_FunctionName(id) {


And I am now able to use both the now-altered original code and jQuery at the same time.


(4 replies, posted in General discussion)

Have you tested it locally?  Have you tested it by forcing it to use different runtimes individually?


//runtimes: 'gears,html5,flash,silverlight,browserplus',
runtimes: 'html5',

From the Plupload download, I have taken the plupload/examples/custom.html file and added jQuery and something that uses jQuery.  It always blows up when it loads unless I comment the following out:

function $(id) {
    return document.getElementById(id);   

Only added code is:

<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>

AND within the javascript code on the page:

$(document).ready(function () {

            $('#hello').click(function () {


What does this $(id) function do and why does it break my ability to use jQuery on that page?  And is there a way for me to go forward using jQuery or must I relearn javascript here?

Thank you.