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 ...
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 ...
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; }
...
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 :...
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...
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...
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, ...
$(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...
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.
...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...