jquery

Jquery plugin qTip - scrollLeft is not a function

Hello all, I am trying to make use of this JQuery plugin: http://bit.ly/2TXYrb I have tried to implement it but I get an error reported by firebug. f(window).scrollLeft is not a function [Break on this error] (function(f){f.fn.qtip=function(B,u){var...asses:{tooltip:"qtip-blue"}}}})(jQuery); Please have a look at my setup: http://bi...

image shows only when debugging

Hey All, I have a partial view that contains an img like so: <img src="" alt="test" id="chartImage" style="display: none;" /> And then in my view that contains it my javascript looks like this: if ($(this).val() != '') { setTimeout(function() { $('#chartImage').attr("style", "") ...

Access to restricted URI denied" code: "1012 - Cross domain Ajax request

Hello Guys I Need to do cross domain Ajax request - Here is my code $.ajax( { url: redirectURL, data: $('#login-container form').serialize() + querystring, type: 'post', cache: false, dataType: 'jsonp', jsonp: 'jsonp_callback', }); Error: [Exception......

Detecting IsAjaxRequest() with ASP.NET MVC and JQuery Form Plugin / File Upload

I'm using the JQuery Form plugin to do a file upload on an ASP.NET MVC application. I've learned that since an iframe is used for file uploads (rather than XMLHttpRequest, which isn't possible), the server-side check for IsAjaxRequest fails. I've seen a few posts related to this question but haven't come across any good solutions to wo...

Disabling links to stop double-clicks in JQuery

How would I disable all links with the button class after they are clicked once? I'd like to be able to do this in one place, and not have to change all of them individually.. any ideas? So far I got this: $("a.button").click(function() { $(this).attr("disabled", "disabled"); }); $("a[disabled]").click(function() { return false; }); ...

How to resize height of parent container (say DIV) using JQuery

I am struggling on the following objective (I am a new bee to JQuery). I would like to have a parent container (say DIV) to increase its height automatically when any (or all) of its child controls resizes. The DIVs may contain both inline and absolutely positioned elements (even relatively). In other words, the container should autom...

jquery: capture keycodes inside prototype function

hi, i'm trying to capture keystrokes inside my prototype function, here's my code: function txtBox(input) // pass textbox { this.id = "myTextbox"; this.txt = input } txtBox.prototype.init = function() { this.txt.bind("keyup",this.keyup); } txtBox.prototype.keyup= function(event) { alert("keycode: event.keyCode); ...

Jquery plugin DataTables, custom filtering

Hi. How can I set a custom filter in my code to ignore accents and special character from the table before filtering? I am using DataTables plugin (http://www.datatables.net/) ...

Jquery validate date range fails

I have an HTML page with a web form. Among other things, it includes the following form fields: Title - textbox SourceName - textbox Url - textbox FullText - textbox PublicationDate - textbox using jQuery datepicker UI StartDate - textbox using jQuery datepicker UI EndDate - textbox using jQuery datepicker UI I am trying to implement...

how can we date mask a text field using javascript / jQuery?

I am having a text field for date. Now i would like to mask this text field so that a user can input only date value. I even found a jQuery plugin for this. But that doesn't seems to help, as you can input 22/22/2222 in the field that too is accepted by this plugin, which is obviously not a valid date. What is the possible solution? ...

Using a changing variable in JQuery's nextAll()

Hi, With jquery, I'm dynamically adding rows. To do this, I'm copying the first of the table and then with some regex I'm changing the names and sometimes ids from thing like "column_name[0]" to "column_name[1]". This is the regex that I'm using: newRow = newRow.replace(new RegExp("\\[[0-9]+][\"\']", "gm"), "[" + $("#rowNum").val() ...

jQuery hover problem!

http://ftp.crashboxcreative.com/ftp/EastsideBaptist/EBC-Final/ I'm having a lot of trouble with a simple jquery show/hide effect. When you hover over the slider, nav buttons fade in. Likewise, they fadeout on mouseleave. The problem is, they fadein/fadeout when you hover over a button! How can I make jQuery ignore a hover over the b...

JavaScript mechanism for holding onto a value from a user action

I've created a JavaScript object to hold onto a value set by a user checking a checbox in a ColorBox. I am relatively new to jQuery and programming JavaScript "the right way" and wanted to be sure that the below mechanism for capturing the users check action was a best practice for JavaScript in general. Further, since I am employing jQ...

jQuery resize to aspect ratio

How would I resize a image in jQuery to a consistent aspect ratio. For example setting maximum height and have the width resize correctly. Thanks. ...

jQuery rounding problem with .val()

I have a textbox where a user inputs a number, like: 105.14 When I use jQuery to read it: alert(parseInt($("#Info").val())); It displays "105". Why can't I get the remaining .14???? I'm sure it's something obvious.... ...

jquery load breaks when the hostnames are different

The code segment is from a page called "sites-catchup.html". There is a simple server side page called "max-change-num-ajax.html" which returns a single number (without any html). If the page is requested by calling http://tiddy:8080/rsm/sites-catchup.html then it all works. However if I call http://localhost:8080/rsm/sites-catchup.htm...

Hover FadeIn FadeOut

I am trying to create a hover over action which brings in a coloured image and also once the hover is removed it fades back to its original image. Currently it fades out the image to nothing and then fades the new one in. This will then stay in place regardless of whether i hover off or no. //Loop through the images and print them to t...

jquery not selecting option tags when value contains space

Do I need to somehow escape a space when using jquery to select with contains/find? I am mocking this up so pardon the typos... If I have a SELECT tag that has some options <select title="animals"> <option value="Dog Black">Dog Black</option> <option value="Cat Black">Cat Black</option> <option value="Dog Brown">Dog Brown</option> </se...

getting the contents of a function in an `onclick` attribute in my html with jQuery

What?! I know, what a bad idea. Firstly I have no control over the html that was output, its from a vendor and it is produced via their crazy system that our company has an agreement with. (let's not talk about the situation, I know it's not optimal) In the html I have: <a id="notify" onclick="location.href='index.php?foo=bar';retur...

jquery iframe css firefox bug?

Without going in to detail on what these methods do, can anyone tell me why I get these weird results? getCurrentIframe().findInIframe("h2").css("paddingLeft") // gives me "20px" how ever if I do .get(0) or [0] to get the dom-element and then rewrap it in a $ I get: $( getCurrentIframe().findInIframe("h2")[0]).css("paddingLeft") //it...