Never worry, if we never made mistakes we'd never learn. And it's great that Firebug is now your friend. James
________________________________ From: jquery-en@googlegroups.com on behalf of David Blomstrom Sent: Wed 10/12/2008 13:18 To: jquery-en@googlegroups.com Subject: [jQuery] Re: TableSorter vs CMS Wow, you were right - my link/path file was incorrect. I assumed it was OK because the links to my style sheets were OK, but there was a PHP error on the JavaScript link. I feel about bad about fueling such a lengthy discussion on a stupid mistake. If it's any consolation, I learned how to use Firebug (and got some other valuable tips besides). :) Thanks for all the help. On Wed, Dec 10, 2008 at 5:11 AM, James Hughes <[EMAIL PROTECTED]> wrote: Does <address>/1A/js/jquery-1.2.6.min.js exist? Can you access it via the address bar in the browser? Check the Net tab of firebug and see the get request for the JS file - is the response a 404 or the contents of the file? James ________________________________ From: jquery-en@googlegroups.com on behalf of David Blomstrom Sent: Wed 10/12/2008 13:08 To: jquery-en@googlegroups.com Subject: [jQuery] Re: TableSorter vs CMS I'm checking that right now. If the links to my style sheets are OK (and they are), then the links to my JavaScripts should be OK. However, there is aother possible problem that just occurred to me. I pasted my JQuery files in MySite, while the page I'm viewing is in MySite2. I essentially have several content management systems sharing includes from one master CMS. All my other JavaScript functions have worked correctly but maybe JQuery is different? I'll past the JQuery file into MySite 2, change the link and see if that makes a difference... On Wed, Dec 10, 2008 at 5:03 AM, James Hughes <[EMAIL PROTECTED]> wrote: if it saying - 2. $ is not defined jQuery isn;t included on the page correctly. Are your directory and file names alright? ________________________________ From: jquery-en@googlegroups.com on behalf of David Blomstrom Sent: Wed 10/12/2008 13:01 To: jquery-en@googlegroups.com Subject: [jQuery] Re: TableSorter vs CMS On Wed, Dec 10, 2008 at 4:14 AM, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: There is a lot to grasp for you, but what you are doing is rather simple. Forget the "AJAX callback" and "onSuccess". This is the answer to a common problem that you dont have, since your not using any AJAX. For firebug, you need to activate the console, and look there if there is no js error. OK, I activated Firebug's console, and it reports three errors: 1. xAddEventListener is not defined xAddEventListener(window, 'load', 2. $ is not defined $(document).ready(function() 3. xAddEventListener is not defined xAddEventListener(window, 'load', then in the bottom line of the console, paste this: $('table').css('border','10px solid red'); If your table becomes red, then jquery is there. Otherwise, you to load jquery correctly, with the right path. I pasted it in, but nothing turned red. When you say I have to "load" JQuery correctly, are you simply saying I need the correct path for my links to the JavaScript files? After doing this, I copied the source code, pasted it into my static test page, then repeated the process. This time Firebug lists just one error (the first error listed above). When I pasted the code into the bottom of the console, there was once again no effect; nothing turns red. However, the table on the static web page is working. The columns are sortable and they have alternating colors. Thanks. Olivier On Wed, Dec 10, 2008 at 1:02 PM, David Blomstrom <[EMAIL PROTECTED]> wrote: Thanks for the tips, but I'm confused. You're suggesting I use an AJAX callback function and initiate the PHP onSuccess. I searched for "AJAX callback" and "onSuccess" on JQuery's website but found no information about either one. I downloaded Firebug, but I'm not yet sure how to use it. It displays my webpage on top, with the source code appearing in a bottom panel. I don't see any obvious indications of JavaScript errors. Thanks. On Tue, Dec 9, 2008 at 2:31 PM, taylormade <[EMAIL PROTECTED]> wrote: I was having the same problem... It depends how you call the PHP... Best bet is using jquery's AJAX callback function and initiate the PHP onSuccess... i did the same thing here: (use firebug to explore the code): (everything in the <tbody> is print()'d by PHP... http://www.themeans.info/cms/galleryManager.php On Dec 9, 2:24 pm, "David Blomstrom" <[EMAIL PROTECTED]> wrote: > With the help of this group, I got my first JQuery function to work - a > combination sortable table columns/alternate row colors script. The only > problem is that it works on my static page but not on a dynamic page in my > content management system (PHP). > > The weird thing is that I copied the source code from a dynamic page into my > static page, and it does work - but only on the static page. > > On my dynamic page, the sortable column function doesn't work at all. The > zebra stripes function works only to the extent that any row I mouseover > acquires a colored background. > > Does anyone have a hunch what's going on? > > Thanks. > > * * * * * > > <script src="/1A/js/jquery-1.2.6.min.js" type="text/javascript"></script> > <script src="/1A/js/tablesorter/jquery.tablesorter.js" > type="text/javascript"></script> > <script language="JavaScript" type="text/JavaScript"> > $(document).ready(function() > { > $("#myTable").tablesorter({ widgets: ['zebra']} ); > } > ); > </script> -- David Blomstrom Writer & Web Designer (Mac, M$ & Linux) www.geobop.org <http://www.geobop.org/> <http://www.geobop.org/> <http://www.geobop.org/> -- David Blomstrom Writer & Web Designer (Mac, M$ & Linux) www.geobop.org <http://www.geobop.org/> <http://www.geobop.org/> <http://www.geobop.org/ <http://www.kainos.com/> -- David Blomstrom Writer & Web Designer (Mac, M$ & Linux) www.geobop.org <http://www.geobop.org/> <http://www.geobop.org/ <http://www.kainos.com/> -- David Blomstrom Writer & Web Designer (Mac, M$ & Linux) www.geobop.org <http://www.geobop.org/> -------------------------------------------------------------------- This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be found on our website - www.kainos.com