[jQuery] Re: failing miserably in IE

2009-02-24 Thread pedalpete


So I got a version up and running, obviously you'll see by looking
this that it isn't a complete work, but if fails completely in IE, but
works in FF  Chrome.

http://ec2-75-101-196-181.compute-1.amazonaws.com/v2/

I've picked it apart and put it back together, and it seems I just
keep ending up with different errors as I get deeper and deeper into
it, and the errors that are getting reported are with google maps, or
the the datePicker, or genre cloud. any ajax requests, etc.
Really any non-core (with the exception of ajax) function just doesn't
work.

Any ideas on how to track this down would be greatly appreciated.



[jQuery] Re: failing miserably in IE

2009-02-24 Thread MorningZ

In times like this, turning on Script Debugging in IE is very helpful
(tools/options/advanced/uncheck-disable script debugging)

pulling up the link above with debugging on pointed out the problem
right away:

Error: '$' is null or not an object
for the line
if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {


looking at the code in dynaCloud.js

--
jQuery.fn.dynaCloud = function() {
 return this.each(function() {
  //var now = new Date().getTime();

  var cl = [];
  var max = 2000;
  var min = 10

  if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {
   var count = $.dynaCloud.max == -1 ? 50 : $.dynaCloud.max;
--


he didn't follow this convention

http://www.learningjquery.com/2007/10/a-plugin-development-pattern
(scroll down to 'Keep private functions private', which makes sure
that the code can use $ even if noConflict is specified)

fix up that plugin script and you should be all good









On Feb 24, 4:56 pm, pedalpete p...@hearwhere.com wrote:
 So I got a version up and running, obviously you'll see by looking
 this that it isn't a complete work, but if fails completely in IE, but
 works in FF  Chrome.

 http://ec2-75-101-196-181.compute-1.amazonaws.com/v2/

 I've picked it apart and put it back together, and it seems I just
 keep ending up with different errors as I get deeper and deeper into
 it, and the errors that are getting reported are with google maps, or
 the the datePicker, or genre cloud. any ajax requests, etc.
 Really any non-core (with the exception of ajax) function just doesn't
 work.

 Any ideas on how to track this down would be greatly appreciated.


[jQuery] Re: failing miserably in IE

2009-02-24 Thread pedalpete

Thanks MorningZ,

strange that that is not the error I'm getting at all.
My errors have pointed a break in the jquery.1.3.1.min.js (which
seemed odd).

I completely removed the references to dynacloud, but still get the
jquery and google maps errors.

I've got the debugging on in IE, that's how i'm seeing the errors.

I actually tried to fix the plugin to work with noconflict, (before
you saw it), but even with the link you sent, i am somewhat lost on
how to do that.

I'll load up another version later today, but I'm finding this very
puzzling (and i actually had the problem before noconclict was turned
on.

On Feb 24, 2:29 pm, MorningZ morni...@gmail.com wrote:
 In times like this, turning on Script Debugging in IE is very helpful
 (tools/options/advanced/uncheck-disable script debugging)

 pulling up the link above with debugging on pointed out the problem
 right away:

 Error: '$' is null or not an object
 for the line
 if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {

 looking at the code in dynaCloud.js

 --
 jQuery.fn.dynaCloud = function() {
  return this.each(function() {
   //var now = new Date().getTime();

   var cl = [];
   var max = 2000;
   var min = 10

   if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {
    var count = $.dynaCloud.max == -1 ? 50 : $.dynaCloud.max;
 --

 he didn't follow this convention

 http://www.learningjquery.com/2007/10/a-plugin-development-pattern
 (scroll down to 'Keep private functions private', which makes sure
 that the code can use $ even if noConflict is specified)

 fix up that plugin script and you should be all good

 On Feb 24, 4:56 pm, pedalpete p...@hearwhere.com wrote:

  So I got a version up and running, obviously you'll see by looking
  this that it isn't a complete work, but if fails completely in IE, but
  works in FF  Chrome.

 http://ec2-75-101-196-181.compute-1.amazonaws.com/v2/

  I've picked it apart and put it back together, and it seems I just
  keep ending up with different errors as I get deeper and deeper into
  it, and the errors that are getting reported are with google maps, or
  the the datePicker, or genre cloud. any ajax requests, etc.
  Really any non-core (with the exception of ajax) function just doesn't
  work.

  Any ideas on how to track this down would be greatly appreciated.


[jQuery] Re: failing miserably in IE

2009-02-24 Thread pedalpete

Turns out their was a newer version of the plugin which I downloaded
and have now loaded up to the site. From what i can understand, that
version uses the proper format you referred to.

However, i am still getting the errors on jquery.min.js and main.js
(which is google maps api).


On Feb 24, 4:58 pm, pedalpete p...@hearwhere.com wrote:
 Thanks MorningZ,

 strange that that is not the error I'm getting at all.
 My errors have pointed a break in the jquery.1.3.1.min.js (which
 seemed odd).

 I completely removed the references to dynacloud, but still get the
 jquery and google maps errors.

 I've got the debugging on in IE, that's how i'm seeing the errors.

 I actually tried to fix the plugin to work with noconflict, (before
 you saw it), but even with the link you sent, i am somewhat lost on
 how to do that.

 I'll load up another version later today, but I'm finding this very
 puzzling (and i actually had the problem before noconclict was turned
 on.

 On Feb 24, 2:29 pm, MorningZ morni...@gmail.com wrote:

  In times like this, turning on Script Debugging in IE is very helpful
  (tools/options/advanced/uncheck-disable script debugging)

  pulling up the link above with debugging on pointed out the problem
  right away:

  Error: '$' is null or not an object
  for the line
  if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {

  looking at the code in dynaCloud.js

  --
  jQuery.fn.dynaCloud = function() {
   return this.each(function() {
    //var now = new Date().getTime();

    var cl = [];
    var max = 2000;
    var min = 10

    if (typeof $.wordStats != 'undefined'  $.dynaCloud.wordStats) {
     var count = $.dynaCloud.max == -1 ? 50 : $.dynaCloud.max;
  --

  he didn't follow this convention

 http://www.learningjquery.com/2007/10/a-plugin-development-pattern
  (scroll down to 'Keep private functions private', which makes sure
  that the code can use $ even if noConflict is specified)

  fix up that plugin script and you should be all good

  On Feb 24, 4:56 pm,pedalpetep...@hearwhere.com wrote:

   So I got a version up and running, obviously you'll see by looking
   this that it isn't a complete work, but if fails completely in IE, but
   works in FF  Chrome.

  http://ec2-75-101-196-181.compute-1.amazonaws.com/v2/

   I've picked it apart and put it back together, and it seems I just
   keep ending up with different errors as I get deeper and deeper into
   it, and the errors that are getting reported are with google maps, or
   the the datePicker, or genre cloud. any ajax requests, etc.
   Really any non-core (with the exception of ajax) function just doesn't
   work.

   Any ideas on how to track this down would be greatly appreciated.


[jQuery] Re: failing miserably in IE

2009-02-23 Thread James

It's hard to tell without a test page. I think you should work from
bottom up, even if you think it should all be working properly
together. Make sure that jQuery library is working correctly and one-
by-one add in the other things. Make sure that all your links to
external Javascript/CSS files are not broken.

On Feb 23, 9:14 am, pedalpete p...@hearwhere.com wrote:
 I'm not sure where to even start with this.
 I've got a page with a ton of scripts that I've basically copied from
 one of my other pages (which works fine in IE).

 Of course, some of the scripts have changed, but I've got strange
 things failing everywhere.
 The common errors I was getting an 'undefined error in
 jquery-1.3.1.js' error, and i pinned it down to this bit of code

 [code]
 $('span#datePickers').DatePicker({
         flat: true,
         date: Date(),
         current: multiCalDate(),
         calendars: 3,
         mode: 'range',
         starts: 1,
         onChange: function(formated, dates){
                 var theseDates = dates.toString();
                 var splitRange= theseDates.split(',');
                 var firstRSplit=splitRange[0].split(' ');
                 var firstRange = [
                                         firstRSplit[0],
                                  firstRSplit[1],
                                 firstRSplit[2],
                                 firstRSplit[3].length == 4 ? firstRSplit[3] : 
 firstRSplit
 [5],
                                  ''
                                         ].join(' ');

         var secondRSplit=splitRange[1].split(' ');
         var secondRange =               [
                                         secondRSplit[0],
                                  secondRSplit[1],
                                  secondRSplit[2],
                                 secondRSplit[3].length == 4 ? secondRSplit[3] 
 : secondRSplit
 [5],
                                  ''
                                         ].join(' ');

         if(firstRange==secondRange){
         var dateRange=firstRange;
         } else {
         var dateRange = firstRange+' to '+secondRange;
         }
         jQuery('.updateDate').html(dateRange);
         jQuery('.updateDate').attr('id',formated)
         }});

 [/code]

 again, i don't know why this is, and this code works without issue.

 So I removed this bit of code, and now I can get the page to load, but
 my trying to make an ajax request with

 [code]
  jQuery('div#holdShows ul.showList').livequery(function(){
      jQuery.ajax({
       type: GET,
       url: processes/formatShows.php,
       data: output=genre=+genre+numDays=+numDays
 +numResults=+numResults+date=+toDate+dateRange=+dateRange
 +range=+range+lat=+lat+long=+long,
       success: function(response){
     alert(response);
         jQuery('div#holdShows ul.showList').html(response);
         }
         });
                 });
 [/code]

 does not launch the alerts, at all.
 Of course, running this page in FF or Chrome results in no errors and
 everything runs smoothly.

 I've been at this for days trying to get it to work.
 Please, please, please!!! How would you go about working through this?

 I'm using debugbar in IE for debugging. I'm on Vista Home version, so
 the debugging tools are limited.
 Thanks,
 Pete


[jQuery] Re: failing miserably in IE

2009-02-23 Thread pedalpete

Thanks James,

that's actually how I got to the point of discovering where the broken
bits were. I removed the javascript line by line until i got the
errors to stop showing up.

Unfortunately I'm getting to the point where there is so little on the
page that it isn't even remotely resembling the original functions,
and even now the simplest stuff is still not working.

I've checked that all the libraries and packages are loading properly,
and as I said, this is only a problem in IE.
FF and Chrome work perfectly, so if it were a problem with the
packages directly you'd think that FF and Chrome wouldn't work.

I'll hopefully get to have a live page going later this week, but I
was hoping their is a solution I could use today.

On Feb 23, 11:31 am, James james.gp@gmail.com wrote:
 It's hard to tell without a test page. I think you should work from
 bottom up, even if you think it should all be working properly
 together. Make sure that jQuery library is working correctly and one-
 by-one add in the other things. Make sure that all your links to
 external Javascript/CSS files are not broken.

 On Feb 23, 9:14 am, pedalpete p...@hearwhere.com wrote:

  I'm not sure where to even start with this.
  I've got a page with a ton of scripts that I've basically copied from
  one of my other pages (which works fine in IE).

  Of course, some of the scripts have changed, but I've got strange
  things failing everywhere.
  The common errors I was getting an 'undefined error in
  jquery-1.3.1.js' error, and i pinned it down to this bit of code

  [code]
  $('span#datePickers').DatePicker({
          flat: true,
          date: Date(),
          current: multiCalDate(),
          calendars: 3,
          mode: 'range',
          starts: 1,
          onChange: function(formated, dates){
                  var theseDates = dates.toString();
                  var splitRange= theseDates.split(',');
                  var firstRSplit=splitRange[0].split(' ');
                  var firstRange = [
                                          firstRSplit[0],
                                   firstRSplit[1],
                                  firstRSplit[2],
                                  firstRSplit[3].length == 4 ? firstRSplit[3] 
  : firstRSplit
  [5],
                                   ''
                                          ].join(' ');

          var secondRSplit=splitRange[1].split(' ');
          var secondRange =               [
                                          secondRSplit[0],
                                   secondRSplit[1],
                                   secondRSplit[2],
                                  secondRSplit[3].length == 4 ? 
  secondRSplit[3] : secondRSplit
  [5],
                                   ''
                                          ].join(' ');

          if(firstRange==secondRange){
          var dateRange=firstRange;
          } else {
          var dateRange = firstRange+' to '+secondRange;
          }
          jQuery('.updateDate').html(dateRange);
          jQuery('.updateDate').attr('id',formated)
          }});

  [/code]

  again, i don't know why this is, and this code works without issue.

  So I removed this bit of code, and now I can get the page to load, but
  my trying to make an ajax request with

  [code]
   jQuery('div#holdShows ul.showList').livequery(function(){
       jQuery.ajax({
        type: GET,
        url: processes/formatShows.php,
        data: output=genre=+genre+numDays=+numDays
  +numResults=+numResults+date=+toDate+dateRange=+dateRange
  +range=+range+lat=+lat+long=+long,
        success: function(response){
      alert(response);
          jQuery('div#holdShows ul.showList').html(response);
          }
          });
                  });
  [/code]

  does not launch the alerts, at all.
  Of course, running this page in FF or Chrome results in no errors and
  everything runs smoothly.

  I've been at this for days trying to get it to work.
  Please, please, please!!! How would you go about working through this?

  I'm using debugbar in IE for debugging. I'm on Vista Home version, so
  the debugging tools are limited.
  Thanks,
  Pete