Re: [jQuery] onclick send parameter to a JQuery function?

2009-12-08 Thread Michel Belleville
I fail to see where your problem was related to your question ; anyway, what I just explained will work with AJAX (that was even the point really), you just have to add the .load() or the .get() and give them the appropriate parameters to have a nice and shiny ajax interface for your users to enjoy

Re: [jQuery] onclick send parameter to a JQuery function?

2009-12-08 Thread Themba Ntleki
Thanks Michel, I found a solution, my mistake was trying to create the function inside : $(document).ready(function() { the onClick could not find the function. I have defined the function separately and the onclick does work. Basically, I want to do the edit action using ajax, but thanks a mil f

Re: [jQuery] onclick send parameter to a JQuery function?

2009-12-08 Thread Michel Belleville
First of all you'll need to write your $ec_arr[4] somewhere in your page, or your client-side jQuery script won't be able to even guess it. Ideally it should be placed as near as possible from your edit link. Wait, what's a link for ? Bringing the client to another url, the href attribute exists fo

[jQuery] onclick send parameter to a JQuery function?

2009-12-08 Thread theUnseen
Hi guys, I show a table with mysql data with an edit option/link for each record, but i want the edit link to call a jquery function onclick and it must pass the $ec_arr[4] as the argument/parameter which is the id of the record in the mysql table to JQuery. how can I do this please...?