Category "jquery"

Dynamically resize the pixi stage and it's contents on window resize and window load

I'm trying to dynamically resize the pixi stage (canvas and contents) on window resize. And also have it initially load at the size of the browser window witho

Uncaught TypeError: r is not a function

I've definitely linked to the jQuery UI javascript and CSS files correctly - when I view the page source, they're all there. Why am I still getting this error?

Mapping Ajax Request in Spring MVC: getting error 405 method not allowed

After making the ajax call I am getting error 405 method not allowed. I am using Spring 3.0.1, Spring-web 3.0.1. Here is the controller mapping @Controller p

how do i pass info.startStr into an html input inside a modal window?

I am calling a modal upon clicking/selecting a date (NOT EVENT) in FullCalendar: select: function(info) { var sdate = info.startStr; $('#fullCalModalAdd').

Jquery DataTables: Data not displaying in table via Ajax

My problem is that Jquery DataTables is hanging at Loading and will not display any data from the php script: Here is my HTML: <!-- Default box --> &l

Remove last line from string

How do I remove the last line "\n" from a string, if I dont know how big the string will be? var tempHTML = content.document.body.innerHTML; var HTMLWithoutLas

How can I change the size of bootstrap slider?

Jsfiddle link is https://jsfiddle.net/gzp0pcot/ I am using Bootstrap slider from https://github.com/seiyria/bootstrap-slider I tried to change it using css

Enable and disable button with ajax content response

I cannot get why its not working with me. I know to enable and disable button using attr and prop. $(document).on("click", "#btn", function(){ $(this).h

data-offset in Bootstrap Scrollspy is not offseting at all

Any value I set to data-offset for scrollspy does not work at all. Here are the relevant html, css, and js code: HTML <nav class="navbar navbar-fixed-top

Why isnt my jQuery/Javascript working?

Trying to learn some basic javascript and api usage. Trying to get some weather information from Open Weather Map but none of the alert or console.log requests

Append external file to head

I'm trying to load a file into the head… but also keep what is currently in the head. At the moment… the file loads into the head, but it removes

Add a transform value to the current transforms that are already on the element?

Let's say I have a div that had translateX and translateY values added dynamically. <div class="object child0" style="-webkit-transform: translateX(87

jQuery.on() does not work in WordPress admin panel

I'm writing my own WordPress(4.1.4) plugin which uses some JavaScript code in admin panel. The first issue is $ object is undefined, so I use jQuery instead.

Filtering result based on checkboxes with jQuery using value and class

To start off with here's a fiddle of what I have right now: link to JSFiddle, code below: <!DOCTYPE html> <head> <title>Homes Selection Te

Pop the last state from history

Is it possible to get the html of the last state pushed to history stack, something like this: history.pushState(null, null, {html: $('body').html()}); Chan

generate 4 digit random number using substring

I am trying to execute below code: var a = Math.floor(100000 + Math.random() * 900000); a = a.substring(-2); I am getting error like undefined is not a funct

Put only integers in x and y axis of bar and line graphs - Flot

In Flot.js, bar graphs and line graphs have numbers as the coordinates in the x and y axis by default. How can you make the coordinates such that the numbers

Best way to scrolldown onpageload

I have the following code: <script type="text/javascript"> window.onload = function () { window.scrollBy(0, 100); } </script

Best way to trigger an ajax call for loadining infinite elements?

Problem: I am writing a website that shows users photos. By default my api returns a certain number of photos by default (20), I want if the user keeps scrol

jQuery DatePicker set time and date

Hello I was asked to modify some code. We got something like this: $("#expiration_datepicker").datetimepicker( "option", "disabled", false ).attr('value', '');