This is a migrated thread and some comments may be shown as answers.

jQuery/AsyncUpload problem - 'is not a function'

1 Answer 63 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Beata Green
Top achievements
Rank 1
Beata Green asked on 20 Dec 2011, 10:54 AM
Hi,

I have AyncUpload control on the page.
<telerik:RadAsyncUpload MaxFileInputsCount="1" MaxFileSize="2097152" AllowedFileExtensions="bmp,jpg,jpeg,gif,png"
                                    ID="ImageAsyncUpload" OnFileUploaded="PhotoUploaded" TargetFolder="~/Test" OnClientFileUploadFailed="OnPhotoUploadFailed"
                                    OnClientFileSelected="OnPhotoSelected" OnClientValidationFailed="PhotoValidationFailed"
                                    OnClientFileUploaded="OnPhotoUploaded" runat="server">
</telerik:RadAsyncUpload>
When I remove it, all my jQuery functions work properly.
When I add it I get the error message: '.something is not a function', e.g. '.tabs is not a function'.
function pageLoad() {
$(".popup-wizard #tabs").tabs();
}

When I remove this definition, I get next error of the next line of code in this js file.
$(".datepicker").datepicker is not a function

/**///dtpicker
    $(".datepicker").datepicker({
        showOn: "button",
        buttonImage: "/assets/img/icon-calendar-small.gif",
        buttonImageOnly: true,
        buttonText: 'Pick a date',
        showOtherMonths: true,
        dateFormat: 'dd/mm/yy',
        firstDay: 1
    });

I try to copy my jQuery code to different places, and the result is the same.

Is it known issue?

1 Answer, 1 is accepted

Sort by
0
Beata Green
Top achievements
Rank 1
answered on 20 Dec 2011, 12:00 PM
Problem resolved.

It was the instruction: var $ = $telerik.$;
I had to remove it.
Tags
AsyncUpload
Asked by
Beata Green
Top achievements
Rank 1
Answers by
Beata Green
Top achievements
Rank 1
Share this question
or