[jQuery] Re: Stumped by AJAX and events

2008-09-05 Thread Jon Drukman
On Sep 4, 12:19 pm, JDawson <[EMAIL PROTECTED]> wrote: >   alt="Search" /> > >   $("#btn_recipient_search").click( >     function() { >       getRecipients("John", "Doe"); >     } >   ); i see you solved it but if you want it to work with an you probably need to use preventDefault() try: $("#b

[jQuery] Re: Stumped by AJAX and events

2008-09-05 Thread Jack Killpatrick
d'oh, I didn't even realize that you were using an image input type. Glad you found it and thanks for sharing the result. - Jack JDawson wrote: I finally figured it out! The input was in a form, so the implicit form submit was apparently interfering with the AJAX callback. This doesn't

[jQuery] Re: Stumped by AJAX and events

2008-09-05 Thread JDawson
I finally figured it out! The input was in a form, so the implicit form submit was apparently interfering with the AJAX callback. This doesn't work: ... This does: ... John On Sep 4, 11:23 pm, Jack Killpatrick <[EMAIL PROTECTED]> wrote: > Sounds like you might having a caching

[jQuery] Re: Stumped by AJAX and events

2008-09-04 Thread Jack Killpatrick
Sounds like you might having a caching issue. Try these: once: $.ajaxSetup({cache:false}); // global setting to prevent caching then do your $.get's as you have them. Or: append a timestamp to your get url: $.get("recipients.xml?" + new Date().valueOf().toString(), - Jack JDawson wrote: I