- $.ajax({
- type: "GET",
- url: "/Home/JsonWeekEvents",
- dataType: "JSON",
- success: function (result) {
- $.each(result, function (i, val) {
- var trow = $('
').data("id", val.Id); - //trow.append('
' + val.Id + " " + ' '); - trow.append('
'); - trow.append('
"top" style="padding:2px; width:150px; ');- height:100px">' +
- '
' +' +- '' +
- '
' +- '
' + val.Monday + '' +- '
- '
- tab.append(trow);
- });
- $("tr:odd", tab).css('background-color', '#C4C4C4');
- $("#weekEvents").html(tab);
- },
- error: function () {
- alert("Failed! Please try again.");
- } });
- var tab = $('
');
- var thead = $('');
- thead.append('
FSE' + " " + ' '); - thead.append('
Monday' + " " + ' '); - thead.append('
Tuesday' + " " + ' '); - thead.append('
Wednesday' + " " + ' '); - thead.append('
Thursday' + " " + ' '); - thead.append('
Friday' + " " + ' '); - thead.append('
Saturday' + " " + ' '); - thead.append('
Sunday' + " " + ' '); - tab.append(thead); tab.on("focus", "input[id='tagsM']", function (e)
- { $("#tagsM").autocomplete({
- source: function (request, response) {
- $.ajax({
- url: "/Home/GetSearchValue",
- dataType: "json",
- data: { search: $("#tagsM").val() },
- success: function (data) {
- response($.map(data, function (item) {
- return {
- label: item.Title + ', ' + item.Description, value:
- item.Title,
- Id: item.Id,
- Title: item.Title,
- Description: item.Description,
- Location: item.Location
- }
- }));
- },
- error: function (xhr, status, error) {
- alert("Error!" + xhr);
- },
- });
- }
- });
Loading
Jefferson S. MottaPosted May 19, 2020, 4:17 PM