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
4 answers

Ruby on Sinatra: Imitate a request based on a parameter

I am currently developing a Ruby API based on Sinatra. This API mostly receives GET requests from an existing social platform which supports external API integration. The social platform fires off GET requests in the following format (only relevant…
Josh
  • 366
  • 2
  • 8
  • 20
3
votes
1 answer

Passing Variables via URL to change source tag

I have 15 videos I need to show. Instead of creating 15 pages with each html5 video embed targeting a different video, I rather have just one page and via the URL tell the player what to load. This way I can just have 15 custom links but just one…
Thanu
  • 41
  • 1
  • 5
3
votes
3 answers

C# Simple web server with url parameters

I am trying to create little program which is going to act like a web server and accepts url parameters. I have found this example project: https://codehosting.net/blog/BlogEngine/post/Simple-C-Web-Server.aspx Is there any way to make this receive…
Zoszko
  • 75
  • 1
  • 7
3
votes
2 answers

htaccess - mod_rewrite pass virtual directory or file back to index.php as parameter?

I'm trying to get a virtual directory or file to be passed back to index.php Example, I want everything after the / to get passed back to index, which will then be checked against a database, but "virtual_directory" and "virtual_file.jpg" don't…
12shadow12
  • 307
  • 2
  • 10
3
votes
1 answer

What is the source of crlt.pid= in a URL?

Looking at my page analytics in GA, I'm seeing that some URLs appear duplicated and have a parameter that I'm not familiar with at the end of the URL: ?crlt.pid=camp.amHWhFf5pRN1 The source and medium of the visits match what I would expect to be…
dr42ix
  • 31
  • 2
3
votes
4 answers

How do I pass variables as url parameters in cURL array to CURLOPT_URL

I have this php code using cURL to parse an xml feed from Indeed.com. I'm passing server information such as REMOTE_ADDR and HTTP_USER_AGENT into the parameters of the url but they are not being passed. Check this part of the code below.…
Mike
  • 99
  • 1
  • 12
3
votes
0 answers

How to get right result from "whateverorigin.org" despite of question mark?

I tried out "whateverorigin.org" for overcoming the cross-domain policy. It works fine, except if the URL of the other page contains parameters and a question mark. var url =…
xampper
  • 91
  • 7
3
votes
2 answers

Html.BeginForm loses routeValues on submit

I have a page that displays a list of people. It can be sorted on first and last name. To search for people, I have the following Razor form: @using (Html.BeginForm("Index", "Persons", new { sort = ViewBag.Sort }, FormMethod.Get)) {

Rudey
  • 4,717
  • 4
  • 42
  • 84
3
votes
1 answer

Passing a variable to URL parameters using JQuery POST

I have a function which currently passes an account code (derived from a combo box) to the server. Currently it does this by sending the request in the body - I need it to send as a URL parameter. So for example the URL should…
Hagbard
  • 575
  • 5
  • 8
  • 18
3
votes
1 answer

Load CSS file based on URL parameter

Can you please help me use javascript to load CSS files based on URL parameters? I have 3 parameters (one, two, and three) and I have 3 CSS files. if (window.location.search.search(/[?&]parameter=one(?:$|&)/) !== -1) { What code should…
Cody Raspien
  • 1,753
  • 5
  • 26
  • 51
3
votes
1 answer

Maintaining values of action variables?

class SampleAction extends ActionSupport { private Map circleIdNameMap; public String preprocess(){ --logic for populating value of MAP } --getters and setters } Now my problem is on page load I call preprocess function and populate…
Siddharth Trikha
  • 2,648
  • 8
  • 57
  • 101
3
votes
1 answer

How to get zk zhtml url parameter?

I'm using Zk framework and trying to get a url parameter from zhtml page. I've tried: Executions.getCurrent().getParameter("param"); It doesn't work for zhtml although I tried both zscript in the client side and page composer in the server side.…
Brucevilla
  • 156
  • 2
  • 13
3
votes
2 answers

Selectively force file download with Apache based on URL parameter

I have an Apache 2.2 running and I am forcing some files to be downloaded using this .htaccess snippet: ForceType application/octet-stream Header set Content-Disposition attachment All the affected files are in…
jlh
  • 4,349
  • 40
  • 45
3
votes
1 answer

Test the value of url parameters then Change SqlDataSource.SelectCommand from code behind c#

Hi I have a listView that I generated with a SQLDataSource, The Sql gets 2 parameters from the URL then performs a Select Query. But I want to test the value of the parameters 1st then change the sql SelectCommand using If, else If The Problem is my…
Liam Kenneth
  • 982
  • 1
  • 11
  • 21
3
votes
5 answers

PHP preg_replace expression to remove URL parameter

I wanted to remove all occurrences of specific pattern of a parameter from a URL using preg_expression. Also removing the last "&" if exist The pattern looks like: make=xy ("make" is fixed; "xy" can be any two letters)…
mimidov
  • 45
  • 2
  • 6