The short answer to your question is yes.
If this is a one time insertion as the page is loading, one way to debug it is to view the page or script (if it's an external script) in the browser. IE will not view external scripts, so use another browser if it's an external script.
Anyways, viewing in the browser will, in the case of a page allow you to use the browser's 'view source'. This will show you how your asp token (<%=rs("pID")%>) is being served to the user. In the case of an external script, in just about any browser other than IE, navigating directly to the external script will show you how that script is being served.
Once you see how the code is being served, it should be relatively easy to see what's causing the problem. In a case like this, often it's missing or extra quotation marks. But it could be numerous things.
Remember, regardless of what asp token you use, it must resolve in the served code to fit what is expected in the javascript.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks