Advertisement

03.06.2002 at 10:49PM PST, ID: 20274269
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Failed to create object in IE but NN is okay

Asked by skcchan in JavaScript

Tags:

I get failed to run my code in IE5 - IE6 but it works in NN4 - NN6.

There are two windows, say, PARENT and CHILD where PARENT open CHILD via the window.open function.

The PARENT window looks like:

<html>
<body>
...
<script language='JavaScript'>
function Map_put(key, val) {
    this.db[this.count] = new Array(key, val)
    this.count++
    return this.count
}

function Map_get(key) {
    var i
    for (i = 0; i < this.count; i++) {
        if (this.db[i][0] == key) {
            return this.db[i][1]
        }
    }
    return null
}

function Map_size() {
    return this.count
}

function Map_clear() {
    var i
    for (i = 0; i < this.count; i++) {
        this.db[i] = null
    }
}

function Map_key() {
    var allKeys, i
    allKeys = new Array(this.db.length)
    for (i = 0; i < this.db.length; i++) {
        allKeys[i] = this.db[i][0]
    }
    return allKeys
}

function Map(size) {
    this.count = 0
    this.db = new Array(size)
    this.put = Map_put
    this.get = Map_get
    this.size = Map_size
    this.clear = Map_clear
    this.key = Map_key
}

hotelDB = new Map(2)
hotelDB.put('Sydney|AU', new Array(
     new Array('Sheraton', 5),
     new Array('ANA', 1)))
hotelDB.put('Hong Kong|HK', new Array(
     new Array('Holiday Inn', 1),
     new Array('Hilton', 2),
     new Array('ANA', 3),
     new Array('Regent', 4)))
</script>
...
</body>
</html>

The CHILD window is shown as follows:

<html>
<body>
<script language='JavaScript'>
opener.hotelDB = new opener.Map(1)
hotelDB.put('Hong Kong|HK', new Array(
     new Array('Rego', 15)))
</script>
...
</body>
<html>

It failed to run at the line 'opener.hotelDB = new opener.Map(1)'


What's wrong with it? Please help

Thanks a lot in advance

skc
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.06.2002 at 11:20PM PST, ID: 6846546

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.06.2002 at 11:28PM PST, ID: 6846556

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 04:34AM PST, ID: 6847048

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 04:52AM PST, ID: 6847079

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 04:55AM PST, ID: 6847088

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 04:56AM PST, ID: 6847093

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 08:04PM PST, ID: 6849532

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 08:29PM PST, ID: 6849561

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript
Sign Up Now!
Solution Provided By: b1xml2
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.07.2002 at 08:30PM PST, ID: 6849565

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 08:41PM PST, ID: 6849580

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 10:13PM PST, ID: 6849723

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2002 at 10:18PM PST, ID: 6849732

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.08.2002 at 12:21AM PST, ID: 6849862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32