By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,652 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,652 IT Pros & Developers. It's quick & easy.

PC IE and AJAX

P: n/a
I ran into this error. On FF and Safari Mac/PC this :

http://steffan.hldns.com:85/alex_pilson/index.lasso

Looks ok. But on IE PC I get an error saying line 15 character 4 has an
error of Object expected.

Any ideas?

Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ?

http://steffan.hldns.com:85/alex_pil...s/functions.js
http://steffan.hldns.com:85/alex_pil.../xmlhandler.js

Thanks

-S

Jan 23 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Phat G5 (G3) said the following on 1/23/2006 1:59 PM:
I ran into this error. On FF and Safari Mac/PC this :

http://steffan.hldns.com:85/alex_pilson/index.lasso

Looks ok. But on IE PC I get an error saying line 15 character 4 has an
error of Object expected.

Any ideas?

Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ?


<URL: http://jibbering.com/faq/#FAQ4_24 >

Would be a wise place to start looking for an answer to that.

<snip>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 23 '06 #2

P: n/a
in article 4t********************@comcast.com, Randy Webb at
Hi************@aol.com wrote on 1/23/06 3:24 PM:
Phat G5 (G3) said the following on 1/23/2006 1:59 PM:
I ran into this error. On FF and Safari Mac/PC this :

http://steffan.hldns.com:85/alex_pilson/index.lasso

Looks ok. But on IE PC I get an error saying line 15 character 4 has an
error of Object expected.

Any ideas?

Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ?


<URL: http://jibbering.com/faq/#FAQ4_24 >

Would be a wise place to start looking for an answer to that.

<snip>

Ok. I tried changing it here:

http://steffan.hldns.com:85/alex_pilson/index2.lasso

That was not it. It still throws the same error.

Any other ideas?

-S

Jan 23 '06 #3

P: n/a
Phat G5 (G3) said the following on 1/23/2006 5:37 PM:
in article 4t********************@comcast.com, Randy Webb at
Hi************@aol.com wrote on 1/23/06 3:24 PM:
Phat G5 (G3) said the following on 1/23/2006 1:59 PM:
I ran into this error. On FF and Safari Mac/PC this :

http://steffan.hldns.com:85/alex_pilson/index.lasso

Looks ok. But on IE PC I get an error saying line 15 character 4 has an
error of Object expected.

Any ideas?

Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ?

<URL: http://jibbering.com/faq/#FAQ4_24 >

Would be a wise place to start looking for an answer to that.

<snip>

Ok. I tried changing it here:

http://steffan.hldns.com:85/alex_pilson/index2.lasso

That was not it. It still throws the same error.

Any other ideas?


Go to this file:

http://steffan.hldns.com:85/alex_pil.../xmlhandler.js

And remove the multi-line comment at the top. Everything before the line:

var MWJ_ldD = [];

And then re-save it.

MSIE on Windows doesn't like that multi-line comment. When I remove it
in a locally saved copy, the errors go away.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 23 '06 #4

P: n/a
in article wp******************************@comcast.com, Randy Webb at
Hi************@aol.com wrote on 1/23/06 4:34 PM:
Phat G5 (G3) said the following on 1/23/2006 5:37 PM:
in article 4t********************@comcast.com, Randy Webb at
Hi************@aol.com wrote on 1/23/06 3:24 PM:
Phat G5 (G3) said the following on 1/23/2006 1:59 PM:
I ran into this error. On FF and Safari Mac/PC this :

http://steffan.hldns.com:85/alex_pilson/index.lasso

Looks ok. But on IE PC I get an error saying line 15 character 4 has an
error of Object expected.

Any ideas?

Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ?
<URL: http://jibbering.com/faq/#FAQ4_24 >

Would be a wise place to start looking for an answer to that.

<snip>

Ok. I tried changing it here:

http://steffan.hldns.com:85/alex_pilson/index2.lasso

That was not it. It still throws the same error.

Any other ideas?


Go to this file:

http://steffan.hldns.com:85/alex_pil.../xmlhandler.js

And remove the multi-line comment at the top. Everything before the line:

var MWJ_ldD = [];

And then re-save it.

MSIE on Windows doesn't like that multi-line comment. When I remove it
in a locally saved copy, the errors go away.

I did this and you can see it in refreshing the url and it still bombing out
here.

Next?
-S

Jan 24 '06 #5

P: n/a
The error is in this line:

x.options[i]= new Option( (y[i].childNodes[3].firstChild.nodeValue) ,
(y[i].childNodes[1].firstChild.nodeValue) )

I'd try breaking it down to

var A = y[i].childNodes[3].firstChild.nodeValue ;
var B = y[i].childNodes[1].firstChild.nodeValue ;

x.options[i]= new Option(A, B) ;

and see where it errors out.

Jan 24 '06 #6

P: n/a
Running the VS.NET debugger is showing that y only has 3 children.
Given that it's 0 base - would looking for 3 put it past the end of the
array?

Jan 24 '06 #7

P: n/a
in article 11*********************@g47g2000cwa.googlegroups.c om,
jg*****@gmail.com at jg*****@gmail.com wrote on 1/23/06 9:24 PM:
Running the VS.NET debugger is showing that y only has 3 children.
Given that it's 0 base - would looking for 3 put it past the end of the
array?

Well, HOT DAMN! That was is. I had the indices of the nodes wrong. Its
working great now. Thank you. BTW, how did you get VS.net to work for you? I
could never get it set up right.

-S

Jan 24 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.