[jQuery] Re: Passing parameters to a function with a click event

2009-12-15 Thread Scott Sauyet
On Dec 15, 2:34 pm, kenyabob andy.skogr...@gmail.com wrote: http://pastebin.com/m6cd05daa I am trying to call a function and pass parameters regarding the button that called the function. This doesn't seem to do it. What am I missing? First thing I see is that you're not passing a function

[jQuery] Re: Passing parameters to a function with a click event

2009-12-15 Thread kenyabob
Thanks so much. I am still getting used to some of this stuff, and you're explanation makes sense, and your solution works as well, so thanks! On Dec 15, 12:41 pm, Scott Sauyet scott.sau...@gmail.com wrote: On Dec 15, 2:34 pm, kenyabob andy.skogr...@gmail.com wrote:

[jQuery] Re: passing parameters to new Function as array... possible?

2008-07-19 Thread Ariel Flesler
I think your confusing something. If you want to call a function with certain arguments from an array you do: var args = [ 1, 2, 3 ]; var sum = function( a, b, c ) { return a + b + c; }; sum.apply(this, args); // -- 6 If you want to create a function and specify the named arguments with an

[jQuery] Re: Passing this to a function

2008-05-09 Thread markus.staab
you can do it, but this is a usual dom object, not a jquery instance... simple pass the object to through Jquery like ref = JQuery(ref); On 9 Mai, 15:32, mac.gill [EMAIL PROTECTED] wrote: Can i pass 'this' to a custom function from an event handler eg. $('p').('click',function() {

[jQuery] Re: Passing variables between two function

2008-04-13 Thread Decagrog
Sorry for double post... Thanks , simple and works! I've almost no knowledge of javascrpit but jquery is very powerful and intuitive...i'm trying to make a sort of horizontal menu with incorporated a slide for navigate to left and right...it's essentially a trivial thing but if i can make

[jQuery] Re: Passing variables between two function

2008-04-11 Thread Richard D. Worth
Declare the variable in the same scope as each of those functions is declared. For example: $(function() { var pointX; $(.nav_slider).mousemove(function(e) { ... // set pointX here ... }); $(document).scroll(function() { ...// use pointX here... }); }); - Richard Richard D. Worth

[jQuery] Re: passing parameter to anonymous function ( frameready )

2007-12-04 Thread polutan
hello... please help me... :) thx u.. 2007/12/4, Linspirell [EMAIL PROTECTED]: Hello everyone :) i'am a newcomer here :) i have a problem with using JQuery and frameready plugin. i need to modify dom elemen especially the css. i have a iframe in my main document. this is my javascript

[jQuery] Re: passing arguments to javascript function with php

2007-07-19 Thread Karl Rudd
Instead of building a new system entirely use what you have already use progressive enhancement. You have delete buttons, with specific names that correspond with the news items. When they're clicked they submit to a specific URL. What you can do is catch the click and do the submit via AJAX.