Category : post

I am populating a SharePoint List & DataTable with an HTML form and POST. If I populated the DataTable by creating a new SharePoint List Item, it populates the date field like so MM/DD/YYYY. var item = { "__metadata": { "type": listItemEntityType }, "Title": $("#dTitle").val(), "Program": programName, "Deliverable": $("#dDeliverable").val(), "To": $("#dTo").val(), "Date": $("#dDate").val(), "Approved": $("#dApproved").val(), ..

Read more

Given the following html form: <form class = "new-date" method = "POST" action = "http://localhost:5600/postDate"> <h3>Owner</h3> <input type ="text" name = "ownerName" class = "form-element global" id="owner"> </select> <h3>Pet</h3> <input type = "text" name = "petName" class = "form-element global" id = "pet"> </select> <h3>Schedule the date</h3> <input type="date" id="birthday" name="birthday" class = "form-element global" ..

Read more

I have a javascript function, that generates html based on array for (i = 0; i < cart.length; i++){ newHTML += ‘<div class="cart-item" id="’+ cart[i][0] +’"><input type="text" name="serial" style="visibility:hidden;position:absolute;" value="’+cart[i][0]+’"><input name="price" type="text" style="visibility:hidden;position:absolute;" value="’+cart[i][1]+’"><input name="name" type="text" style="visibility:hidden;position:absolute;" value="’+cart[i][2]+’"><input name="qtty" type="text" style="visibility:hidden;position:absolute;" value="’+cart[i][3]+’"><div class="cart-item-content"><img class="cart-item-content-picture" src="https://carnovato.ru/wp-content/uploads/2014/06/kolenval-kolenchatyj-val-dvigatel-ustrojstvo-1.jpg"/><div class="cart-item-content-info"><div class="cart-item-content-info-upper"><p>’+ cart[i][0] +’ – ‘+ cart[i][2] +'</p></div><div class="cart-item-content-info-lower"><div class="cart-item-content-info-lower-text">’ ..

Read more

I want to show some list in select option so that I send api post request but values not showing. <div class="form-group"> <select class="city_option" id="sellerCity"> <option selected disabled>–select city–</option> </select> </div> selectOption.js: var myObj = { init: function() { this.load_city(); }, load_city: function() { var xhr = new XMLHttpRequest(); xhr.open(‘POST’, ‘https://myurl’, true); xhr.setRequestHeader(‘API-SECRET’, ‘my secret ..

Read more