Results 1 to 4 of 4

Thread: [RESOLVED] Javascript: Inconsistent page behavior ...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Resolved [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?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Re: Javascript: Inconsistent page behavior ...

    This line of code seems to be causing the error:
    VB Code:
    1. 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 ...

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width