You can access the current URL from javascript via window.location

Maybe try parsing window.location.href or window.location.search ?

--Erik


On 6/16/07, Bruce MacKay <[EMAIL PROTECTED]> wrote:

Hi folks,

I'm working on a site that, by default, has a RHS sidebar.  I want to
be able to selective hide that sidebar based on the value of a querystring.

More specifically, there are times when I need the "whole" page to
display a large table, so when I submit a post or call to the server
from the page to generate/load the table, I intending adding a
querystring variable that, when the page is refreshed and the table
is about to be loaded, jQuery will hide the sidebar (i.e. display:none;)

Is this possible?  I cannot find any examples in the tutorial section
of the site or find previous posts in this list's archives.

Of course, I can achieve what I'm seeking by having server-side
conditional includes based on a querystring value, but I'd like to do
this the jQuery way if possible.

Thanks/Bruce


Reply via email to