How to find Port number of IP address?

Unfortunately the standard DNS A-record (domain name to IP address) used by web-browsers to locate web-servers does not include a port number. Web-browsers use the URL protocol prefix (http://) to determine the port number (http = 80, https = 443, ftp = 21, etc.) unless the port number is specifically typed in the URL (for … Read more

URL Encoding Issue %3D instead of (=)

Do you mean that you want the submitted form data to look like this: In either the URL query string, or in the POST body of an application/x-www-webform-urlencoded request? If so, then no, you cannot do that. That is a violation of both the URL and application/x-www-webform-urlencoded specifications. = is a reserved separator character that cannot appear unencoded in the name and value fields, it … Read more

The origin on why ‘%20’ is used as a space in URLs

It’s called percent encoding. Some characters can’t be in a URI (for example #, as it denotes the URL fragment), so they are represented with characters that can be (# becomes %23) Here’s an excerpt from that same article: When a character from the reserved set (a “reserved character”) has special meaning (a “reserved purpose”) in a certain context, … Read more

How to load script with jquery.load()?

When you say “the script doesn’t work” do you mean there’s javascript in the page you’re loading through ajax? It’s not going to work, ever, at least not directly. You have two choices. Parse out the script from the content you’ve loaded, and use eval to run it. A better way is to use $.getScript to load (and execute) … Read more

How can I get query string values in JavaScript?

Update: June-2021 For a specific case when you need all query params: Update: Sep-2018 You can use URLSearchParams which is simple and has decent (but not complete) browser support. Original You don’t need jQuery for that purpose. You can use just some pure JavaScript: Usage: NOTE: If a parameter is present several times (?foo=lorem&foo=ipsum), you will get the … Read more

Get the values from the “GET” parameters (JavaScript)

JavaScript itself has nothing built in for handling query string parameters. Code running in a (modern) browser you can use the URL object (which is part of the APIs provided by browsers to JS):  Run code snippetExpand snippet For older browsers (including Internet Explorer), you can use this polyfill or the code from the original version of this answer that predates URL: You … Read more

What is fbclid? the new facebook parameter

For two days, I have noticed that the URL that I publish on Facebook, there is a parameter is added:?fbclid=uFCrBkUgEvKg…To be more precise something like: http://example.com?fbclid=uFCrBkUgEvKg… Does anyone know what this parameter does?What is it for and what is the use of the developers? Thanks for your comments.