Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Client script error
Message
 
À
23/10/2002 19:45:22
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00714602
Message ID:
00714887
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform