3.1 Uncaught Error: Syntax error, unrecognized expression: a[href=#login]
Default Subject
Problem
After updating RecTrac, my WebTrac Splash Page does not display correctly. This is identified as images being skewed and on screen text being mis-aligned. Check for the problem described within this knowledgebase article with the full-page-images.js file located on the WebTrac web server.
Note: The Error Message can be found using browser developer tools: " Uncaught Error: Syntax error, unrecognized expression: a[href=#login]"
Solution
A quick find and replace will fix this, modifying the full-page-images.js found on the WebTrac webserver. Change:
("a[href=#" + o.attr("id") + "]")
to
("a[href='#" + o.attr("id") + "']") (difference is adding ' in front of # and between "].
Steps For Solution
- Remote into WebTrac Web Server.
- Browse to X:\VSI3\RecTrac\WebServer\WEB\js (X represent the drive letter that the RecTrac/WebTrac application has been installed on.).
- Right-click on Full-Page-Images.js click Edit (If prompted open with Notepad).
- Press CTLR + H on your keyboard.
- Enter : ("a[href=#" + o.attr("id") + "]") into the "Find what:".
- Enter : ("a[href='#" + o.attr("id") + "']") into the "Replace with:".
- Make sure your curser is at the top of the Notepad.
- Click Find Next.
- Click Replace.
- Click Cancel.
- Save Changes.