jquery

Which browsers don't support a HTTP DELETE with jQuery.ajax?

The jQuery documentation for jQuery.ajax() says the following: Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers. jQuery itself says it supports IE 6.0+, FF 2+, Safari 3.0+, Opera 9.0+ and Chrome. So which (if any) of the above does not support an HTTP ...

ASP.NET MVC with tree - pattern

Hello, I am preparing a skeleton of ASP.NET MVC application with basic CRUD functions on Products and Parts included in these products. Application contains couple of strongly-typed views based on the MasterPage and now I want to add a widget to display the menu tree. This menu tree is going to reflect the Products/Parts structure so it ...

Datetime picker below div

Can anyone help me discover why my datetime picker is hiding behind the rest of the divs? http://www.lcslegal.co.uk/booking-form.html I have added this line of css to try and fix it in custom.css but to no avail: .ui-datepicker, #ui-timepicker-div { z-index:1003; } ...

storing jquery selectors in an object

The following does not seem to work - IT.TopSlide = { selectors : { div : $('#top-slide'), signup : $('#top-slide #signup'), login : $('#top-slide #login'), signup_trigger : $('#header .top-slide-triggers a.signup-trigger'), login_trigger : $('#header .top-slide-triggers a.login-trigger'), close : $('a.close') }, init :...

Getting rid of Microsoft AJAX

We wrote a couple of controls using Microsoft AJAX (cs class + js class). Now I'm thinking about getting rid of it (just use jQuery), as it is bloated and we don't use UpdatePanel. My question is: how should I change my controls? Right now they implement IScriptControl, which uses Microsoft AJAX features (if I understand correctly, Scrip...

jQuery detect form changes

Hello everybody! Hope to get a little help from you guys. Im using this script when detecting if a form has changed or not. If so, when I click a href link with a certain class a confirm window will popup. var formChanged = false; $(document).ready(function() { $('#my_form input[type=text].editable, #my_form textarea.editable').each...

Regex behaving differently in IE6/IE7

My HTML is something like this : <select> <option>ABC (123)</option> <option>XYZ (789)</option> </select> What I'm trying to do is: using JQuery and a regex, I replace the "(" with <span>( here's my JQuery line: $(this).html($(this).html().replace(/\(/g,"<span>(")); It's working as intended in Firefox, chrome and safari, ...

jQuery event only every time interval

$(document).ready(function() { $('#domain').change(function() { // }); }); The code inside the change function will basically send ajax request to run a PHP script. The #domain is a text input field. So basically what I want to do is to send ajax requests as user types in some text inside the text field (for example...

Find Hover CSS Attribute

Lets say I had an element with multiple classes, one of these classes has a hover pseudo-class. Lets say this will change the colour. So what I want to do is find out what colour the element will change to when hovered over. Then I want to override this with Javascript/jQuery. ...

jQuery - Getting custom validation methods to trigger

If I've added a custom validation method to my form, how can I get it to trigger prior to submit? I'm not decorating my form fields but I thought that adding the new method to my rules section would trigger the method but it doesn't work. $.validator.addMethod('myCustomValidation', function (data) { // do some work here return ...

Highlight, then fade highlight, for list items dynamically added to a list

I have an unordered list on a page. When that page is refreshed through Ajax, new list items may come back that will be dynamically added to the unordered list. When the new list items get added, I would like to highlight those new list items, but fade the highlight out after a specified time. I have tried animate and the jquery hig...

How can I make my text stay in side of my JQuery slider

Hi, I have tried everything as far as widths and margins. The problem is I have a background image and when I use a width that makes the text stay inside the slider during scroll, it cuts off my image. That being said, I have everything set to what I want, except the text issue: here is the CSS: #wrapper { width: 550px; margin:0...

Error: [Exception... "Access to restricted URI denied" .... while calling $.ajax method

I am getting this error while calling $.ajax methods Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "xxxxxx" Line: 19"] Source File: xxxxxxxxx Line: 19 I am passing URL paramter as http://www.xyz.com/myscriptfolder/myfile.js . The $.ajax method works well w...

In jQuery, how can I select different elements by the name attribute?

I am trying to loop through some elements in a form (radios, text boxes, and select boxes) and get the value from each element. I am looping through by the name of each element (I don't think I can use ID because a group of radio buttons all have different IDs, but all have the same name). Here are 2 selectors that encompass all the el...

Calling a jQuery plugin without specifying any elements

Say I have the following jQuery plugin: $.fn.myPlugin = function () { //plugin code } Normally, you call a plugin on a certain number of elements, like such: $("body").myPlugin(); Is there any way I can call my plugin without specifying an element? I have tried calling it like such: $.myPlugin();, but that does not work. Wh...

jquery set div width fails in IE7

I have the following code and it works correctly in FF and IE8 but fails in IE 7 anyone have an idea or hack if ($("#midRight:contains('Quick Links')").length == 0) { $("#midCenter").css({'width':'298px'}); } html is basic <div id="midRight"> bunch of text </div> the starting css is #midRight {width:440px;} IE7's jav...

Fix a warning thrown by HTML Validator

Hi I have some JavaScript code in my php website. This code uses jQuery, and builds a < select > menu using ajax calls. Here is the code sel.append('<option value="' + data[i].id + '">' + data[i].nombre + '</option>'); And this gives me the following warning line 240 column 82 - Warning: '<' + '/' + letter not allowed here Does any...

Help with my first own object in JavaScript/jQuery

I have written a PHP script that checks whether a domain is available for registration or not. To automate the process, I have also written a js script that automatically sends AJAX calls to the PHP script and tells the user whether the domain is available or not, without submitting the form: $(document).ready(function() { functio...

Using jQuery inArray with array of JavaScript Objects

Hello all, I'm working with an array of JavaScript Objects as such: var IssuesArray = [{"ID" : "1", "Name" : "Issue1"}, {"ID" : "2", "Name" : "Issue2"}, {"ID" : "3", "Name" : "Issue3"}]; My end effort is trying to remove an object from the array when I know the ID of the object. I'm trying to u...

jquery conditional logic for currentpage

I'm using jQuery for a vertical site navigation menu, all links within site. I have the basic functionality working, but am at a loss as to the correct if-else to accomplish the following: As the code stands, the submenu items are always initially hidden, but I want them to start shown if the user-selected li or one of its child lis is ...