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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:15:15+00:00 2026-06-09T23:15:15+00:00

I have a variable (pvlist) an array which contains data like so ‘ 120123,345654

  • 0

I have a variable (pvlist) an array which contains data like so ‘120123,345654‘. When I try passing only one value using window.open it works e.g when the array only has one value.
If I have more than one value in my array, I get a blank page with nothing. I have tried various solutions suggested which include:

window.open("../Functions/csv.php?refno="+pvlist);
window.open("../Functions/csv.php?refno="+pvlist+"");
window.open("../Functions/csv.php?refno="+pvlist.join(",")+""); 

Any suggestion of what can be used to pass a variable with more than one comma separated value? all help appreciated.

EDIT
variable pvlist is a variable with comma separated values

  • 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-09T23:15:16+00:00Added an answer on June 9, 2026 at 11:15 pm

    You need the join method of array. That turns an array like this [1,2,3,4,5] into a string like this “1,2,3,4,5” (or whatever other separator you need)

    Example:

    window.open("../Functions/csv.php?refno=" + pvlist.join(','));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have variable which I populate from JSON formated data. Something like: var time=my_data[data.results[i].id].time;
I have variable call items having array of items which contains following value [[#<Item
I have a global variable array in c that I'd like to pull into
I have variable WCHAR sDisplayName[1024]; How can I check if sDisplayName contains the string
i have variable $lang which convert string to the selected language but i am
I have variable like float num = (x/y); I need to round up the
I have a series of targets, and each one looks at a global variable
I have a data-structure (in plist) that looks something like this: What i have
I have variable that store data datetime UTC from database. I want to make
I have variable LRowNode DBMS_XMLDOM.DOMNode; contains (example) <N_4883636> <TID_23787542>12</TID_23787542> <TID_23787543></TID_23787543> <TID_23787532/> <TID_23787533>0</TID_23787533> <TID_23787534/> <TID_23787535/>

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.