Questions tagged [url-parameters]

URL Parameters are parameters whose values are set dynamically in a page’s URL, and can be accessed by its template and its data sources. This makes pages incredibly dynamic, enabling a single page to power an endless number of views.

The URL points to a web page. The URL may contain a static path, such as:

http://www.myStore/womens/Clothing.jsp

As is the case with any URL, you can append dynamic parameters that are used by the page located by the URL to the URL itself. At runtime, those dynamic parameters are replaced by property values, then passed to the page. For example:

http://www.myStore/womens/Clothing.jsp?type=$itemType&name=$displayName

The type parameter is replaced with the item’s item type and the name parameter is replaced by the item’s display name.

1203 questions
3
votes
1 answer

ReactJS PrivateRoute that accesses URL parameter

I have a React Route that looks something like this...where it conditionally renders a Component based on the value of a URL parameter:
3
votes
1 answer

Bind sap.ui.table.Table's rows to sap.ui.model.odata.v2.ODataModel's method - parameter is missing from url

Maybe no need to tell you, that I have been Googling, looking at the docs & specs, and testing around for couple of days now with no success. What I'm trying to achieve: I want to bind the rows of my table not to a concrete entity (called Contragent…
user2177283
  • 281
  • 1
  • 4
  • 19
3
votes
1 answer

Passing url parameters from Url.Action variables in javascript

I would like to start my question by mentioning that I have read the questions Passing dynamic javascript values using Url.action() and How to pass parameters from @Url.Action to controller For having cleaner code and for having javascript functions…
Anastasios Selmani
  • 3,579
  • 3
  • 32
  • 48
3
votes
1 answer

Web API - How to receive in controller DateTime ('dd/MM/yyyy') as Url parameter?

Everytime my controller receives a date as dd/MM/yyyy it decode as MM/dd/yyyy. Is it possible to tell the controller how to decode the parameter of the url? My method in controller: [HttpGet] public JsonResult>…
GTPON
  • 61
  • 1
  • 8
3
votes
2 answers

Rails Parse Ransack parameters with submit

I have a Rails app and using ruby 2.3.3. For my forms I use simple_form, Ransack for the filtering and will_paginate. I have 'set_per_page' dropdown,so Users can select if the want to see 20, 200 or 200 posts in the table. = form_tag({ action:…
Jerry
  • 198
  • 15
3
votes
2 answers

Angular: Correct way to send parameters to directive

I'm a bit new to Angular, and I am trying to get a grip on how to utilize Angular in a "correct" way regarding directives. My use-case is that I'm developing a 3D-project viewer with Angular & ThreeJS. A user can have different "projects" that is…
3
votes
1 answer

Convert object to url query parameters

What is the equivalent of $httpParamSerializer(params) from angular 1 in angular 2?
Kld
  • 6,970
  • 3
  • 37
  • 50
3
votes
0 answers

How to use a WordPress shortcode in a URL?

I have created a WordPress shortcode in functions.php that looks like this: function user_email() { } add_shortcode( 'user_email', 'user_email' ); This captures the logged-in WordPress user's email address. I want to pass that email address in a…
Ash
  • 345
  • 1
  • 5
  • 16
3
votes
2 answers

Current URL parameter in a new link in the page

I am creating a website for a study for my Ph.D. I have multiple versions of a same webpage (different colors, different lengths…), and each version has url parameters. I'd like to create a link at the bottom of each page, which redirects to a…
DimNC
  • 130
  • 10
3
votes
1 answer

How to pass APEX parameter values to external URL

In my APEX application I have created a button that should carry a parameter value of the current page to an external URL The optional URL redirect target is set to URL of PHP file. I have set the URL target for the button to…
Muhammad Muazzam
  • 2,810
  • 6
  • 33
  • 62
3
votes
1 answer

How to get this.props.params populated in react-router v1.0.0?

When I try accessing this.props.params, it is undefined. this.context.router is {}. I played with the different variations of adding contextTypes to my component: contextTypes: { router: React.PropTypes.func.isRequired } but had no luck. My…
TheOne
  • 10,819
  • 20
  • 81
  • 119
3
votes
2 answers

use parameters in window.location.replace

I have the following script which works fine: if(error1 == 1){ window.alert('You have already signed up!'); window.location.replace('index.php'); } But when I want to use the following URL instead of index.php, it does not substitute…
mOna
  • 2,341
  • 9
  • 36
  • 60
3
votes
1 answer

How can i pass a html url with parameters in an url parameter

I use the pdf.js viewer to embed a PDF in an iframe. To do this, I use the: " ?file= < path-string> " parameter. This path isn't a full path to an PDF file but a URL with own parameters. This own parameters were removed on execution. How can I…
fofo2000
  • 31
  • 1
  • 2
3
votes
3 answers

How can I convert a JSON string to URL parameters (GET request)?

I have the following JSON which has to be converted to URL parameters for a GET request. An example is given here, however due to the complexity of this object, there can be multiple line_items_attributes each with the given values as shown, I'm…
user525192
3
votes
5 answers

Regex to get value of a numeric URL parameter?

In a url like the one below, I'd like to get the value of ProdId. The URL format will always be consistent, as will the parameter name, but the length of the value may change. It will always be…
stef
  • 26,771
  • 31
  • 105
  • 143