jquery.js:2 Uncaught Error: Syntax error, unrecognized expression
-
Hi,
When I click on a link, a white pop up with a spinning wheel opens – but that’s it.
Console gives the following error:
jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: /stripboeken/strips-murena/ #modal-ready
at Function.fa.error (jquery.js:2)
at fa.tokenize (jquery.js:2)
at Function.fa [as find] (jquery.js:2)
at n.fn.init.find (jquery.js:2)
at Object.<anonymous> (jquery.js:4)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at y (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)The html code of a typical link in ‘page source’ is like:
<a class="modal-link" title="Isabelle Avondrood" href=" https://www.xxxxx.com/stripboeken/strips-de-fantastische-avonturen-van-isabelle-avondrood/">Isabelle Avondrood</a>
What I try to make is some wikipedia style preview for internal links. The internal links are delivered by the Seo Internal Links Revisited plugin, in which I changed the ‘open in new tab’ option into:
function SEOLinks_the_content_filter($text) { $result=$this->SEOLinks_process_text($text, 0); $options = $this->get_options(); $link=parse_url(get_bloginfo('wpurl')); $host='http://'.$link['host']; if ($options['blanko']) $result = preg_replace('%<a(\s+.*?href=\S(?!' . $host . '))%i', '<a <strong>class="modal-link</strong>"\\1', $result);
So in fact just replace ‘target=”_blank” with ‘class=”modal-link”, unfortunately my programming skills end here…
- The topic ‘jquery.js:2 Uncaught Error: Syntax error, unrecognized expression’ is closed to new replies.