Need help troubleshooting asp error on XP | | |
Hi,
I am experiencing the following error from a particular XP workstation. The
application has been in production for some time and the error only appears
on one XP workstation. I have run Windows Update on this workstation. The
error does not appear on a different XP workstation.
The error happens when I make a selection from the Category drop-down list.
The subsequent drop-down list Subcategory should be automatically filtered.
The error is
Line:263
Char: 3
Error: Object does not support this property or method
Code: 0
The code in question is:
function CategoryChanged()
{
var selCat = document.frmService.CategoryID;
var selSubcat = document.frmService.SubcategoryID;
var co =
RSExecute("ProviderServiceRemote.asp","LoadSubcate gories",selCat.options[sel
Cat.selectedIndex].value);
var aSubcats = co.return_value;
Clear(selSubcat);
AddInstructionItem(selSubcat);
PopulateDropDown(aSubcats,selSubcat);
// remove index 0 item
if (selCat.options[0].value == "0")
selCat.options[0] = null;
// remove all Keyword items
Clear(document.frmService.selAllKeywords);
Clear(document.frmService.selAssocKeywords);
}
Line 263 is:
Clear(document.frmService.selAssocKeywords);
The LoadSubcategories function is:
function LoadSubcategories(catid)
{
var aSubcats = new Array();
var strSQL="SELECT * FROM Subcategories WHERE CategoryID = " +
String(catid) + " ORDER BY Subcategory";
var rsSubcats = Server.CreateObject("ADODB.Recordset");
rsSubcats.Open(strSQL,g_strDSN);
while (! rsSubcats.EOF) {
var item = new ReturnItem(String(rsSubcats("SubcategoryID")),
String(rsSubcats("Subcategory")));
aSubcats[aSubcats.length] = item;
rsSubcats.MoveNext();
}
I've checked the browser options between the working and the non-working
browser and they are similar. I've set the site as being part of my local
Intranet and then set the security level to low, but no change. Any help
would be appreciated.
Thanks,
Terri | | | | re: Need help troubleshooting asp error on XP
Which line is 263?
Ray at work
"Terri" <Terri@spamaway.om> wrote in message
news:bpbm25$80v$1@reader2.nmix.net...[color=blue]
> Hi,
> I am experiencing the following error from a particular XP workstation.[/color]
The[color=blue]
> application has been in production for some time and the error only[/color]
appears[color=blue]
> on one XP workstation. I have run Windows Update on this workstation. The
> error does not appear on a different XP workstation.
>
> The error happens when I make a selection from the Category drop-down[/color]
list.[color=blue]
> The subsequent drop-down list Subcategory should be automatically[/color]
filtered.[color=blue]
>
> The error is
>
> Line:263
> Char: 3
> Error: Object does not support this property or method
> Code: 0
>
> The code in question is:
>
> function CategoryChanged()
> {
> var selCat = document.frmService.CategoryID;
> var selSubcat = document.frmService.SubcategoryID;
> var co =
>[/color]
RSExecute("ProviderServiceRemote.asp","LoadSubcate gories",selCat.options[sel[color=blue]
> Cat.selectedIndex].value);
> var aSubcats = co.return_value;
> Clear(selSubcat);
> AddInstructionItem(selSubcat);
> PopulateDropDown(aSubcats,selSubcat);
>
> // remove index 0 item
> if (selCat.options[0].value == "0")
> selCat.options[0] = null;
>
> // remove all Keyword items
> Clear(document.frmService.selAllKeywords);
> Clear(document.frmService.selAssocKeywords);
> }
>
> Line 263 is:
>
> Clear(document.frmService.selAssocKeywords);
>
> The LoadSubcategories function is:
>
> function LoadSubcategories(catid)
> {
> var aSubcats = new Array();
>
> var strSQL="SELECT * FROM Subcategories WHERE CategoryID = " +
> String(catid) + " ORDER BY Subcategory";
> var rsSubcats = Server.CreateObject("ADODB.Recordset");
> rsSubcats.Open(strSQL,g_strDSN);
>
> while (! rsSubcats.EOF) {
> var item = new ReturnItem(String(rsSubcats("SubcategoryID")),
> String(rsSubcats("Subcategory")));
> aSubcats[aSubcats.length] = item;
> rsSubcats.MoveNext();
> }
>
> I've checked the browser options between the working and the non-working
> browser and they are similar. I've set the site as being part of my local
> Intranet and then set the security level to low, but no change. Any help
> would be appreciated.
>
> Thanks,
> Terri
>
>[/color] | | | | re: Need help troubleshooting asp error on XP
Line 263 is:
Clear(document.frmService.selAssocKeywords);
When I comment out the last two lines of the function like:
// Clear(document.frmService.selAllKeywords);
// Clear(document.frmService.selAssocKeywords);
I still get the error and the error report still says line 263 which is the
last line of the function.
Thanks,
Terri
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uGYdtLWrDHA.1084@tk2msftngp13.phx.gbl...[color=blue]
> Which line is 263?
>
> Ray at work
>
> "Terri" <Terri@spamaway.om> wrote in message
> news:bpbm25$80v$1@reader2.nmix.net...[color=green]
> > Hi,
> > I am experiencing the following error from a particular XP workstation.[/color]
> The[color=green]
> > application has been in production for some time and the error only[/color]
> appears[color=green]
> > on one XP workstation. I have run Windows Update on this workstation.[/color][/color]
The[color=blue][color=green]
> > error does not appear on a different XP workstation.
> >
> > The error happens when I make a selection from the Category drop-down[/color]
> list.[color=green]
> > The subsequent drop-down list Subcategory should be automatically[/color]
> filtered.[color=green]
> >
> > The error is
> >
> > Line:263
> > Char: 3
> > Error: Object does not support this property or method
> > Code: 0
> >
> > The code in question is:
> >
> > function CategoryChanged()
> > {
> > var selCat = document.frmService.CategoryID;
> > var selSubcat = document.frmService.SubcategoryID;
> > var co =
> >[/color]
>[/color]
RSExecute("ProviderServiceRemote.asp","LoadSubcate gories",selCat.options[sel[color=blue][color=green]
> > Cat.selectedIndex].value);
> > var aSubcats = co.return_value;
> > Clear(selSubcat);
> > AddInstructionItem(selSubcat);
> > PopulateDropDown(aSubcats,selSubcat);
> >
> > // remove index 0 item
> > if (selCat.options[0].value == "0")
> > selCat.options[0] = null;
> >
> > // remove all Keyword items
> > Clear(document.frmService.selAllKeywords);
> > Clear(document.frmService.selAssocKeywords);
> > }
> >
> > Line 263 is:
> >
> > Clear(document.frmService.selAssocKeywords);
> >
> > The LoadSubcategories function is:
> >
> > function LoadSubcategories(catid)
> > {
> > var aSubcats = new Array();
> >
> > var strSQL="SELECT * FROM Subcategories WHERE CategoryID = " +
> > String(catid) + " ORDER BY Subcategory";
> > var rsSubcats = Server.CreateObject("ADODB.Recordset");
> > rsSubcats.Open(strSQL,g_strDSN);
> >
> > while (! rsSubcats.EOF) {
> > var item = new ReturnItem(String(rsSubcats("SubcategoryID")),
> > String(rsSubcats("Subcategory")));
> > aSubcats[aSubcats.length] = item;
> > rsSubcats.MoveNext();
> > }
> >
> > I've checked the browser options between the working and the non-working
> > browser and they are similar. I've set the site as being part of my[/color][/color]
local[color=blue][color=green]
> > Intranet and then set the security level to low, but no change. Any help
> > would be appreciated.
> >
> > Thanks,
> > Terri
> >
> >[/color]
>
>[/color] | | | | re: Need help troubleshooting asp error on XP
Are you trying to run this server-side or client-side? That's client-side
code. Try posting in a client-side group such as .scripting.jscript.
Ray at work
"Terri" <Terri@spamaway.om> wrote in message
news:bpbpel$928$1@reader2.nmix.net...[color=blue]
> Line 263 is:
>
> Clear(document.frmService.selAssocKeywords);
>
> When I comment out the last two lines of the function like:
>
> // Clear(document.frmService.selAllKeywords);
> // Clear(document.frmService.selAssocKeywords);
>
> I still get the error and the error report still says line 263 which is[/color]
the[color=blue]
> last line of the function.
>
> Thanks,
> Terri
>
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:uGYdtLWrDHA.1084@tk2msftngp13.phx.gbl...[color=green]
> > Which line is 263?
> >
> > Ray at work
> >
> > "Terri" <Terri@spamaway.om> wrote in message
> > news:bpbm25$80v$1@reader2.nmix.net...[color=darkred]
> > > Hi,
> > > I am experiencing the following error from a particular XP[/color][/color][/color]
workstation.[color=blue][color=green]
> > The[color=darkred]
> > > application has been in production for some time and the error only[/color]
> > appears[color=darkred]
> > > on one XP workstation. I have run Windows Update on this workstation.[/color][/color]
> The[color=green][color=darkred]
> > > error does not appear on a different XP workstation.
> > >
> > > The error happens when I make a selection from the Category drop-down[/color]
> > list.[color=darkred]
> > > The subsequent drop-down list Subcategory should be automatically[/color]
> > filtered.[color=darkred]
> > >
> > > The error is
> > >
> > > Line:263
> > > Char: 3
> > > Error: Object does not support this property or method
> > > Code: 0
> > >
> > > The code in question is:
> > >
> > > function CategoryChanged()
> > > {
> > > var selCat = document.frmService.CategoryID;
> > > var selSubcat = document.frmService.SubcategoryID;
> > > var co =
> > >[/color]
> >[/color]
>[/color]
RSExecute("ProviderServiceRemote.asp","LoadSubcate gories",selCat.options[sel[color=blue][color=green][color=darkred]
> > > Cat.selectedIndex].value);
> > > var aSubcats = co.return_value;
> > > Clear(selSubcat);
> > > AddInstructionItem(selSubcat);
> > > PopulateDropDown(aSubcats,selSubcat);
> > >
> > > // remove index 0 item
> > > if (selCat.options[0].value == "0")
> > > selCat.options[0] = null;
> > >
> > > // remove all Keyword items
> > > Clear(document.frmService.selAllKeywords);
> > > Clear(document.frmService.selAssocKeywords);
> > > }
> > >
> > > Line 263 is:
> > >
> > > Clear(document.frmService.selAssocKeywords);
> > >
> > > The LoadSubcategories function is:
> > >
> > > function LoadSubcategories(catid)
> > > {
> > > var aSubcats = new Array();
> > >
> > > var strSQL="SELECT * FROM Subcategories WHERE CategoryID = " +
> > > String(catid) + " ORDER BY Subcategory";
> > > var rsSubcats = Server.CreateObject("ADODB.Recordset");
> > > rsSubcats.Open(strSQL,g_strDSN);
> > >
> > > while (! rsSubcats.EOF) {
> > > var item = new ReturnItem(String(rsSubcats("SubcategoryID")),
> > > String(rsSubcats("Subcategory")));
> > > aSubcats[aSubcats.length] = item;
> > > rsSubcats.MoveNext();
> > > }
> > >
> > > I've checked the browser options between the working and the[/color][/color][/color]
non-working[color=blue][color=green][color=darkred]
> > > browser and they are similar. I've set the site as being part of my[/color][/color]
> local[color=green][color=darkred]
> > > Intranet and then set the security level to low, but no change. Any[/color][/color][/color]
help[color=blue][color=green][color=darkred]
> > > would be appreciated.
> > >
> > > Thanks,
> > > Terri
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] |  | Similar ASP / Active Server Pages bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,383 network members.
|