[jQuery] Re: AJAX w/dataType='json', doesn't correctly handle boolean response?

2009-11-20 Thread livefree75
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

[jQuery] AJAX w/dataType='json', doesn't correctly handle boolean response?

2009-11-19 Thread livefree75
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

[jQuery] Re: (validate) preclude, deny, disallow or prohibit URLs from submitting

2009-10-21 Thread livefree75
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

[jQuery] How to supply the xhr exception object to $.ajax()?

2009-08-21 Thread livefree75
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

[jQuery] Jörn Zaefferer's documentation generator - documentation?

2009-04-16 Thread livefree75
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

[jQuery] Jörn Zaefferer's documentation generator

2008-12-02 Thread livefree75
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

[jQuery] Re: Can I make image change only by part of it?

2008-11-13 Thread livefree75
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

[jQuery] Re: Permission denied to get property XULElement.accessibleType

2008-11-11 Thread livefree75
I get the same error - haven't tracked it down yet. It doesn't show up in IE - only FF.

[jQuery] Re: suggestion - enable() / disable() functions

2008-09-27 Thread livefree75
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($)  { > &

[jQuery] Re: suggestion - enable() / disable() functions

2008-09-26 Thread livefree75
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)

[jQuery] Re: AJAX Cancel? (sorry, hit post before I was done)

2008-04-22 Thread livefree75
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

[jQuery] AJAX Cancel? (sorry, hit post before I was done)

2008-04-21 Thread livefree75
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'