Monday, 15 August 2011

javascript - remove previous data in div tag and bind new data to same div tag -


Hello, here I want to remove the data from the div and want to reboot the new data into that device. How can I get this one? Here, with some tags, I am doing the full calendar with diaplaying some events. Here I want to delete the data of that device and want to reboot the new events on the same div tag.

  $ Databotype: "Jason", Success: Function (Data) {$ ('# Calendar'): Ajax ({type: "post", contentType: "application / json", data: datestring, url: "viewsEvent.aspx / gatestate" Full calendar ({Header: {Left: 'Previous, Today's Next', Center: 'Title', Correct: 'Month, Agenda Wake, Agenda Day', // Select: Date Select, click Event: UpdateAvailable, Droppable: false, dragable: incorrect, disabled dragging: true, time format: 'H: mm', selectable: True, selectHelpe R: true, eventTextColor: 'Yellow', eventBackgroundColor: 'purple', incidents: $ .map (data d, function (item, i) {// $ ('# calendar'). FullCalendar ('addEventSource', item) ; Var sdate = item.StartDate var sdatesplit = sdate.split ("/") var sm = sdatesplit [0]; var sm = sm - 1; var sd = sdatesplit [1]; var sy = sdatesplit [2]; Var syearsplit = sy.split (""); var edate = item.EndDate; var edatesplit = edate.split ("/"); var em = edatesplit [0]; var em = em - 1; var ed = e datesplit [1]; Var ey = edatesplit [2]; Var isasplept = IISPlit (""); Var stime = item.EventStarttime; Var stimesplit = stime.split (":"); Var etime = item.EventEndtime; Var etimesplit = etime.split (":"); Var event = new object (); Event.id = item.EventID; Event.start = New Date (Sear Split [0], SM, SD, Stimple Split [0], Stimplify [1]); Event.and = new date (Iapsplit [0], Mind, Ed, EtiSpolit [0], Atitsplit [1]); Event.title = item.EventName; Event.allDay = false; Event of return; })}); }, Error: function (XMLHttpRequest, textStatus, errorThrown) {debugger; }});    

Try it out:

  $ ('# Calendar ') below ();   

or

  $ ('# calendar'). FullCalendar ('deleted');   

View your plugin.

No comments:

Post a Comment