[jQuery] Re: getJSON callback not executing

2008-06-26 Thread wellmoon
After more research I discovered for jsonp callbacks to work, the PHP needs to return the name of the function as well as (which the flicker service does in the $.getJSON example), so I added this to the PHP file. For reference the PHP file now consists of this: However, the page is still not

[jQuery] Re: Different between this and $(this)

2008-06-26 Thread wellmoon
'this' is standard JavaScript for an object referring to itself '$(this)' is jquery for 'the current object' or similar You can't call jQuery methods on standard JavaScript objects, only on jQuery objects On Jun 26, 2:02 pm, x-herbert <[EMAIL PROTECTED]> wrote: > Hi jQueries; > > what is the di

[jQuery] getJSON callback not executing

2008-06-25 Thread wellmoon
Hi, I have a PHP script that returns a JSON object with one property and one value. If I use the PHP file on my local web server the following code works: $.getJSON("myphpfile.php", callback); function callback(data) { alert(data.prop); } This produces the alert which contains the correct da

[jQuery] Re: IE6 .height() problem

2007-11-21 Thread wellmoon
x27;s not a jQuery > error, I'm pretty sure. > > HTH > > Charles > > On Nov 20, 4:44 am, wellmoon <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I am creating a new div and using the .height(1) method to set it's > > height to 1 pxie

[jQuery] IE6 .height() problem

2007-11-20 Thread wellmoon
Hi, I am creating a new div and using the .height(1) method to set it's height to 1 pxiel high. In IE7 and FF this works fine, however in IE6 for some reason 18 pixels are mysteriously added to the height of the new div. It seems to be added at the point when it is inserted into the DOM so gett

[jQuery] Re: .css("border-color") problem in FireFox

2007-11-17 Thread wellmoon
h > css("borderColor") for consistency. > > $("#mydiv").each(function() { > var bColor = $(this).css("borderColor"); > alert(bColor); > > HTH > > On Nov 16, 9:32 am, wellmoon <[EMAIL PROTECTED]> wrote: > > > > > Hi, >

[jQuery] .css("border-color") problem in FireFox

2007-11-16 Thread wellmoon
Hi, I want to get the border-color of a div. The following code works in IE and alerts the color of the border: $("#mydiv").each(function() { var borderColor = $(this).css("border-color"); alert(borderColor); }); In FireFox it just alerts 'undefined' The border is set with CSS, not by jav