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
'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
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
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
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
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,
>
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
7 matches
Mail list logo