using Java queery in Cakephp
<script type="text/javascript">
function hideOneShowTwo() {
// again using toupdate form one
// var dataString = 'id='+id;
$.ajax({
type: "Get",
datatype:'json',
url: '<?php echo Router::url(array("controller" => "vacancies", "action" => "getupdate")); ?>' ,
data: {
somevalue: $("#vacancy_id").val()
},
cache: false,
success: function(data) {
// console.log(data);
$("#divone").html(data);
}
});
// return false;
//ending again using toupdate form one
}
$(document).ready( function() {
// var periods = $('#timesheet-periods').val();
// $('#timesheet-id').val(periods);
//console.log(periods);
// $("#timesheet-periods").val($("#timesheet-periods option:first").val());
$( "#btn").click(function() {
// var date=$("#summernote_1").val();
// var ids= $vacancy_id.val();
// console.log(date);
$.ajax({
url : "<?php echo Router::url(array('controller' => 'vacancies', 'action' =>'edit_description'), true); ?>",
type : "Get",
datatype:'json',
cache : false,
data: {
date: $("#summernote_1").val(),
id: $("#vacancy_id").val()
},
success : function(data){
$.notific8(data, {zindex: 1500,horizontalEdge: 'bottom',verticalEdge: 'left', theme: 'lime',});
$("#divone").html('');
hideOneShowTwo();
}
});
$("#2nd_form").hide();
$("#1st_form").show();
});//.trigger('change');
});
function hide() {
$("#1st_form").hide();
$("#2nd_form").show();
}
</script>
function hideOneShowTwo() {
// again using toupdate form one
// var dataString = 'id='+id;
$.ajax({
type: "Get",
datatype:'json',
url: '<?php echo Router::url(array("controller" => "vacancies", "action" => "getupdate")); ?>' ,
data: {
somevalue: $("#vacancy_id").val()
},
cache: false,
success: function(data) {
// console.log(data);
$("#divone").html(data);
}
});
// return false;
//ending again using toupdate form one
}
$(document).ready( function() {
// var periods = $('#timesheet-periods').val();
// $('#timesheet-id').val(periods);
//console.log(periods);
// $("#timesheet-periods").val($("#timesheet-periods option:first").val());
$( "#btn").click(function() {
// var date=$("#summernote_1").val();
// var ids= $vacancy_id.val();
// console.log(date);
$.ajax({
url : "<?php echo Router::url(array('controller' => 'vacancies', 'action' =>'edit_description'), true); ?>",
type : "Get",
datatype:'json',
cache : false,
data: {
date: $("#summernote_1").val(),
id: $("#vacancy_id").val()
},
success : function(data){
$.notific8(data, {zindex: 1500,horizontalEdge: 'bottom',verticalEdge: 'left', theme: 'lime',});
$("#divone").html('');
hideOneShowTwo();
}
});
$("#2nd_form").hide();
$("#1st_form").show();
});//.trigger('change');
});
function hide() {
$("#1st_form").hide();
$("#2nd_form").show();
}
</script>
Comments
Post a Comment