I am unsure of where to start with this one, and so I'm hoping one of
you good people will be able to assist.

I am using Liferay, and on the calendar settings there is a value
called "event-selector". At present when you click to view events, the
default is always the top value "All Events". What I am trying to
achieve is that a cookie will remember the last choice that you
selected for the next 30 days (for example).

I have limited jQuery skills, but wonderful google skills, which led
me to this place!! I'm hoping that somebody will be able to help, or
at least point me in the right direction.

Thanks!

This is the code I grabbed from Firebug:

<div class="event-selector">
<select onchange="location.href = 'http://localhost:8080/web/guest/
calendar?
p_p_id=8&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_8_struts_action=
%2Fcalendar
%2Fview&_8_tabs1=week&_8_month=9&_8_day=17&_8_year=2009&_8_eventType='
+ this.value;">
<option value="">All Events</option>
<option value="anniversary">Anniversary</option>
<option value="appointment">Appointment</option>
<option value="bill-payment">Bill Payment</option>
<option value="birthday">Birthday</option>
<option value="breakfast">Breakfast</option>
<option value="call">Call</option>
<option value="chat">Chat</option>
<option value="class">Class</option>
<option value="club-event">Club Event</option>
<option value="concert">Concert</option>
<option value="dinner">Dinner</option>
<option value="event">Event</option>
<option value="graduation">Graduation</option>
<option value="happy-hour">Happy Hour</option>
<option value="holiday">Holiday</option>
<option value="interview">Interview</option>
<option value="lunch">Lunch</option>
<option value="meeting">Meeting</option>
<option value="movie">Movie</option>
<option value="net-event">Net Event</option>
<option value="other">Other</option>
<option value="party">Party</option>
<option value="performance">Performance</option>
<option value="press-release">Press Release</option>
<option value="reunion">Reunion</option>
<option value="sports-event">Sports Event</option>
<option value="training">Training</option>
<option value="travel">Travel</option>
<option value="tv-show">TV Show</option>
<option value="vacation">Vacation</option>
<option value="wedding">Wedding</option>

Reply via email to