[jQuery] Re: Using jQuery inside an ordinary function notes!

2008-02-12 Thread J Moore
saidbakr, you're still not understanding how the method calls are 'asynchronous'. Read Karl's reply again. It's full of good info. adding a "return true" or "return false" to your success or error methods won't do anything. You need to add code to fully handle the response. (Basically where you

[jQuery] Re: Using jQuery inside an ordinary function notes!

2008-02-12 Thread J Moore
(also the 'el' variable in your code is undefined.) On Feb 11, 1:28 pm, saidbakr <[EMAIL PROTECTED]> wrote: > Hi, > > I think that my problem is complicated. I already done what you have > told me due to the following requirement: > > I have another function used for doing form validation which

[jQuery] Re: Using jQuery inside an ordinary function notes!

2008-02-11 Thread saidbakr
Hi, I think that my problem is complicated. I already done what you have told me due to the following requirement: I have another function used for doing form validation which I named it as formVal(). Inside formVal() I called avaChk() in a conditional if statement i.e. if (avaChk()){ I mo

[jQuery] Re: Using jQuery inside an ordinary function notes!

2008-02-10 Thread Karl Rudd
It's a easy misunderstanding to have when you first begin to use AJAX. Remember that the first 'A' in AJAX stands for "Asynchronous". You ask the browser (via jQuery's ajax function) to retrieve a URL and you give it a function that it will call with the result when it has retrieved it. The brow