Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function editEvent() {
- var id = '<?php echo $_REQUEST['id']; ?>';
- var title = document.addevent.title.value;
- var description = document.addevent.description.value;
- var image = document.addevent.image.value;
- var dates = document.addevent.date.value;
- var time = document.addevent.tStart.value + " - " + document.addevent.tEnd.value;
- var date_post = document.addevent.date_post.value;
- var campus_list = $('input:checkbox:checked').map(function() { return this.value }).get();
- var url = "events.php?action=update&id=" + id + "&title=" + title + "&description=" + description + "&image=" + image + "&dates=" + dates + "&time=" + time + "&date_post=" + date_post + "&campus_list=" + campus_list;
- var xmlHttp = null;
- xmlHttp = new XMLHttpRequest();
- xmlHttp.open("GET", url, false );
- xmlHttp.send(null);
- alert(xmlHttp.responseText);
- //window.open("http://les.lincoln1.local/edit_campus_events.php", _parent);
- window.parent.location = "http://les.lincoln1.local/edit_campus_events.php";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement