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
4
votes
1 answer

is there a Google Map URL parameter for hide side panel?

I have used many google map parameters like q= near= f= saddr= daddr= but what I want is hide the side panel. is there a way to do it
Sameera R.
  • 4,384
  • 2
  • 36
  • 53
4
votes
1 answer

Is dirname adequate to prevent directory traversal attacks?

Consider the following classic problem case:
Jon
  • 428,835
  • 81
  • 738
  • 806
4
votes
2 answers

Rails Set Layout Based on URL Params

So I am trying to change the layout of a view based on url params. So far, I figured out I have to set the layout in the controller. In my controller under the show action I have: if params['iframe'] == 'true' render :layout => 'vendored' end The…
Kevin Z
  • 341
  • 8
  • 16
4
votes
2 answers

How to remove get parameter from url in django view

I have the following view: def copy_group(request): copy = request.GET.get('copy','') if copy: #do my copy process context = {'view':'copy-view'} return render(request, 'groups/copy-view.html', context) This invoked with…
Atma
  • 29,141
  • 56
  • 198
  • 299
4
votes
2 answers

Sending mail with embedded URL in Struts 2

For a project for my company, I have to send emails containing embedded URLs, which the user will be prompted to follow. For example, a person registers on the website, and then the Struts2 application sends an email to that person in which there is…
4
votes
0 answers

Nested search parameters in URL query

I have a JS object literal structure for nested search parameters that looks something like this: var search = { op: 'and', cri: [ {f: 'foo', o: '=', v: 123}, { op: 'or', cri: [ {f:…
FtDRbwLXw6
  • 27,774
  • 13
  • 70
  • 107
4
votes
2 answers

Obfuscating URL parameters to prevent users from changing them?

I am developing a fat client page based on Javascript that will allow users to carry out tasks outwith another web client application (Oracle Siebel). The way the web page will be called from the browser will be by a simple window.open() call. When…
tomaytotomato
  • 3,788
  • 16
  • 64
  • 119
4
votes
2 answers

Is it possible to link (via #) to a destination within a PDF using URL parameters with Google Chrome?

The # operator is often used to refer to an anchor in HTML code. For example like this: Open mypage.html and auto scroll down to myanchor I have created a pdf which contains a so called…
Ruut
  • 1,091
  • 1
  • 16
  • 29
4
votes
2 answers

Sending URL as a parameter using javascript

I have to send a name and a link from client side to the server. I thought of using AJAX called by Javascript to do this. This is what I mean. I wished to make an ajax request to a file called abc.php with parameters :- 1.…
Prashant Singh
  • 3,725
  • 12
  • 62
  • 106
4
votes
2 answers

Ruby on Rails - Passing values to a link_to

I'm a RoR beginner and am using Rails 3.2.3. I have a search form on my page and it performs a get request and filters the results correctly. I want to add the possibility of also searching Products by dates. I inserted a date_select and am able…
Silver
  • 693
  • 1
  • 10
  • 27
4
votes
2 answers

jquery mobile url parameter not updating in browser, but getting correct one with "data-url"

I created the following example to show what I am experiencing. If I navigate from page1 to page 2 with the button Page 2a, the URL will be ...#page2?id=a as expected. When I click the button to go back to Page 1, then navigate to Page 2b, the…
Travis Nelson
  • 2,590
  • 5
  • 28
  • 34
4
votes
2 answers

The torrent info_hash parameter

How does one calculate the info_hash parameter? Aka the hash corresponding to the info dictionar?? From official specs: info_hash The 20 byte sha1 hash of the bencoded form of the info value from the metainfo file. Note that this is a…
pulancheck1988
  • 2,024
  • 3
  • 28
  • 46
3
votes
2 answers

Adding second parameter to web service URL

I'm using the following moviefone web service in one of my Android applications: http://gateway.moviefone.com/ The user enters his zip code, and the following XML data is used to get his nearby movie theaters and…
Dan
  • 724
  • 1
  • 9
  • 19
3
votes
3 answers

Better way of mapping _POST parameters to variables

I am sure that there is a better way of mapping all the _POST parameters to variables with the same name. Does anybody know how to do this better? $ownerName = $_POST["ownerName"]; $ownerEmail = $_POST["ownerEmail"]; $ownerPhone =…
Isaac Lewis
  • 1,189
  • 2
  • 14
  • 26
3
votes
6 answers

Using POST method to hide URL parameters

I understand that I am able to use the POST method for URL parameters to display data according to a specific variable, I know how to make use of the GET method - but I am told that the POST method can be used to hide the part of the URL that is…
Alex
  • 55
  • 1
  • 2
  • 6