Prototype Syntax Error Unrecognized Expression
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of uncaught error: syntax error, unrecognized expression: [href=#] this site About Us Learn more about Stack Overflow the company Business syntax error unrecognized expression jquery Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask uncaught error syntax error unrecognized expression jquery Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign
A[href*=#]
up Uncaught Syntax error, unrecognized expression: [object Object] up vote 5 down vote favorite Working currenly on news scroller - see my live example here - EXAMPLE When I press next/prev arrow I'm getting an error log Uncaught Syntax error, unrecognized expression: [object Object] Why is the problem? Where is the error in the syntax? jQuery Code: (function($) { /*! Scroller ---------------------------------------------*/ $.fn.Scroller jquery version = function() { //Set height $('.scroller').each(function() { var height = 0; $(this).children('div').each(function() { if (height < $(this).height()) { height = $(this).height(); } }); $(this).css("height", height + "px"); }); $('.scroller').each(function() { var NextArrow = $(this).parent().find('.next'); var PrevArrow = $(this).parent().find('.prev'); // Set a timeout var timeOut = setTimeout(nextNotice, 5000); // pause on hover $(this).hover( function() { clearTimeout(timeOut); }, function() { timeOut = setTimeout(nextNotice, 5000); }); // Next notice function called on timeout or click //set a flag that use to be an oberver to listen when the fadeIn done var flag = true; function nextNotice(event) { var CurrentScrollerDiv = $(this).parent().find('.scroller'); if (!flag) { return false; } clearTimeout(timeOut); flag = false; timeOut = setTimeout(nextNotice, 5000); if ($(CurrentScrollerDiv + ' div:visible').is(CurrentScrollerDiv + ' div:last-child')) { $(CurrentScrollerDiv + ' div:visible').fadeOut(300); $(CurrentScrollerDiv + ' div:first-child').fadeIn("slow", function() { flag = true; }); } else { $(CurrentScrollerDiv + ' div:visible').fadeOut(300).next('div').fadeIn("slow", function() { flag = true; }); } return false; } $(NextArrow).click(nextNotice); $(PrevArrow).click(function(event) { var CurrentScrollerDiv = $(this).parent().find('.scroller'); if (flag) { return false; } clearTimeout(timeOut); flag = false; timeOut = setTimeout(nextNotice, 5000); if ($(CurrentScrollerDiv + ' div:visible').is(CurrentScrollerDiv + ' div:first-child')) { $(CurrentScrollerDiv + ' div:visible').fadeOut(300); $(Cu
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us jquery cdn Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up uncaught exception: Syntax error, unrecognized expression: [href=example.html] [closed] http://stackoverflow.com/questions/7469925/uncaught-syntax-error-unrecognized-expression-object-object up vote 5 down vote favorite While testing my website in Firebug i get this error when clicking on a menu button: uncaught exception: Syntax error, unrecognized expression: [href=schedule.html] I think it goes wrong here because the current class won't apply but the rest works fine.(these aren't the full code) html: js: $("nav a").removeClass("current"); $("nav a[href="+newHash+"]").addClass("current"); javascript jquery http://stackoverflow.com/questions/5818555/uncaught-exception-syntax-error-unrecognized-expression-href-example-html share|improve this question edited Apr 28 '11 at 12:47 asked Apr 28 '11 at 12:27 Jeroen 55127 closed as not a real question by Quentin, Shakti Singh, Shadow Wizard, mattsven, Graviton Apr 29 '11 at 4:12 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 1 There is something wrong with your code. Unless you show the code, the only answers that you can get will be based on people guessing what your code might look like. –Guffa Apr 28 '11 at 12:30 1 While I could take a guess … I'm not going to. If your code is throwing errors, then don't provide just the error. It is hard to identify problems in secret code we cannot see. –Quentin Apr 28 '11 at 12:30 1 Firebug is already shown what is the wrong. –Shakti Singh Apr 28 '11 at 12:31 1 And wh
that make connections all over the world. Join today Download & Extend https://wordpress.org/support/topic/uncaught-error-syntax-error-unrecognized-expression-ul/ Drupal Core Distributions Modules Themes Field GroupIssues "uncaught exception: Syntax error, unrecognized expression: #" after 7.x-1.4 syntax error update Needs workProject:Field GroupVersion:7.x-1.4Component:MiscellaneousPriority:CriticalCategory:Bug reportAssigned:rajeev_drupalIssue tags:#drupalconasiaReporter:chromixCreated:August 8, 2014 - 21:15Updated:September 21, 2016 - 18:22 Log in or register to update this issue Jump to:Most recent comment Most recent attachment Upgrading to syntax error unrecognized 7.x-1.4 from 7.x-1.3 results in broken Javascript on page. The console in Chrome just outputs the following message: Uncaught Syntax error, unrecognized expression: # I'm running the latest core and the latest of all my other modules. I should also note that I'm using jquery_update set to version 1.5.2. Here's a list of every other JS file included on the page in case there's a conflict somewhere. /sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js?v=1.5.2 /misc/jquery.once.js?v=1.2 /misc/drupal.js /misc/ui/jquery.ui.core.min.js?v=1.8.7 /misc/ui/jquery.ui.widget.min.js?v=1.8.7 /misc/ui/jquery.effects.core.min.js?v=1.8.7 /misc/ui/jquery.ui.button.min.js?v=1.8.7 /misc/ui/jquery.ui.mouse.min.js?v=1.8.7 /misc/ui/jquery.ui.draggable.min.js?v=1.8.7 /misc/ui/jquery.ui.position.min.js?v=1.8.7 /misc/ui/jquery.ui.resizable.min.js?v=1.8.7 /misc/ui/jquery.ui.dialog.min.js?v=1.8.7 /sites/all/modules/contrib/views/js/jquery.ui.dialog.patch.js?v=1.8.7 /sites/all/modules/contrib/token/token.js?v=1.0 /modules/contextual/contextual.js?v=1.0 /sites/all/modules/contrib/jquery_update/replace/ui/external/jquery.cookie.js?v=67fb34f6a866c40d0570 /sites/all/modules/contrib/jquery_update/replace/misc/jquery.form.min.js?v=2.69 /misc/ui/jquery.effects.drop.min.js?v=1.8.7 /misc/vertical-tabs.js?v=1.0 /misc/form.js?v=7.31 /misc/states.js?v=7.31 /misc/ajax.js?v=7.31 /sites/all/modules/contrib/jquery_update/js/jquery_update.js?v=0.0.1 /sites/all/modules/contrib/admin_menu/admin_menu.js /sites/all/modules/contrib/admin_menu/admin_menu_toolbar/admin_menu_toolbar.js Troubleshooting » [Resolved] Uncaught Error: Syntax error, unrecognized expression: ul [Resolved] Uncaught Error: Syntax error, unrecognized expression: ul webber2012 @webber2012 5 months, 3 weeks ago After upgrading WordPress to 4.5, suddenly GravityForms stopped working (forms didn't show anymore in the frontend). The following error was on the page: jquery.js?ver=1.12.3:2 Uncaught Error: Syntax error, unrecognized expression: ul.art-hmenu a[href=#] To fix this with a theme made via Artisteer, open wp-content/themes/yourtheme/script.js and do the following: --- The link location (hash marks, #, in this case) should be quoted: [href="#"] and -not- without quotes around the # ([href=#]) -- After changing that, don't forget to purge browser cache! It seems that this is some kind of bug - also happening with some commercial themes it seems. Viewing 7 replies - 1 through 7 (of 7 total) Moderator James Huff @macmanx 5 months, 3 weeks ago The problem is detailed here: https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list?replies=7&view=all#post-8271654 In short though, you'll need to contact Artisteer about an update to your theme. ottomek @ottomek 5 months, 3 weeks ago Thanks to you both. This just happened to one of my sites too and with your instructions I could easily update old theme. Moderator James Huff @macmanx 5 months, 3 weeks ago You're welcome! webber2012 @webber2012 5 months, 3 weeks ago Glad to hear you also managed to get the issue fixed ottomek. Unfortunately Aristeer is a theme creator so not a specific theme provider and they have dropped support for Aristeer since they introduced Themler, the follow up of Artisteer. :-/ So this is basically a sort of Artisteer bug which apparently surfaces with the latest version of WordPress and in combination with certain plugins like GravityForms. All themes created with Artisteer could possibly have this bug/issue I suspect. Moderator James Huff @macmanx 5 months, 3 weeks ago It's possible, and unfortunately it's up to them to fix. The short version of https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list?replies=7&view=all#post-8271654 is that they (and a few other th