[LRUG] Intermittent jQuery Problem

Damian Janowski damian.janowski at gmail.com
Tue Oct 27 10:24:51 PDT 2009


On Tue, Oct 27, 2009 at 1:40 PM, Andrew Stewart
<boss at airbladesoftware.com> wrote:
>>  I suspect you might have a scoping problem, Sometimes you might see a
>> weird behavior of eventhandler calls when you try to access the data
>> referenced out of its scope.
>
> Ok, that sounds plausible.

I'm not sure, if the variable was empty you would still get the
load[sample_id] key in the params hash.

Are you sure you're getting a request, just without the data? If
that's the case, then I'd try removing the call to the $.ajax method
altogether and see if you're still producing a request (maybe there's
another piece of code generating it?). If that works as expected, I'd
try removing livequery and use a normal click, see if it works, etc
etc.

(BTW, if you're using 1.3+, I think you can use the live method which
is built in).



More information about the Chat mailing list