Home All Groups Group Topic Archive Search About
Author
6 Sep 2006 3:53 AM
SinCity
I am getting the error "BC30451: Name '__w' is not declared".  How can I fix
this?  Here is my code...

<script language="javascript">
document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>';
</script>

Author
6 Sep 2006 8:08 AM
Tim_Mac
hi,
that error is a compiler error.  i'd be sure it isn't anything to do with
the code you posted.
it looks like you are attempting to access a variable called "__w" that is
either private or doesn't exist.

try posting the relevant code.

tim


Show quoteHide quote
"SinCity" <n**@gsw-inc.com> wrote in message
news:%23GmlAgW0GHA.3512@TK2MSFTNGP04.phx.gbl...
>I am getting the error "BC30451: Name '__w' is not declared".  How can I
>fix
> this?  Here is my code...
>
> <script language="javascript">
> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>';
> </script>
>
>
Are all your drivers up to date? click for free checkup

Author
6 Sep 2006 2:32 PM
SinCity
> hi,
> that error is a compiler error.  i'd be sure it isn't anything to do with
> the code you posted.
> it looks like you are attempting to access a variable called "__w" that is
> either private or doesn't exist.
>
> try posting the relevant code.

>> <script language="javascript">
>> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>';
>> </script>

Ok let me add a little more info....if I take out the information containing
the ASP referer variable then the error goes away.  For example I do not get
an error if I use this code...

<script language="javascript">
document.form1.PageUrl.value='';
</script>
Author
6 Sep 2006 2:48 PM
Tim_Mac
hi, that's very strange then.  i tried your code and it worked fine.
if it is an Asp.Net server error that comes up, can you post the stack trace
(and entire error message) so we can determine where it is coming from.

thanks
tim

Bookmark and Share