I am working on a small training project and ran into a problem that I cannot solve.
I get the following error message on google chromes dev console: -
Uncaught TypeError: Object [object Object] has no method 'match' lexer.nexthandlebars-1.0.0.beta.6.js:364 lexhandlebars-1.0.0.beta.6.js:392 lexhandlebars-1.0.0.beta.6.js:214 parsehandlebars-1.0.0.beta.6.js:227 Handlebars.parsehandlebars-1.0.0.beta.6.js:507 compilehandlebars-1.0.0.beta.6.js:1472 (anonymous function)handlebars-1.0.0.beta.6.js:1481 (anonymous function)scripts.js:103 jQuery.Callbacks.firejquery.js:1046 jQuery.Callbacks.self.fireWithjquery.js:1164 donejquery.js:7399 jQuery.ajaxTransport.send.callback
Now it appears on error with the following code in handle descriptors
match = this._input.match(this.rules[rules[i]]); Uncaught TypeError: Object [object Object] has no method 'match'
So, I take from this that there should be a problem with my code, and not the steering code, even if it is in beta.
Here is the section of code that completely disabled it.
displayJobInfo: function( e ) { var self = Actors; self.config.jobInfo.slideUp( 300 ); var jobnum = $(this).data( 'job_id' ); $.ajax({ data: { job_id: jobnum } }).then(function( results ) { self.config.jobInfo.html( self.config.JobInfoTemplate( { jobs: results, job_id: jobnum }) ).slideDown(300); }); console.log($(this).data( 'job_id' )); e.preventDefault(); }
I spent hours trying to work with this on my own, and I have almost the same section of code that works in another part of my site.
A bit of background - I use php to pull the database out of mysql and then query the database based on user input and jquery to overlay the fields back into the page.
source share