jQuery UI Widgets Forums Editors FileUpload Control not working

This topic contains 2 replies, has 2 voices, and was last updated by  anubis76 9 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Control not working #67016

    anubis76
    Participant

    Hi.

    I have tried the code in the examples to create the FileUpload widget. No matter how I try to set any properties, I just keep getting
    “uncaught exception: Invalid property: template”

    I am using the latest download of jqWidgets.
    My code is simple:
    Within the $(document).ready(function(){….

    $('#jqxFileUpload').jqxFileUpload({ browseTemplate: 'success', uploadTemplate: 'primary', cancelTemplate: 'danger', width: 300, uploadUrl: 'imageUpload.php', fileInputName: 'fileToUpload' });

    And in my HTML:
    <div id="jqxFileUpload"></div>

    Please tell me if I am missing something?

    Control not working #67058

    Dimitar
    Participant

    Hello anubis76,

    Are you sure you have updated all files to the latest version (3.7.0), including jqxbuttons.js? As you can see from the following demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxfileupload/javascript-file-upload-button-templates.htm?arctic, there are no issues on our side.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Control not working #67085

    anubis76
    Participant

    Hi Dimitar,

    Thank you for your reply. I re-checked everything and found the problem. I was using some of the script files from the previous jqWidgets as I had re-used code from a previous project that used the earlier version of jqWidgets. After replacing jqxbuttons.js from 3.7.0, it started working! Now I feel dumb.

    Thanks again 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.