Questions tagged [param]
304 questions
36
votes
5 answers
How Exactly Does @param Work - Java
How does the annotation @param work?
If I had something like this:
/*
*@param testNumber;
*/
int testNumber = 5;
if (testNumber < 6) {
//Something
}
How would the @param affect the testNumber? Does it even affect the testNumber?
Thanks. Let me…

user2228462
- 589
- 1
- 5
- 14
34
votes
2 answers
PHPDoc optional parameter
There are already 2 similar questions of this type here on SO but none of the answers seem to work.
PHPDoc doesn't seem to recognize optional parameters in my functions as optional, for example:
/**
* Opens the connection and sets encoding
*
*…
user2742648
30
votes
4 answers
How to work with infinity arguments in a function (like PHP's isset())
You know how PHP's isset() can accept multiple (no limit either) arguments?
Like I can do:
isset($var1,$var2,$var3,$var4,$var5,$var6,$var7,$var8,$var9,$var10,$var11);
//etc etc
How would I be able to do that in my own function? How would I be able…
user849137
29
votes
6 answers
What does @param mean in a class?
What does the @param mean when creating a class? As far as I understand it is used to tell the script what kind of datatype the variables are and what kind of value a function returns, is that right?
For example:
/**
* @param string $some
* @param…

Chris
- 6,093
- 11
- 42
- 55
28
votes
2 answers
JSDoc @param together with @deprecated
I have a JavaScript function getting some parameters including object types. However, one property of a parameter, which is an object, will be used as deprecated. I would like to indicate this situation in the documentation, however I don't know how…

moztemur
- 941
- 1
- 9
- 22
22
votes
6 answers
Convert $.param in angularjs
Before I am using JQuery and I use this to send URL with parameter
window.location = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
but with angularjS this does not work the same way
$scope.myButton = function() {
…

vintot
- 260
- 1
- 2
- 10
21
votes
5 answers
pass java variable in jsp:param
<%!
String str = "prerna";
%>
>
I want to pass a java variable in the param tag,but i am not sure how to do it.
I…

Deep
- 461
- 5
- 9
- 17
19
votes
9 answers
jQuery: How to get parameters of a url?
New to jQuery and I'm having trouble getting the parameters of a url that my server generates. I have a url like this:
find param
my jquery function looks like…

thedeepfield
- 6,138
- 25
- 72
- 107
16
votes
3 answers
Is it possible to pass a parameter to XSLT through a URL when using a browser to transform XML?
When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL?
example:
data.xml

user9547
- 163
- 1
- 2
- 4
16
votes
11 answers
The "state" param from the URL and session do not match
In facebook documantion
require('include/facebook/autoload.php'); //SDK directory
$fb = new Facebook\Facebook([
'app_id' => '***********',
'app_secret' => '***********************'
]);
$helper = $fb->getRedirectLoginHelper();
$permissions =…

Pedro Henrique
- 181
- 1
- 1
- 5
14
votes
2 answers
PInvoke C#: Function takes pointer to function as argument
I'd like to access this function in my c# code, is this possible? so in the end the c++ code would call my function and also apply the struct called "sFrameofData".
C++ Code:
//The user supplied function will be called whenever a frame of data…

Tistatos
- 641
- 1
- 6
- 16
14
votes
3 answers
jsp:param with Java class
I have a JSP file that includes another JSP file. The first JSP should pass an instance of a Java class (widget) to the second JSP file.
This is what I have:
The first JSP:

John Hendrik
- 661
- 1
- 7
- 20
13
votes
5 answers
jQuery append params to url
I like the way jQuery's $.ajax() method allows to specify request url:
{
url: 'http://domain.com/?param=1',
data{
param2: '2'
}
}
$.ajax() method will (probably) call $.param() on provided data and optionally append it to provided URL.
My…

Karolis
- 2,580
- 2
- 16
- 31
13
votes
4 answers
Java Documentation - @return and @param
I'm wondering how to document code with @return and @param ...? I'm sort of guessing that I would do something like
@return(whatever the method is returning)
@param(parameters that the method is taking in)
Would I have to put more descriptions…

allyhalcyon
- 139
- 1
- 1
- 4
12
votes
1 answer
rails 3 render partial with params
I'm having a problem passing some parameters to a partial. No matter what I've tried the params don't pass when the partial is rendered.
I am using a jquery tabbed layout, and each tab displays work orders in a particular status and also based on a…

user1214966
- 273
- 1
- 4
- 10