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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:11:40+00:00 2026-05-28T19:11:40+00:00

Yet another reason why I hate IE for being different. I’ve got this code:

  • 0

Yet another reason why I hate IE for being different. I’ve got this code:

var friends = document.getElementById('friendsEmail').value;
...
 var emailArray=new Array();
 emailArray=String(friends).split(','); //error here

This works in every other browser. In fact I only added the Array declaration and the explicit String conversion to get this to work in IE. However, I’m still getting this error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET4.0C; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729; .NET4.0E; .NET CLR 1.1.4322) Timestamp: Wed, 1 Feb
2012 22:24:15 UTC

Message: Object doesn’t support this property or method Line: 59 Char:
4 Code: 0

What does IE not like about this? Am I doing something obviously stupid that I’m not seeing?

EDIT

This is what I did originally that resulted in IE errors:

var emailArray=friends.split(',');

This also gives me errors in IE

EDIT 2

I’m sorry guys. Turns out that the server was caching an older copy of the .js file and the error line I was looking at was incorrect… I apologize for wasting your time with this. The error turned out to be on a completely different line. For those who are curious it was actually failing because of this line

emailArray[count]=emailArray[count].trim();

I’ve already resolved that issue though.

  • 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-28T19:11:41+00:00Added an answer on May 28, 2026 at 7:11 pm

    The constructors for primitive types are usually not recommended. You already have a string in your friends variable, so just split that

    Change

    emailArray = String(friends).split(','); //error here
    

    to

    emailArray = friends.split(','); //should work
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I guess this question will sound familiar, but I am yet another programmer baffled
EDIT: Problem solved. This was (yet another) situation where the problem wasn't really where
I'm doing animation with performSelector:withObject:afterDelay at 24fps. (reason being, UIImageView doesn't support different interval
Yet another newbie with ASP.NET MVC! All I intend to do is for a
I've just added yet another 3rd-party component to my .net project that contains a
I was handling yet another KeyDown event in a user control when I wondered
I don't want to open another Yet Another Js VS Js thread. I guess,
After getting a helpful answer here , I have run into yet another problem:
My apologies once again for asking another very junior question. For one reason or
this is strange, for some reason this paypal isn't picking up my shipping_1 value,

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.