i want to save data into sharepoint calendar list using javascript?i tried some thing but that is unable to save data into list
i want to create new event in SharePoint calendar list in which I have some custom columns,i tried below code but it is not working      function bookingRoomForMeeting() {         var ctx = new SP.ClientContext(appWebUrl);//Get the SharePoint Context object based upon the URL           var list = ctx.get_web().get_lists().getByTitle("MyCalendarList"); //Get the List based upon the Title         var listCreationInformation = new SP.ListItemCreationInformation(); //Object for creating Item in the List         listItem = list.addItem(listCreationInformation);         listItem.set_item('Title', $("#txt_Title").val());         var date = $("#txt_startTime").val();         var dateTime = moment(date, 'DD/MM/YYYY HH:mm a').format("MM/DD/YYYY HH:mm a");         listItem.set_item('EventDate', dateTime);         var enddate = $("#txt_endTime").val();         var enddateTime = moment(enddate, 'DD/MM/YYYY HH:mm a').format("MM/DD/YYYY HH:mm a");         listItem.set_item('EndDate', enddateTime);         listItem.set_item('EmailId1', $("#txt_EmailId1").val());         listItem.set_item('EmailId2', $("#txt_EmailId2").val());         listItem.update();         ctx.load(listItem);         ctx.executeQueryAsync(             Function.createDelegate(this, success),             Function.createDelegate(this, fail)            );     } function success() {     alert("Completed"); } function fail() {     alert("operation failed"); }   list am using is SharePoint hosted app list,can any one tell me where am going wrong?
Possible Duplicate:          I know that I have to find the number of factors of $5$'s, $25$'s, $125$'s etc. in order to do this. But how can you derive such a formula for any number $n$? Trying to identify a science fiction short story from an anthology likely published before 1991.  Aliens invade during a nuclear war (which would be World War III, WWIII, WW3). The warring nations then turn their nukes on the landing sites, but the invasion succeeds.  Believe the setting is in the U.S., possibly Pacific Northwest, but definitely a mountainous region.  Based on negative inference from the aliens' description of humans as fur-less, no-tail, bipeds (or similar), the aliens are apes or monkeys.  The aliens describe Earth as worse than the Hell planet they previously conquered. They see our tanks and think that we can't have more than a few of those to fight with.  Yet the aliens are somewhat benign, as they take some children back to their parents for a stern talking-to after the children run an alien convoy off the road into a chasm by stringing a rope across the road. UBUNTU 14.04 cheese booth not detect webcam Cheese Booth shows an error:     There was an error playing video from the webcam     I test if webcam works fine or not by opening google hangout, its works fine.    Please tell, what is the issue in cheese booth.  Note: Sometimes the cheese booth works fine but most of time not I want create my own IDE but I want a code editor that would syntax highlighting.  I want to embed it as a control into a WPF window.  Malcolm I want to learn Linux Kernel and I've downloaded the latest kernel version. Now I want to configure Linux with make menuconfig and I'm receiving an error:     Arch/x86/Makefile:184  Compiler lacks asm-goto support...   Can somebody help me? When conducting multiple regression, when should you center your predictor variables & when should you standardize them? In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)? How do I rename a domain and preserve SEO? As part of graduating from Area51 and becoming a full fledged site we sometimes change domain names from http://topic.stackexchange.com to http://example.com. Aside from the obvious 301 redirect rules to support existing urls transparently, are there other techniques that would aid in the preservation of SEO? PHP generate file for download then redirect What resolution should a large format artwork for print be? For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print? How can I find the files that were stored on my flash drive before I installed Ubuntu to it?   Edit: No, I didn't format it, my files are still on the flash drive root. I just need to know how to access them there. Filesystem owner changed by mistake Why do people buy stocks that pay no dividend? Before recently, Apple Inc. did not give dividend to shareholders.  This makes me curious why people buy Apple Inc. stocks; while it might be due to the expectation of selling stocks at a higher price, this can only be possible if other people are thinking the same, thereby increasing demand. But the stocks themselves do not pay interests - so Apple's amazing revenue/profit records would not matter.... Reading a file used by another process How can I calculate the number of work days between two dates in SQL Server?   Monday to Friday and it must be T-SQL. How to get all Perfect or Near-Perfect Matchings of a graph Why does my material panel look different? Complete beginner here.  I'm trying to follow  tutorial on Anisotropic shaders, but my property panel looks nothing like the property panel in the tutorial.  For example, when creating a material, this is what his property panel looks like:    But this is what mine looks like, if I follow the same path:    I'm sure I'm missing something obvious.  How can I see the property panel shown in the tutorial? df -h - Used space + Avail Free space is less than the Total size of /home As the output of df -h shows here, something is eating up 5GB of free space. So, it's not available to use.   I'm also noticing sometimes that the hard disk gets filled up to 100% sometimes. So, I had to restart the machine or delete some unncessary files. Only noticed these in /home partition. Don't know whether these two are related, but appreciate if anyone can put some insight into this.  $ df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda8             100G   92G  2.7G  98% /home Is it "a SSD" or "an SSD"? Possible Duplicates:             Since SSD (solid-state drive) is pronounced es-es-dee, I'm wondering whether one should write "an SSD" or "a SSD". Saying "a SSD" out loud feels a bit off... What can I use to typeset MATLAB code in my document? This question led to a new package:      Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode package emerged as a possibility, but it seems to be unmaintained...  I have a ton of equations in my code, so I'd prefer a solution that avoids having to use $ to denote equations.  Also, if possible, if there's a way to keep all of MATLAB's "natural" coding colors (e.g. green for comments), that would be great...  Any idea? How to change font-size, number of rows / columns in the console I'm running a Linux server without X11 or any kind of GUI, with a modern 22" LCD monitor.  Given the huge size of my monitor, I would like to increase the number of rows and columns in my console, how can I go about achieving it?