Questions tagged [param]
304 questions
5
votes
5 answers
Angular js - get url query params when url has # hash
I have an url like this:
site.co/asd#antani?id=9
How do i get id value from this url dynamically and get the new value when it changes?
i tryed :
console.log($routeParams); and i got Object {} in console
thanks

itsme
- 48,972
- 96
- 224
- 345
5
votes
2 answers
JSF 2.0: Empty operator doesn't work with param
In the file aPage.xhtml, I have the following lines:
With the above lines, I expected that when I go to…

Mr.J4mes
- 9,168
- 9
- 48
- 90
5
votes
1 answer
How to pass AJAX arguments to the extbase action?
Now that I managed to get values from the database, I want to specify more what I want to be passed.
From a select box that reacts to the event function below, I want to read out a value (uid of a record) and pass it to my ajaxAction:
var…

user828591
- 1,212
- 2
- 17
- 32
4
votes
1 answer
Using [ValidateScript] in Param results in error about already declared parameter
I have the following Param block at the start of my script:
Param
(
[Parameter(Mandatory = $true)]
[ValidateScript({Test-Path $_ -PathType Leaf})]
[string]$Config,
[switch]$OverThresholdOnly,
[switch]$SendEmail,
…

pauby
- 683
- 3
- 9
4
votes
4 answers
Adding parameters from a map to a URL tag
I want to add a variable list of parameters to a Struts2 URL tag. I have a map of the parameters (name value pairs) in an object in the session. I'm struggling to find a good approach to this. Here is the relevant JSP code:

Peter Kelley
- 2,350
- 8
- 26
- 46
4
votes
2 answers
Get parameter passed from javascript url
i just want to know if its possible to retrrive param from js calling with passed values like this
myfile.js?my_parm=brol
My goal is to retrieve the my_param value from within my "myfile.js"
Thanks in advance
4
votes
1 answer
xsl param default string cannot start with period
In my stylesheet I try to set the default value for an input parameter to a string beginning with the dot character. And always receive an error code 0x8004005 - Expected toden 'eof' found 'NAME'. For example:

Skippy VonDrake
- 806
- 8
- 21
4
votes
2 answers
How to use a nested property as a named param in a hibernate query?
I really want to use nested property as a named param in a hibernate query.
So I can maintenance my param bean more elegantly.
For example, I want write my HQL like:
"......
where
employee.age >= :age.min
and
employee.age <= :age.max
…

Li Ying
- 2,261
- 27
- 17
4
votes
1 answer
XSL check param length and make a choice
I need to check if a param has got a value in it and if it has then do this line otherwise do this line.
I've got it working whereas I don't get errors but it's not taking the right branch
The branch that is wrong is in the volunteer_role…

AdRock
- 2,959
- 10
- 66
- 106
4
votes
3 answers
Using one parameter multiple times in prepared mysqli-statement
Is it possible to use one parameter in a prepared mysqli-statement multiple times with only binding it one time?
something like this
$stmt = $mysqli->prepare(SELECT * FROM user WHERE age BETWEEN ?1 - 2 AND ?1 + 2);
$stmt->bind_param('i', $myAge);
I…

AbcAeffchen
- 14,400
- 15
- 47
- 66
4
votes
2 answers
RSpec routing test problems with params in nested resources
i have a strange problem.. rspec generated a class named menus_routing_spec.rb in spec/routing
the tests are failing because menus is a nested resource of restaurant.
this is my test:
describe MenusController do
before :each do
…

damir
- 1,928
- 1
- 16
- 26
4
votes
3 answers
ruby - redirect_to(url, :myparam => 'abc')
I can't work this out.
url = "www.mysite.com/?param1=abc"
redirect_to(url, :param2 => 'xyz')
### Should this go to - www.mysite.com/?param1=abc¶m2=xyz
Or am I missing something? It doesn't seem to work?

Alex Fox
- 1,175
- 2
- 15
- 27
4
votes
3 answers
Liferay portlet param passing to different portlet
So I have googled whole day, got few answers how to do this, and they all fail. Not to mention all solutions were >3yr old. I'm using LR 6.1 CE. Would be grateful for simple working example, because other answers always got me to null value.

McAnder
- 113
- 1
- 7
3
votes
2 answers
xsl: split and get the X position of param
xsl: I need to split and get the X position param, @class attribute 2nd param:
Input XML:

ZiTAL
- 3,466
- 8
- 35
- 50
3
votes
0 answers
how to doc variadic param in jsdoc?
how to doc variadic param in jsdoc?
and is there a way to doc param of type like "Array of string" ?

aztack
- 4,376
- 5
- 32
- 50