Linked Questions
58 questions linked to/from Get querystring from URL using jQuery
2694
votes
73
answers
5.5m
views
How can I get query string values in JavaScript?
Is there a plugin-less way of retrieving query string values via jQuery (or without)?
If so, how? If not, is there a plugin which can do so?
1
vote
2
answers
366
views
How to check if url query string equals something with javascript (or jquery) [duplicate]
I know this question seems to be around a bit, but 90% of the answers point to a solution that is not working for me (indexof > -1).
if ( window.location.href.indexOf("product=3") > -1 ...
23
votes
5
answers
137k
views
How to pass Multiple Parameters from ajax call to MVC Controller
I have the controller like the below:
public ActionResult Save(string input, string name) {
//Some code
return PartialView();
}
And I need an ajax call to this controller method and pass the ...
15
votes
4
answers
16k
views
Soundcloud embedded player on mobile
Here is how a SoundCloud embedded player on a HTML page looks like on mobile device:
It's rather annoying, because the user has to click "Listen in browser", and then, often, it doesn't start like it ...
18
votes
4
answers
47k
views
How can I pass a value from one HTML page to another using JavaScript?
This is my first HTML page:
<!--first.html-->
<html>
<body>
<div data-role="page" data-theme="a" data-url="first" id="first">
<form id="form1" name="...
6
votes
7
answers
38k
views
How can I get query string parameter in Javascript or jQuery?
I have a link like this:
http://localhost:8162/UI/Link2.aspx?txt_temp=123abc
I want to get the value 123abc . I have followed this How can I get query string values in JavaScript? and
jquery get ...
6
votes
3
answers
4k
views
Executing JQuery after page load only after clicking a specific link
I have a link in my app that when clicked, leads to another page. I want to execute some JQuery on this new page after it loads, but only if that specific link is clicked to get to the page.
I have ...
1
vote
2
answers
3k
views
Get Query String Values for Duplicate GET Variables
I've seen how to parse query string info (GET variables) using Javascript and jQuery. There are two different examples here (I've always preferred the second one):
How can I get query string values ...
3
votes
1
answer
3k
views
Javascript body onload once
Im just new at using Javascript and I'm having trouble on pageload event. After submitting form1, form 2 should appear.
<html>
<head>
<script src="jquery1.9.1.js" type="text/...
4
votes
1
answer
3k
views
Jquery function after page redirect?
Check out the fiddle!
The Fiddle
Im wanting to be able to link to the different sections of the content areas via links similar to the footer links in the example. However I want this functionality (...
1
vote
1
answer
3k
views
How to pass search parameter to datatables Search field
I have successfully setup datatables (with no search text by default). I want to be able to pass a search parameter to my datatbles table via URL. for example if my default datatables page is abc.html....
0
votes
4
answers
2k
views
Making a link load content in an iframe on a new page
I need to create a link that opens a page yet sets a new target within an iframe on that page is this possible?
So for example.
'Link1' has to link to 'index.html' this page already has an iframe on ...
0
votes
1
answer
2k
views
How can i select <select> <option> when pass an variable in the query string
suppose i have a select HTML element on the page. how can i select the option after passing a query string. such as computer.php?type=super2 it should select the super2 option in the select
<...
2
votes
1
answer
3k
views
Getting a query string in a url if exists in javascript [duplicate]
It seems there's no easy and built-in way to check whether an url contains a query string and if it does, get it. The approaches I found so far rely on "url.indexOf("?")" and regex. Are these the only ...
0
votes
5
answers
3k
views
Extract IDs from URLs [duplicate]
The url of my website is in one of the following two formats:
Format 1: http://www.example.com/books/1309/angular-book
OR
Format 2: http://www.example.com/ShowBook.aspx?ID=1309
I can extract the ...