Showing posts with label parameters. Show all posts
Showing posts with label parameters. Show all posts

Friday, May 25, 2012

Is Java pass-by-reference?


I always thought Java was pass-by-reference, however I've seen a couple of blog posts (e.g. this blog ) that claim it's not. I don't think I understand the distinction they're making.

Thursday, April 12, 2012

PHP pass function as param then call the function?


I need to pass a function as a parameter to another function and then call the passed function from withing the function...This is probably easier for me to explain in code..I basically want to do something like this:

Sunday, April 8, 2012

Passing parameters to a JQuery function



I'm creating HTML with a loop that has a column for Action. That column is a Hyperlink that when the user clicks calls a JavaScript function and passes the parameters...





example:







<a href="#" OnClick="DoAction(1,'Jose');" > Click </a>

<a href="#" OnClick="DoAction(2,'Juan');" > Click </a>

<a href="#" OnClick="DoAction(3,'Pedro');" > Click </a>

...

<a href="#" OnClick="DoAction(n,'xxx');" > Click </a>







I want that function to call an Ajax jQuery function with the correct parameters.





Any help?



Source: Tips4all