473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PC IE and AJAX

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
7 1231
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.