[jQuery] only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland

Hi,

Newbie here.  I have two JS files, common.js and homepage.js.  Both
have calls to $(document).ready().  Using FF, both $(document).ready()
methods execute, but in IE6, only one does.  Is this a known problem?

Thanks,

Stan McFarland


[jQuery] Re: only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland

Hi, thanks for replying.  I'm on an Intranet, so I can't show you, but
I'll comment out all the code in the two files except for the
document.ready() calls and see if I can trace it down.  Thanks again.

-stan




On Nov 13, 12:27 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 I have never had this problem before on any browser. Do you have a  
 test page you could show us? It could be that one of your JavaScript  
 files has something in it that only IE reports as an error, such as a  
 trailing comma after the last object property.

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Nov 13, 2008, at 11:48 AM, Stan McFarland wrote:





  Hi,

  Newbie here.  I have two JS files, common.js and homepage.js.  Both
  have calls to $(document).ready().  Using FF, both $(document).ready()
  methods execute, but in IE6, only one does.  Is this a known problem?

  Thanks,

  Stan McFarland- Hide quoted text -

 - Show quoted text -


[jQuery] Re: only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland

Karl, that was exactly it  - a trailing comma.   Thanks a bunch!

-stan



On Nov 13, 12:27 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 I have never had this problem before on any browser. Do you have a  
 test page you could show us? It could be that one of your JavaScript  
 files has something in it that only IE reports as an error, such as a  
 trailing comma after the last object property.

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Nov 13, 2008, at 11:48 AM, Stan McFarland wrote:





  Hi,

  Newbie here.  I have two JS files, common.js and homepage.js.  Both
  have calls to $(document).ready().  Using FF, both $(document).ready()
  methods execute, but in IE6, only one does.  Is this a known problem?

  Thanks,

  Stan McFarland- Hide quoted text -

 - Show quoted text -


[jQuery] Re: newbie struggling with JSON

2008-05-06 Thread Stan McFarland

Josh,

It worked with a relative URL, but not the absolute URL.  Odd...

-stan


On May 5, 7:42 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
 Stan,

 I'd suggest using Firefox with the Firebug extension, and doing a
 console.log(code) in your callback.  This will give you better information
 than is provided by using the alert method.

 -- Josh



 - Original Message -
 From: Stan McFarland [EMAIL PROTECTED]
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Monday, May 05, 2008 2:07 PM
 Subject: [jQuery] newbie struggling with JSON

  Hi,  newbie here.   Hoping someone can help.  I'm able to successfully
  call $.get and then eval() a URL that returns a JSON object:

  $.get(myurl,
     function(code)  {  eval(code);  alert(code[0]); });

  But if I try to call $.getJSON on the same URL:

  $.getJSON (myurl,
    function(code) { alert(code[0]); });

  I always get back:    code has no properties

  Any suggestions?

  Thanks,

  Stan McFarland
  `- Hide quoted text -

 - Show quoted text -


[jQuery] Re: newbie struggling with JSON

2008-05-06 Thread Stan McFarland

Josh,   thanks for the tip.   console.log(code) outputs undefined.
Any other suggestions?

Thanks again,

Stan



On May 5, 7:42 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
 Stan,

 I'd suggest using Firefox with the Firebug extension, and doing a
 console.log(code) in your callback.  This will give you better information
 than is provided by using the alert method.

 -- Josh



 - Original Message -
 From: Stan McFarland [EMAIL PROTECTED]
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Monday, May 05, 2008 2:07 PM
 Subject: [jQuery] newbie struggling with JSON

  Hi,  newbie here.   Hoping someone can help.  I'm able to successfully
  call $.get and then eval() a URL that returns a JSON object:

  $.get(myurl,
     function(code)  {  eval(code);  alert(code[0]); });

  But if I try to call $.getJSON on the same URL:

  $.getJSON (myurl,
    function(code) { alert(code[0]); });

  I always get back:    code has no properties

  Any suggestions?

  Thanks,

  Stan McFarland
  `- Hide quoted text -

 - Show quoted text -


[jQuery] newbie struggling with JSON

2008-05-05 Thread Stan McFarland

Hi,  newbie here.   Hoping someone can help.  I'm able to successfully
call $.get and then eval() a URL that returns a JSON object:

$.get(myurl,
function(code)  {  eval(code);  alert(code[0]); });

 But if I try to call $.getJSON on the same URL:

$.getJSON (myurl,
   function(code) { alert(code[0]); });

I always get back:code has no properties

Any suggestions?

Thanks,

Stan McFarland
`