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 6255723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:25:04+00:00 2026-05-24T14:25:04+00:00

This is my first question… I hope my problem doesn’t look stupid… html (any

  • 0

This is my first question… I hope my problem doesn’t look stupid…

html (any symbols are allowed) —> javascript event —> javascript function sends text to .php file using ajax method.
Here is a problem:

when I use
xmlhttp.open(“GET”,”proceed.php?q=”+encodeURIComponent(str),false);
it works great for small texts (less than 1500 symbols)….

If I use
xmlhttp.open(“GET”,”proceed.php?q=”+str,false);
then it works for any length, but I have to be careful with special characters.

Why doesn’t encodeURIComponent work for a bigger amount of text (over ~1500 even just simple alphanumeric symbols)?
Any ideas?

So, the problem is in this string (I’ve tested all the rest).

BTW, it was tested on bulgarian cyrillic letters…

With a text over 1500 symbols there is no action at all (no viewable mistake, no nothing, just nothing happens).

Thank you.

  • 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-24T14:25:06+00:00Added an answer on May 24, 2026 at 2:25 pm

    There are a number of limits which you can hit with the length of a URL. In IE, the total length of the URL, including a GET query string, must not exceed 2,083 characters. The server might impose a limit, too.

    So apparently it’s not encodeURIComponent itself which has a problem with long strings. Rather, the encoded result is longer than the unencoded string, and that seems to be enough to make you hit one of the limits I mentioned above.

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

Sidebar

Related Questions

this is my first question here. I hope dont make any mistake, be good
this is my first question here so I hope I can articulate it well
This is my first question here and I hope it is simple enough to
This is my first question on S.O. I have a very odd problem. Below
This is my first question here, so I hope that I am providing enough
this my first question on here. I hope someone can help. It is to
This is my first question to SO, I hope to get it right. In
this is my first question here so I hope I'm doing this right. I
This is my first question here, so I hope everything is correct. I've hacked
this is my first question here, so excuse me if I made any mistakes!

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.