Category "jquery"

The usage of `header("Content-type:application/json");`

I just created an JQuery ajax function to retrieve some json-encoded data from PHP, here's my code : file name : bank.php $('form').on('submit', function(){

Simple jquery not working to print the input value

Here is a simple code which takes input and print it on the same page. But it is not working when I click on button. Please help regarding this. <html> &

How to add smooth transitions to a very simple javascript slideshow

I have the following JavaScript to make a slideshow: window.addEventListener('load', main, false); var number = 1; var interval; function main() { interv

Jquery: how to trigger click event on pressing enter key

I need to execute a button click event upon pressing key enter. As it is at the moment the event is not firing. Please Help me with the syntax if possible.

Prevent click event after drag in jQuery

I have a draggable <div> with a click event and without any event for drag, but after I drag <div> the click event is apply to <div>. How can

How to prevent default when click on icon inside a anchor link list?

I have a link list with namnes that loads a new page if you click on the li. And besides the name I have a heart icon. And when I click on the heart I want to

How to set time delay in javascript

I have this a piece of js in my website to switch images but need a delay when you click the image a second time. The delay should be 1000ms. So you would click

how show the title value for an input when it gets the focus

If I have <input type="text" name="name" id="name" placeholder="your name" title="only words" value=""/> If the u

Populate jsTree from external JSON file

I've been experimenting with the jQuery.jsTree library and need some help. Please could someone advise me on how to read json_data from an external .json file.

Jquery button click to send AJAX request with Flask and Python

I am trying to make a web application that accepts button clicks. The button clicked then sends a specific device, and operation code to the python application

To set the value to a (textbox) server control using jquery ajax

In the below mentioned code, I am able to set the value attained from ajax call only if I am using the HTML controls(button and text). If I am using asp server

How do I refresh a DIV content?

<div id='here'></div> I am trying to refresh a certain div within a bunch of divs. The div content is basically generated by PHP along with data f

_TOTAL_ token not displaying the number of records in datatable

I am trying to use datatables and i want to display the total number of records in the top left where i have the option to change the number of rows my cod

How to programmatically fill out Microsoft Office Forms form?

My company has a Microsoft Form that I have to fill out around 10 times every month, but the actual form data that I input doesn't change very much. For the fie

Why does my jQuery .done function not fire after .when code?

I tried to load some scripts with jQuery, and after the download is finished I want to execute some code. I expected to get alert(1) called but nothing happens.

Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)

so basically the task is quite simple, but I didn't find any workable solution for my problem. I have a huge upload script on my website (at the moment localhos

Is it possible to export multiple datatables at once?

I need to export multiple datatables in single page and have one export button for all the tables on the page? Any link for suggestions. Thanks!

Variable is not defined

I'm working on a jquery where user selects a category and then a range of years. my problem is I'm getting cats is not defined although it is, and I can see it

FullCalendar V2 Event Title cut off in month view

After upgrading to V2 of jquery fullcalendar I noticed that events with long titles had the title cut off. I worked around this issue by adding CSS, but now an

How to Compress JSON data in angular 4 app using gzip compression & send it to server using Http post?

I am using pako library for compression: var binaryString = pako.gzip(data); At server side (.net core) i am using middleware to decomopress the zipped stri