Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:31:11+00:00 2026-05-30T17:31:11+00:00

I have a script over here: JsFiddle If you scroll down in the javascript

  • 0

I have a script over here: JsFiddle

If you scroll down in the javascript at some point you will see function urlencode (str) { So from this on till the bottom is a piece of code I don’t understand. I have never seen such coding and I also dont know why this is in the script. It seems that deleting this is not an option since the script will not work without. So I actually have two questions:

1.Why is this in the script?

2.How do I get rid of it to shorten my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:31:12+00:00Added an answer on May 30, 2026 at 5:31 pm

    1. The script is there to encode special characters as Hex so they can be safely transmitted as plain text without being corrupted en-route

    2. Don’t get rid of it. If you want to shorten it, take all the comments out 🙂 You could also whizz it through a minifier…

    You could look online for shorter JavaScript URLEncode routines, or see if you are already using an existing library which provides such functionality. However I would stick with the one you’ve got as it may do something specific to your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have copy/paste a script from a Bing basic tutorial over here: Bing basic
Ok, I have been using the following script for over a year now to
I have a PHP script that builds a binary search tree over a rather
I have a tooltip script which uses the mousemove jquery function. Everything works fine
So I have a script that will allow the contents of a div to
I have looked all over for an answer and hope someone here can help.
I have the following script: http://jsfiddle.net/oshirowanen/8mQ7x/1/ Which works fine, but as soon as I
I have written a greasemonkey script which will do GM_xmlhttpRequest to the next 2
I asked a similar question over here:( Upload clocking script ), but then changed
I have created a fiddle here: http://jsfiddle.net/ozzy/paPRg/1/ Basically, I want to allow users to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.