zhoupan / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

Error: 'jQuery.jmesa' is null or not an object #314

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I imported jmesa-3.0_examples.war into my RAD 7.5 IDE on Windows XP, but when I 
run or debug it on the test WebSphere Application Server v7.0, I get the 
following error:

Error: 'jQuery.jmesa' is null or not an object

The Presidents table renders, but I also get this error whenever I click on any 
of the table controls.  A variant error, depending on the control I click, is 

Error: '$.jmesa' is null or not an object

I have verified that the requisite javascript files are in the WebContent/js 
folder:

jquery-1.3.min.js
jquery.bgiframe.pack.js
jquery.validate.min.js
jquery.jmesa.js
jmesa.js

These are declared in this order in the main.jsp decorator, and when I run 
Firebug on http://localhost:9080/jmesa-3.0_examples/jmesa-example I see that 
all of the scripts have been loaded.  the javascript files are loaded properly 
with either of these syntaxes:

src="${pageContext.request.contextPath}/js/..."
src="<%=request.getContextPath() %>/js/..."

I also see that jQuery is an object in the DOM, but jmesa is not a property of 
the jQuery object.   

I have tried to use jquery-1.3.js, jquery.bgiframe.js, and jquery.validate.js 
(instead of their min and pack versions), but i get the same result.

I have verified that all required jar files are in the WEB-INF/lib folder and 
are included in the project's build path.

Any ideas why jQuery.jmesa is not instantiating?

Thank you.

Original issue reported on code.google.com by r.tim.el...@gmail.com on 29 Apr 2011 at 11:19

GoogleCodeExporter commented 9 years ago
I believe you have imported jquery-{ver}.js once again after importing 
jquery.jmesa.js which overrides the jquery or $ object created already. Thus 
the $ that have been extended by the jquery.jmesa js has been lost thereby 
throwing a not defined error.

Original comment by balachandranudt on 6 May 2013 at 6:11