Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9233247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:30:27+00:00 2026-06-18T06:30:27+00:00

I am working with the jQuery weekcalendar to show a web based calendar with

  • 0

I am working with the jQuery weekcalendar to show a web based calendar with appointments. Some build-in functions like setEventUserId store some variables in the calEvent.

What do I have to do to store custom variables in this calEvent object?

Something like:

setEventCategoryId: function(calendarId, calEvent, calendar) {
  calEvent.calendarId = calendarId;
  return calEvent;
},
getEventCategoryId: function(calEvent, calendar) {
  return calEvent.calendarId;
}

But when do I call this method? And is it enough to only have this piece of code to store the variable?

Any input is much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:30:29+00:00Added an answer on June 18, 2026 at 6:30 am

    The variables stored internally by the plugin are used internally by the plugin. Your custom variables are not used internally by the plugin so it makes no sense to store them using the plugin.

    You can store arbitrary data against elements using jQuery’s .data() function.

    http://api.jquery.com/data/

    For example to set:

    $(calEvent).data('calendarId', calendarId);
    

    To retrieve:

    var calendarId = $(calEvent).data('calenderId');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with jQuery weekcalendar plugin to show a webbased calendar with appointments.
I'm currently working with jQuery 1.4.2 and jQuery UI 1.8.2. I'm experiencing some weird
Working jQuery, what I'd like to perform is something similar to the following: $('sometag').children().wrap('<div></div>');
I have a working jQuery script that will cycle through some images. However, when
What is wrong in this piece of html code with some jquery functions? I
For some reason my call to nested jQuery.each() functions are losing scope for some
I pulled a (working) jquery dropdown from some website and I don't really understand
I'm working with jQuery for the first time and need some help. I have
I've been working with jQuery and *.asmx web services lately, and I'm trying to
Still working through JQuery to get data and repopulate portions of a page. Right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.