
david at kineticode
Aug 17, 2009, 3:33 PM
Post #6 of 7
(2105 views)
Permalink
|
|
Re: Question regarding bug 1437 (Advanced search reverting to simple search)
[In reply to]
|
|
Hi Sarah, Only 4 months late responding -- sorry! On Apr 22, 2009, at 6:58 AM, mercie_s [at] denison wrote: >>> That was my first thought too, >>> and I was also thinking you might try changing it to use a cookie. >> >> Yeah, then you could probably update it with JavaScript. > > So I was trying to create a cookie for this and I was just > wondering, after looking at how the other cookies being created > (BRICOLAGE_AUTH, BRICOLAGE, BRICOLAGE_MENUS) exactly where and how I > should go about creating the cookie for the search? > > I was trying to do something like what is being done with the other > cookies by using the make_cookie function at the top of the search/ > story.html file: > > my $cookie = make_cookie->('ADV_SEARCH', 1) > unless defined $cookie; > > And then trying to update it with javascript in the onclick by doing > something with document.cookie: > > document.cookie = "ADV_SEARCH =" + 1; > > But I must be doing something wrong because I just get logged out > when I try to view the search page. I am sorry if this is > completely wrong, I've never worked with cookies before so this is > all new to me. > > Suggestions? Comments? Any sort of help would be great, because I > am feeling a little lost here. Can you send a patch with what you've done so far, so that I can try to replicate the issue? Thanks, David
|