SCRIPT438: O objeto não oferece suporte à propriedade ou método 'j
Olá, estou a integrar o FileManager (esse aqui) ao CKEditor numa aplicação asp.net no entanto me deparei com esse erro informado no título e não sei nem como tratá-lo.
O Código abaixo é o que aparece no momento do erro.
jQuery(document).ready(function() {jQuery('#ctl00_content_newsGridView').jqGrid({
url: '/news/127/~/connectors/ashx/filemanager.ashx?jqGridID=ctl00_content_newsGridView'
,editurl: '/news/127/~/connectors/ashx/filemanager.ashx?jqGridID=ctl00_content_newsGridView&editMode=1'
,datatype: 'json'
,page: 1,colNames: ["","Título","Url","Criado","Status"]
,colModel: [{"name":"NewsId","key":true,"hidden":true,"index":"NewsId"},{"sortable":false,"name":"Title","width":130,"search":false,"formatter":formatEdit,"index":"Title"},{"name":"Url","width":100,"index":"Url"},{"name":"Created","width":45,"index":"Created"},{"name":"IsActive","width":30,"stype":"select","searchoptions":{"value":"1:Ativo;0:Inativo"},"index":"IsActive"}]
,viewrecords: true
,scrollrows: true
,pager: jQuery('#ctl00_content_newsGridView_pager')
,autowidth: true
,loadError: jqGrid_aspnet_loadErrorHandler
,hoverrows: false
,scroll: 1
,rowNum: 20
,rowList: [10,20,30]
,postBackUrl: "__doPostBack('ctl00$content$newsGridView','jqGridParams')",editDialogOptions: {"recreateForm":true,errorTextFormat: function(data) { return 'Error: ' + data.responseText }},addDialogOptions: {errorTextFormat: function(data) { return 'Error: ' + data.responseText }},delDialogOptions: {},searchDialogOptions: {},sortorder: 'asc'
,hidegrid: false
,viewsortcols: [false,'vertical',true]})
.navGrid('#ctl00_content_newsGridView_pager',{"add":false,"cloneToTop":true,"del":false,"edit":false,"position":"left","refresh":true,"search":false,"view":false},jQuery('#ctl00_content_newsGridView').getGridParam('editDialogOptions'),jQuery('#ctl00_content_newsGridView').getGridParam('addDialogOptions'),jQuery('#ctl00_content_newsGridView').getGridParam('delDialogOptions'),jQuery('#ctl00_content_newsGridView').getGridParam('searchDialogOptions') );function jqGrid_aspnet_loadErrorHandler(xht, st, handler) {if (xht.status == 404) { return; } jQuery(document.body).css('font-size','100%'); jQuery(document.body).html(xht.responseText);}
var _theForm = document.getElementsByTagName('FORM')[0];
var oldSubmit = _theForm.onsubmit;
_theForm.onsubmit = function()
{
jQuery('#ctl00_content_newsGridView_SelectedRow').attr('value', '[' + jQuery('#ctl00_content_newsGridView').getGridParam('selrow') + ']');
if (oldSubmit != undefined && oldSubmit != null) oldSubmit();
};
var tooltips = ["","Título","Url","Criado","Status"]
var grid = jQuery('#ctl00_content_newsGridView');
var tHeaders = grid.parent().parent().parent().find('table').find('th');
tHeaders.each(function(index) {
var e = $(tHeaders[index]);
e.attr('title', tooltips[index]);
});
});
Agradeço a atenção!
Discussão (4)
Carregando comentários...