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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:01:53+00:00 2026-06-10T18:01:53+00:00

The first time I call a function using .split(), it fails, but thereafter it

  • 0

The first time I call a function using .split(), it fails, but thereafter it works. Any idea why it is so in IE9? Does anyone have experience with this bug/intricacy and on fixing it? If not that, is there a substitute for .split() that works seamlessly in IE8 and 9? Thanks very much.

EDIT:

the error message that shows up the first time the function is called is:

ERROR: SCRIPT5007: Unable to get value of the property 'split': object is null or undefined.

EDIT2, Code that brings up error:

function parseArgs() {
...
    var urlParams = $(allE[i]).css('list-style-image').split('?')[1].split('_');
...
}
  • 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-10T18:01:55+00:00Added an answer on June 10, 2026 at 6:01 pm

    To avoid the error, test if the string objects are not null. Null does’t have members:

    function parseArgs() {
    ...
        var urlParams = [];
        var listStyleImage = $(allE[i]).css('list-style-image');
        if(listStyleImage) { // <-- might be null
           var items = listStyleImage.split('?');
           if(items.length>0) urlParams = items[1].split('_');
        }
    ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I need to call a javascript function first and after some time I
I am using ASP.NET MVC 3 for the first time. I want to call
This is my first time using JQuery in any of my projects. I have
First time trying to use webservices. I am using VS2005 and trying to call
I'm getting a segmentation fault the first time I call malloc() after I protect
First time I am using the persist() method in a project. With JPA I
This is my first time using recursion in actionscript so I'm sure that there
I´m using -first time- threads -with multiparameters- in C#. The problem I Have is:
first time using json. I currently send a postcode to a php page, and
This is my first time building a UI in Access (using Access 2007), and

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.