I need to be able to get at the full URL of the page The page url is like this  http://localhost:12365/Dashboard.aspx#access_token=adfgafdg73e9c4ggg186fbfcf05e775a6f2gggd8&amp;expires_in=3600&amp;token_type=Bearer&amp;state=zxv   In this URL, after # how to get the access_token value?
35106
I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.
10023
I need to redirect to a url passing a parameter as a query string.  This can include an Ampersand in the value. such as  string value = "This &amp; That"; Response.Redirect("http://www.example.com/?Value=" + Server.UrlEncode(value));   This however returns   What should I be using to encode this string?  EDIT: Thanks Luke for pointing out the obvious, the code does indeed work correctly. I Apologise, my question was not a valid question after all!  The page I was going to had a lot of old legacy code which is apparently doing some kinda of encoding and decoding itself making it appear as if my urlencode was not working.  My solution unfortunately is to completely drop use of an &amp; until the code in question can be re-written. Don't you just hate old code!
36608
I can get the element like this $("#txtEmail") but I'm not sure how to get the actual value.
79018
Is it possible to detect the HTTP request method (e.g. GET or POST) of a page from JavaScript?  If so, how?
124016
I have built a basic data entry application allowing users to browse external content in iframe and enter data quickly from the same page. One of the data variables is the URL. Ideally I would like to be able to load the iframes current url into a textbox with javascript. I realize now that this is not going to happen due to security issues.  Has anyone done anything on the server side? or know of any .Net browser in browser controls. The ultimate goal is to just give the user an easy method of extracting the url of the page they are viewing in the iframe It doesn't necessarily HAVE to be an iframe, a browser in the browser would be ideal.  Thanks, Adam
67850
I entered a URL with a very long parameter on Stack Exchange.  I have type this url    It shows a blank screen , does not shown any messages.    We need to show a “Page Not Found” message, same as what you did on other Stack Exchange pages.
30996
Is there a way that I can get the last value (based on the '\' symbol) from a full path?  Example:  C:\Documents and Settings\img\recycled log.jpg  With this case, I just want to get recycled log.jpg from the full path in JavaScript.
58556
I want top display dashboard in VF page.    When I am trying to do it using  blank window appear.  &lt;apex:iframe src="/01Z28000000Hdzo" &gt;  Right now I am doing as per follows.  Page -   &lt;script language='javascript'&gt;         {!dashboardBlob} &lt;/script&gt;   Controller -   public string getdashboardBlob()  {  PageReference dbPage = new PageReference('/01Z28000000Hdzo');  Blob pageBlob = dbPage.getContent();  return pageBlob.toString()   }    Using above Dashboard is loaded into page but when I am trying to refresh the dashboard by clicking Refresh button (Standard button present on Dashboard) it gives me Access Control Origin error.  "XMLHttpRequest cannot load . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access."   Please suggest if you have any solution for this.
95119
I'd like to rewrite all my site urls in the way the the user can't figure out the exact name of the the page his viewing. let's say that my site is "www.justarandomsite.com"  and may page is "page.aspx" I' like to have instead of "www.justarandomsite.com/pages/page.aspx" sothing like this: "www.justarandomsite.com/skdhfjksdgfjksdgfjdsgvdjhsgfjdsdsjfgkdsjgfkdsgfjdsgfjkdsg"
100808
I have a PHP application that will on occasion have to handle URLs where more than one parameter in the URL will have the same name. Is there an easy way to retrieve all the values for a given key? PHP $_GET returns only the last value.   To make this concrete, my application is an OpenURL resolver, and may get URL parameters like this:  ctx_ver=Z39.88-2004 &amp;rft_id=info:oclcnum/1903126 &amp;rft_id=http://www.biodiversitylibrary.org/bibliography/4323 &amp;rft_val_fmt=info:ofi/fmt:kev:mtx:book &amp;rft.genre=book &amp;rft.btitle=At last: a Christmas in the West Indies.  &amp;rft.place=London, &amp;rft.pub=Macmillan and co., &amp;rft.aufirst=Charles &amp;rft.aulast=Kingsley &amp;rft.au=Kingsley, Charles, &amp;rft.pages=1-352 &amp;rft.tpages=352 &amp;rft.date=1871   (Yes, I know it's ugly, welcome to my world). Note that the key "rft_id" appears twice:   rft_id=info:oclcnum/1903126 rft_id=http://www.biodiversitylibrary.org/bibliography/4323   $_GET will return just http://www.biodiversitylibrary.org/bibliography/4323, the earlier value (info:oclcnum/1903126) having been overwritten.  I'd like to get access to both values. Is this possible in PHP? If not, any thoughts on how to handle this problem?
93171
Is There Any Way to get the template Name By full URL for example  If the full url is  www.example.com/hello-world   I need a function that return the template name (page.php)  I know that WordPress matches every url with regular expression to determine the query and decide which template to include.  That's exactly what I need, a built in or (custom made) function that takes the URL and returns back the corresponding template
26203
I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  &lt;form action="http://example.com/" method="POST"&gt;   &lt;input type="hidden" name="q" value="a"&gt; &lt;/form&gt;   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.
10621
There seems to be a problem with making a clickable archive.org URL. For example:     See the .   I am using Chrome. I suspect something about the * in the URL, perhaps because it gets encoded as %2a, causes the URL request to be sent to the current site (meta.stackoverflow.com) which doesn't make sense.
57985
As the user goes into an account, there is a custom button that they can click that will redirect them to my Visualforce page.  How can I capture that account id  in my controller?  Thanks  public myControllerCBR(){     breachRecord = new List&lt;wrapperClass&gt;();      AccountTeamMember uId = [SELECT UserId FROM AccountTeamMember WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id') and TeamMemberRole = 'Sales Engineer' limit 1];      List&lt;User&gt; uName = [SELECT Name, Manager__c, MANAGERID, Email, MOBILEPHONE FROM User WHERE Id =:uId.UserId limit 1];       for(User rept : uName){         breachRecord.add(new wrapperClass(rept));     }  }   See button setup:
109323
Python frameworks always provide ways to handle URLs that convey the data of the request in an elegant way, like for example   I want you to notice the ending path /userid/123424/  How do you do this in ASP.NET?
30628
Say I want to retrieve my API endpoint from a Visualforce Page or a Force.com Site, I can try:  Url.getSalesforceBaseUrl().toExternalForm();   But the return value is all over the place. It could be any of the following:   http://pod.salesforce.com (from a batch apex class) https://c.na1.visual.force.com (a local Visualforce Page) https://mysite.secure.force.com (from a Force.com Site) https://ns.pod.visual.force.com (some page in a managed package)   This wreaks havoc on the Remote Site Settings, and gets worse with Sites and Communities.  So how do I get just "https://na1.salesforce.com"?
69316
Is it possible to get the context, like the full URL, or the containing page path, title, etc., while inside an overlay page?  For example, I have a form pop up inside an overlay, and I want to, inside that form, be able to get the context of the page that triggered the overlay popup. I can't pass any information via the URL... I'd just like to be able to do something like arg(0) for the containing page (what's faded out in the background of the overlay.  Right now, if I do arg(0), request_uri(), $_GET['q'], etc., it always returns the overlay path, like   (I want the 'path/i/want' portion of the URL, somehow).