Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Client script error
Message
 
To
23/10/2002 19:45:22
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00714602
Message ID:
00714887
Views:
11
Try prefacing your referance to "creator" with the window it relates to like:
s = win.creator.location.toString();
>Hi,
>
>When client script debugging is enabled in IE, I receive an error message but the script works fine (i.e. the parent form location changes and the form is refreshed).
>
>The script is very simple. It looks like this:
>
><script language="javascript">
>        function ParentRefresh()
>        {
>                s = creator.location.toString();
>                n = s.indexOf("#");
>		
>		if (n > 0)
>			s = s.substring(0, n);
>
>		creator.location = s ;
>	}
></script>
>
>
>The error message is "creator is undefined", but as I´ve said before, the script works.
>
>Any ideas?
>
>Thanks in advance,
>
>Eugenio
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform