Solved

Error: 'invalid regular expression flag j'

Posted on 2011-03-03
3
1,214 Views
Last Modified: 2012-05-11
I'm not sure where this came from, since everything in the application checks out functionally.  Simply put, the error doesn't seem to affect anything.  None the less, I'd prefer to be error free.  Any help in solving this issue would be appreciated.

Console Error:  (copied from fireBug)
invalid regular expression flag j
(?)()
$ = function()
admin()
+ '<td style="position:relative;pa..../../jscripts/ + aImg[4].src + ');">'

Script Causing Error:
var top = $('#libraryContainer').offset().top - parseFloat($('#libraryContainer').css('marginTop').replace(/auto/, 0));
0
Comment
Question by:brianmfalls
  • 2
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35030097
It seems that the /../j part of your table-cell tag is being picked up as a regular expression. What is that block of code that you posted (under "Console Error")?
0
 
LVL 1

Accepted Solution

by:
brianmfalls earned 0 total points
ID: 35085392
As it turns out, it was a conflict with the js library.
0
 
LVL 1

Author Closing Comment

by:brianmfalls
ID: 35126337
No other answer matches.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question