I continue to get the following error:
Microsoft JScript runtime error
[Line: 2240] '<internal type>' is not a string
This is the section beginnig with line 2240:
var randfmFrame =
'<HTML><HEAD><TITLE></TITLE></HEAD>' +
'<BODY BGCOLOR="#ffffff">' +
'<CENTER><FORM NAME="Search">' +
'<INPUT TYPE=button VALUE="Go to Search" onclick="parent.startSrch()">' +
'<INPUT TYPE=button NAME="girl" VALUE="Girl" onclick="parent.GetGNumbers()">' +
'<INPUT TYPE=button NAME="boy" VALUE="Boy" onclick="parent.GetBNumbers()">' +
'</CENTER></FORM></BODY></HTML>';
Any ideas what <internal type> means and what is wrong with the above section?
Any help would be apprciated!
Thanks - Colleen
I think it's MSIE's way of saying, "The people who made me didn't give
a rats behind about my support for JavaScript."
But seriously, I and I've heard of others who had the same problem.
Among its many bugs, MSIE doesn't seem to work very well when you're
dynamically creating a document with document.write(). (which is what
I'm assuming you're doing here with this code). And I would put the
statement in a single line just to be safe.
Anthony K. Chu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Second Year Computer Science Major http://www.webhaven.com/anthony/
University of British Columbia, Canada <anth...@unixg.ubc.ca>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>I have a set of scripts working in Netscape 3.0 and am now working on
>adjusting them for MS Internet Explorer.
>I continue to get the following error:
>Microsoft JScript runtime error
>[Line: 2240] '<internal type>' is not a string
>This is the section beginnig with line 2240:
>var randfmFrame =
>'<HTML><HEAD><TITLE></TITLE></HEAD>' +
>'<BODY BGCOLOR="#ffffff">' +
>'<CENTER><FORM NAME="Search">' +
>'<INPUT TYPE=button VALUE="Go to Search" onclick="parent.startSrch()">' +
>'<INPUT TYPE=button NAME="girl" VALUE="Girl" onclick="parent.GetGNumbers()">' +
>'<INPUT TYPE=button NAME="boy" VALUE="Boy" onclick="parent.GetBNumbers()">' +
>'</CENTER></FORM></BODY></HTML>';
>Any ideas what <internal type> means and what is wrong with the above section?
>Any help would be apprciated!
>Thanks - Colleen
Not much help, I'm afraid, but I took the code above and tried to
utilize it in a script without any problem. I just had a script to
assign the above strings to the variable randfmFrame, and then display
the value of randfmFrame in an alert box, but it worked fine on both
NN and IE.
The error message:
Microsoft JScript runtime error
[Line: 2240] '<internal type>' is not a string
could result from failing to escape a special character that needs to
be escaped in a string assignment, but I don't see any problem
characters in the above. Sorry I don't have more to offer.
Mark Stone
mst...@mkp.com
mar...@kudonet.com
author, "How to Program Microsoft JScript"