content-type is your server putting in the header for the JSON data?
> That could be throwing it off.
>
> Also note that a bare primitive value (true, false, null, or a string or
> number) is not valid JSON. The only valid JSON is either an object enclosed
> in {} or an array enclosed in
Hi,
I'm using the following code on the client side:
$.ajax({
dataType : 'json',
// other options
success : function(json_response) {
console.log(typeof response, response); // Using Firefox's
firebug
}
});
And this PHP code on the server side:
Now, us
You need to create a new plugin method:
$(function() {
$.validator.addMethod("no_urls",
function(value, element) {
var re = new RegExp("([a-z\d\\-]+\\.)+[a-z]+)", "i"); // or
whatever RegExp you want
var url_found = re.test(value);
return this.optional(elem
Hi,
I've been using $.get() and $.post() extensively, but then noticed teh
more functional $.ajax, which lets you handle server-side errors using
the "error" option.
The parameters to the callback function for the error option are:
(xhr, status, exception), where in the documentation it says
"ex
Hi there,
Well I finally got Jörn's tool to work:
http://jquery.bassistance.de/docTool/docTool.html
But I'm wondering if there's a list of supported tags.
I found out the hard way that you need to include a "@name" tag, even
if the docblock is right before the code.
Jamie
Hello,
I can't seem to get this to work:
http://jquery.bassistance.de/docTool/docTool.html
Not even with the "Test with Example" code. I click "Generate", and
nothing happens.
I tried it online, and I tried the downloadable version.
Help?
Or is there another one to use?
I really really rea
I couldn't get your link to load, but it sounds like you may need to
do something similar to the following. The image you're mapping would
need to be either relative or absolutely positioned.
Note that #map_area is the area you're mousing over.
#bg_image is the image the map is on.
Not sure if
I get the same error - haven't tracked it down yet. It doesn't show
up in IE - only FF.
nction() {
> return this.removeClass('disabled').attr('disabled', false);
>
> }
>
> On Sep 26, 2:28 pm, livefree75 <[EMAIL PROTECTED]> wrote:
>
> > I actually *JUST* created enable & disable functions:
>
> > (function($) {
> &
I actually *JUST* created enable & disable functions:
(function($) {
/**
* Disables the matched form elements, and adds the disabled class
* to them.
* @return jQuery The matched elements.
*/
$.fn.disable = function() {
$(this)
p track of the time between keyDown events
> then just pick the amount of time you want to trigger on.
> livefree75 wrote:Hi, I have an AJAX GET going out on KeyUp on a text box. I
> want to Cancel the request or ignore the response if a new AJAX request has
> gone out since the first one bega
Hi,
I have an AJAX GET going out on KeyUp on a text box. I want to Cancel
the request or ignore the response if a new AJAX request has gone out
since the first one began. In other words, I only want to process the
AJAX request when the user is "done" entering. a la GMail address
lookup. What'
12 matches
Mail list logo