Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error using WebBrowser
Message
 
 
À
19/07/2013 15:37:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01578896
Message ID:
01578924
Vues:
46
>>>Hi All,
>>>My objective is to call a web application inside a vfp form. I am having an issue when using a web browser object.
>>>When navigating, depending on the web pages ( for example www.manex.com ), I will get an error ‘An error has occurred in the script on this page.
>>>Error: Unable to get value of the property ‘setStyle’: object is null or undefined
>>>URL http://www.manex.com/js/sl_slider.js
>>>
>>>the screen print of the error is attached.
>>>
>>>Here the code for duplicating the problem
>>>
>>>xx=Newobject('_webform',Home()+'\gallery\_WebView')
>>>xx.OleWebBrowser.Navigate2('http:\\www.manex.com')
>>>xx.Show()
>>>
>>>
>>>
>>>
>>>Help please.
>>>
>>>Thank you
>>>Yelena
>>
>>Do you get the same error when you open the page in the browser directly (not from VFP application)? If you get the same error, the problem is with the page js code.
>Thank you Dmitry
>No, I don't get the same error. I don't get the same error if I use the code below
>
>oBrowser = CREATEOBJECT("InternetExplorer.Application" )
>oBrowser.Navigate("http://www.manex.com")
>oBrowser.Visible =.t.
>
>But this code will open a IE browser in a separate window, not a VFP form. I am trying to open the web object inside VFP form .
>Thank you

You are welcome. Sorry my input was not helpful. It must be (my guess) that VFP does not execute js code the same way the browser does. I am sure one of the VFP gurus will explain the reasons.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform