Category "jquery"

Show popup on mouse location

I am having troubles with getting a popup to come up at the exact location of my mouse click. I want to be able to click a DIV (that is inside a table cell) and

how to create elements dynamically in HTML using JSON file

I want to create HTML elements dynamically using JSON file. {"myObject": { "JAVA": { "id": "JAVAsubj", "path": "json/data.json" }, "C#": { "id": "

event.ctrlKey is not functioning in IE

$('a').click(function(event){ if( event.ctrlKey || event.target.href){ return false; } }); Working fine in Firefox and Chrome, but not in IE. Plea

How can i force ContentFlow to show all items when there are not enough items to fill all spaces?

Hello everyone who reads this.. i'm experimenting with ContentFlow.js i have 5 image items in the flow. Content flow is configured to show 7 on both sides. In

IE9 - Not able to disable ESC key to stop closing lightbox

I have used below code - Its not working on IE9 but works fine on Firefox and Chrome $(document).ready(function(){ if (document.addEventListener) { // al

Yii Ajax Submit button

Yii 1.1.14 I'm trying to make a popup to select a year and then get some reporting output for the selected year : The popup is generated by CJuiDialog. Insi

How to display alert boxes based on if a check box is checked or not using Javascript

I am trying to make it so that if the checkbox on our page is checked it will display an alert message notifying the user they have opted in to showing their ch

Dynamic XML flow problem with jQuery parsing to HTML page

The problem I have is that this jQuery: <script type="text/javascript"> $(document).ready(function(){ $.get('CampusList.xml', function(xmltre

Click a button element on page load

I'm trying to auto-click a button to initiate a function when the html page loads. I've tried document.getElementById('watchButton').click and it doesn't seem t

Failed to load resource: Preflight response is not successful

Am trying to call CORS Rest API but am getting this error: Failed to load resource: Preflight response is not successful This happens on my cordova apps a

External link to anchor - can you delay scroll?

I need to link to directly to an anchor on my site, such as #about. This works fine when you link within the same page. However, when I need to link to the anch

jQuery ajax serialize only 2 fields

I know how to serialize the whole form like in example below or one specific field of the form by just changing the line: data: $('form').serialize(), to d

Sliding web page transitions (jQuery)

Although there are similar questions on this site, non seem to quite answer my question... I have a 5 static page website which looks like the inside of a hair

Rounding issue in Math.round() & .toFixed()

I used below two methods : Number.prototype.myRound = function (decimalPlaces) { var multiplier = Math.pow(10, decimalPlaces); return (Math.round(this

Rails: Turbolinks back to top of page

I am using turbolinks for rails; whenever I click on a link the page scrolls down to the previous page's scroll position. I want all my pages to load such that

telerik radGrid - persist client state on sort/paging/filter

Even in this ajax example which I really like the look of, when ever the top level grid is sorted the "state" of what you were doing "disappears" For example,

Reload parent page after submit in iframe

I have the same issue as in this question. (which has no correct answer, I just test all of them): Reload page after submit in iframe (javascript/jquery) What I

shorthand switch statement with conditional OR operator

Is it possible to do that? For exanple for 'a' or 'b' is equal to 'X'. If 'c' or 'd' or 'e' is equal to 'Y' var qwerty = function() { var month = 'a';

JQuery: Deferred loading of JQuery and '$ not defined'

I cannot wrap my head around this issue and the vast offer of information I found on the net: On my project the JQuery is loaded with "defer". This I cannot ch

Show Hide DIV with Jquery

I have this simple JQuery Show/Hide function that obviously show and hide a div. There are three things I cannot do on my own. <script type="text/javascript