It almost sounds to me like you're confused on what jQuery actually is?  "
Does it works similary like woring with Javascript and DOM ?" in your email

jQuery is a code library for use by javascript code.  It provides easy
access to the DOM and tons of other convenient features for you, so that
you don't have to implement them yourself in javascript.

In javascript, you would define a function as follows

function foo()
{
//code here
}

or, several jQuery functions can take anonymous functions as input.  For
example
jQuery.get("http://www.my-great-site.com",function(xml){
//code here can use the xml returned by the http get
}

does that help at all?

Here is a reference on creating javascript functions:
http://www.w3schools.com/js/js_functions.asp


cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone:  1-276-206-8393
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


                                                                       
  From:       MorningZ <morni...@gmail.com>                            
                                                                       
  To:         "jQuery (English)" <jquery-en@googlegroups.com>          
                                                                       
  Date:       06/12/2009 09:00 AM                                      
                                                                       
  Subject:    [jQuery] Re: how to make a function with JQuery          
                                                                       






jQuery *function*?

Do you mean jQuery plugin?

http://www.learningjquery.com/2007/10/a-plugin-development-pattern


On Jun 11, 10:54 pm, marcelsnews <marcelsn...@gmail.com> wrote:
> Hello every one,
>
> I'm a new user of JQuery and i'm trying to use it on a web site that
> i'm building. Keep in mind that i'm also new on the web.
>
> So i wanted to know:
> -  How to define a function with JQuery.
> -  Does it works similary like woring with Javascript and DOM ?
> - Shall my function, if allowed, be defined in the $(document).ready
> () ... ?
>
> thank

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to