Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE8 Script Error
Message
 
 
À
29/07/2009 15:36:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01415387
Message ID:
01415391
Vues:
47
>Hi All,
>
>I have some html pages with embedded script (generated by Visio 2003). When I load this from within my application using an IE7 browser control on a VFP form it loads perfectly and has done so for years. However, under IE8 it generates an error on a particular line.
>
>if I load the html outside of my app by using IE8 directly there is no error at all. So the error only occurs when using IE8 and loading the html using a browser control on a form inside VFP.
>
>The code section looks like this and I have marked the line causing the error:
>
>
>function ParseParams (strRawParams)
>{
>	strRawParams = strRawParams.substring(1);
>
>	var arrayParamTokens = strRawParams.split('&');
>	for (var count = 0; count < arrayParamTokens.length; count++)
>	{
>		arrayParamTokens[count] = unescape(arrayParamTokens[count]);
>		this[count] = arrayParamTokens[count].substring(0, arrayParamTokens[count].indexOf('='));
>==>>		this[this[count]] = arrayParamTokens[count].substring(arrayParamTokens[count].indexOf('=') + 1);
>	}
>
>	return this;
>}
>
>
>The error message returned by the browser control is:
>
>
>Object doesnt support this property or method.
>
>
>The browser control then asks if you want to continue running scripts on this page and answering either Yes or No continues to load the entire html page correctly and without further error.
>
>Does anyone have an idea if there is a new IE8 setting which may be responisble for this behaviour?
>
>Thanks


Can you do instead
>function ParseParams (strRawParams)
>{
>	strRawParams = strRawParams.substring(1);
>
>	var arrayParamTokens = strRawParams.split('&');
        int ArrayIndexer ;
>	for (var count = 0; count < arrayParamTokens.length; count++)
>	{
>		arrayParamTokens[count] = unescape(arrayParamTokens[count]);
>		this[count] = arrayParamTokens[count].substring(0, arrayParamTokens[count].indexOf('='));
                ArrayIndexer = this[count] ;
>==>>		this[ArrayIndexer] = arrayParamTokens[count].substring(arrayParamTokens[count].indexOf('=') + 1);
>	}
>
>	return this;
>}
If I undesrtood this code correctly?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform