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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:31:13+00:00 2026-06-09T02:31:13+00:00

I Splitted the Url string into n number , now i want it to

  • 0

I Splitted the Url string into n number , now i want it to be displayed in single alert or some better modular way without the comma separation

My String can carry n number of error so there can be split array of n number

It should show Like with OL list,WITHOUT ANY COMMA SEPARATOR

  1. ID cannot be Null
  2. Please check character (Break the line)
  3. And So on

My code is below

   var qtr="http://google.sd.asp?err=ID%20cannot%20be%20NULL/Zero.%0A%0D%20Id%20is%20not%20numeric%20-%202B.%20%0A%0D%20Company%20name%20for%20the%20id%20-%203%20is%20more%20than%20255%20characters.%20";

    var uesp= unescape(qtr);

    var splitqtr = uesp.split('?err=')[1].split('.');
alert(splitqtr);

for(i=0;i<splitqtr .length;i++)
{


alert(splitqtr[i]);

}
  • 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-06-09T02:31:15+00:00Added an answer on June 9, 2026 at 2:31 am

    You can add the number to each string, then join them with line breaks:

    for (i = 0; i < splitqtr.length; i++) {
      splitqtr[i] = (i + 1) + ". " + splitqtr[i];
    }
    alert(splitqtr.join("\n"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a way to get the n-th element of a splitted string without
I need a string splitted into groups of characters in ActionScript like this: var
I am trying to split a string like :ThisIsA STRING I want it splitted
I want to get the input String splitted by a colon. For example, a:int
I have some keywords in one string splitted with . I have also table
I have an NSString which is splitted into set of characters. I need to
I'm using some custom tasks from MSBuild Extension Pack (MEP). My projects are splitted
I have splitted comma separated values in an string array, something like this str[0]
i need some help and guidance in displaying the splitted Strings in order. let
Recently I splitted an app into two separate ones because I had 15+ models

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.