Hi folks,
We are deep entrenched in trying to work out problems with the UPS quote functionality in alpha7e. We are using Firebug to try to figure out what goes on when Ubercart posts data to UPS and what is returned. We're not experts on Firebug debugging, DOM, JavaScript, etc., so
we're just starting get oriented with all the parts and pieces we're looking at.
I've read a bit about the jQuery JavaScript library that Ubercart is using (I believe this project is at http://jquery.com/). There is a file, /misc/jquery.js, that I am guessing is the jQuery library.
Unfortunately, this entire .js file's actual code is on one line (line 2). All of the entries in our Firebug Console that have to do with the POSTs to UPS have "jquery.js (line 2)" as their file locations.
The first line of the file, which looks like version control data, is:
// $Id: jquery.js,v 1.6 2006/12/23 21:46:35 dries Exp $
So, at first, I thought it was jQuery version 1.6, but in Firebug we often see a node in (I think) Firebug's DOM inspection pane called "jQuery" with a string "1.0.4". Googling "jQuery 1.0.4" seems to support that this is a common jQuery version.
Due to the entire file being on one line, it is "impossible" to debug this file. I tried pretty printing it with a couple JavaScript beautifiers on the web, but all of them were able to format only a small portion of the file at the beginning and gave up quickly.
Questions:
1) What is this code supposed to do? It is difficult to read and has no comments. Comparing its content with a download of "jQuery-1.2.1.js" from the jQuery site seems to show that these are two completely different animals.
2) Does anyone have a beautified copy of it that can actually be debugged (breakpoints etc.) in Firebug?
Any tips or information is much appreciated!
Thanks,
Chuck


