Pardon me for being unwilling to try to prize apart some “minify’d” JavaScript code, but my initial impression of the matter is that the code must be expecting other declarations to have previously been downloaded (i.e. by means of a <script> tag). It expects these to have been incorporated into the same JavaScript environment before the code in question is received and the attempt is made to compile and run it. (It also expects that no syntax error has lately been introduced into any of that code! An error would stop the JavaScript interpreter, with or without a visible warning .. look in the browser debugger .. perhaps before the declarations you need have been processed.)
I thnk that you need to “look underneath these other toadstools.” It is actually unreasonable to think that something “just happened yesterday” to the material that is being received from the AJAX call. If your shop maintains version-control as it should, pore through the list of recent commits. Look, with an open mind, for anything that this material may “touch,” that has been updated in any way whatsoever during the period of time since your “last known good” state. Also, clear the browser caches and methodically test the behavior to “box it in” on various available computer systems and browser types. The error-messages and (e.g. FireBug) debugging outputs available on different browsers might give you an important clue.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|