• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Sunday on calender not pickable

Sunday on calender not pickable 11 years 9 months ago #24160

  • simone30
  • simone30's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Could somebody help me with this one, i'm almost there.. I would like that the customer can't choose any Sunday.

I have now this code:

<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if(selectedDate == "21.07.2013")
{
alert("Op zondag is ons restaurant gesloten.");
return false;
}
else return true;
}
</script>

This works only with this date. How can I let it work fore all sundays?

Thank you fore your help.
The administrator has disabled public write access.

Sunday on calender not pickable 11 years 9 months ago #24287

  • nids_511
  • nids_511's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi, I was looking up the forum for a solution to blocking Sundays on my RSForms calendar and bumped into your post. Did you ever find a solution to it ?
The administrator has disabled public write access.

Sunday on calender not pickable 11 years 8 months ago #24497

  • company
  • company's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
ive been doing some research, but im not a programmer so im not sure how to implement it.

cal1.addWeekdayRenderer(6, cal1.renderBodyCellRestricted);
cal1.render();

or
(jquery)
$('#calendar')(
function(){ $(this).removeClass('selectable') }
)

this code is not functional, but might give you an idea on how to move forward.

developer.yahoo.com/yui/calendar/
The administrator has disabled public write access.

Sunday on calender not pickable 11 years 8 months ago #24498

  • company
  • company's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
using css is also a possibility

.wd6 { pointer-events: none; cursor: default;}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!