Hi Brett,
JavaScript is case-sensitive. You've declared the variable as BlueSky,
with an uppercase "S," but you're referring to it as Bluesky, with a
lowercase "s."
It's been helpful for me to stick to a convention. For my JavaScript
variables, I use the lower-camel-case convention: start with lowercase
and then uppercase new words. So if I were writing the variable, I'd
do it as blueSky. But that's just a personal preference on my part.
The important thing is to choose a convention and stick to it.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 3, 2008, at 3:54 AM, [EMAIL PROTECTED] wrote:
Hi All,
First time jQuery user and poster here. I'm trying to grab the value
of a querystring using the Query String Object plugin. Here is my code
(along with some 'curvy corners' jQuery):
$(document).ready(function(){
$('.announce').corner({
tl: false,
tr: { radius: 16 },
bl: { radius: 16 },
br: false,
antiAlias: true,
autoPad: true,
validTags: ["div"]
});
$('#reportOptions').corner({
tl: false,
tr: { radius: 16 },
bl: { radius: 16 },
br: false,
antiAlias: true,
autoPad: true,
validTags: ["div"]
});
var BlueSky = $.query.get('BlueSky');
if (Bluesky == 1)
{
$('#header').hide();
$('#footer').hide();
$('#nav').hide();
}
});
Whenever I load up my page I get 'Bluesky' is undefined. Obviously I
want to check if Bluesky is 1 and hide my ids.
Any ideas where I'm going wrong?
Thanks,
Brett