|
-
Oct 25th, 2005, 09:59 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Javascript: Inconsistent page behavior ...
Hi,
I'm using a *.js file in multiple pages of my ASPX application. Some pages with the file load just fine, while others give a javascript error when loading. Why is this? It's the same file, so why would it give an error when one page loads but no error when the other page loads?
-
Oct 25th, 2005, 10:24 AM
#2
Re: Javascript: Inconsistent page behavior ...
It depends upon what's in your code. You might be referencing elemnts that don't exist on the page, among many other reasons. You'll need to be more specific about the errors.
-
Oct 25th, 2005, 11:54 AM
#3
Thread Starter
Fanatic Member
Re: Javascript: Inconsistent page behavior ...
This line of code seems to be causing the error:
VB Code:
xslproc.input = objSearchAssetCenter_XML;
The weird, stupid part is that it is in a function that isn't even being used by the page in which the error appears. There are no errors when the page that actually uses the function loads ...
-
Oct 25th, 2005, 01:46 PM
#4
Thread Starter
Fanatic Member
mendhak et al ...
Thanks for reading. I resolved it ... there were some weird invisible characters in the .js file that caused the problem. After the characters were deleted, everything returned back to normal.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|