Menu
Home
Recent Posts
Encoding URL with JavaScript
1:50 PM
0
Share
Check out the built-in function
encodeURIComponent(str)
and
encodeURI(str)
, this should work:
var
myOtherUrl
=
"http://example.com/index.html?url="
+
encodeURIComponent
(
myUrl
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Development and programming answers
Search articles
Popular Posts
How to upload files asynchronously with jQuery
To upload file asynchronously with Jquery use below steps: step 1 In your project open Nuget manager and add package (jquery fileupload(o...
How to solve: Warning: [function]: failed to open stream in PHP
It happens when you call a file usually by include , require or fopen and PHP couldn't find the file or have not enough permission ...
Objective-C: How to make UIText move up when keyboard is visible
With the iPhone SDK: I have a UIView with UITextFields that brings up a keyboard. I need it to be able to: Allow scrolling of the c...
Understanding the php operators & (ampersand, bitwise and)
& is binary and. If you have a binary value, and you and with another binary value, then the result will be the bitwise and of the two. ...
CouchDB vs MongoDB
After posting about Scott Motte’s comparison of MongoDB and CouchDB , I thought there should be some more informative sources out there, so ...
No comments:
Post a Comment