I have a function in ajax:
$.ajax({
type: "POST",
url: "@Url.Action("FiltraLevatamento", "Consulta")",
data: JSON.stringify(jsn),
contentType: "applic...
I'm trying to create a page that stays up-to-date without having to refresh.
I created a Javascript function that looks for select and while of another page, but this is generating high CPU consumption and the server faces have...
I'm trying to submit a form within the same page with $_SERVER['PHP_SELF'] and from that receive a "registered product" alert with a modal Boostrap.
I believe I am not able to link the submit action with the alert.
Working code...
I wanted to know how to add touch swipe events to my slideshow slick carousel .
$(document).ready(function(){
$('.slideshow').slick({
autoplay: true,
autoplaySpeed:4000,
speed:800,
});
});
I have a question in JQuery.
I have the following code, example:
<div class="col-sm-2">
<div class="md-checkbox">
<input type="checkbox" id="checkbox1" class="md-check">
</div>
</div>
<div clas...
In my application I have 2 Views .
One of them is sending the data to the server when the client clicks on submit .
The other needs to wait for this response and run to work with the 'upgraded' data.
How would I do such a thing?
How do you call the callback in javascript when it is named (directly in the statement)?
Example:
Common declaration of a function:
function fn()
{
console.log(fn); // Imprime fn()
return 'do';
}
fn(); // 'do
Declaration (I d...
I'm using the Google Maps API to create Markers in addresses I'm reporting to the js file. Next to this API you also have autocomplete of Google, to complete the address I'm typing in input . The script is working perfectly,...
I'm trying to use something other than the default javascript alert and apparently switching syntax does not work.
For example, this code works.
$mysqlInsert = mysqli_query($conexao,$sqlInsert);
if (!mysqlInsert) {...