Author Topic: Web Browser Error "Object doesn't support property or method 'create'"  (Read 1232 times)

DP_PiEng

  • Newbie
  • *
  • Posts: 2
    • View Profile
For a project I am working on we have a web based controller whose settings and status you can edit using a web browser by going to http://(the devices ip address)/setup.html in any web browser. I would like for the customer using the HMI to be able to get to the devices settings without having to open up a web browser application and do it just on the advancedHMI program I've created. I was able to create a WebBrowser object, go to the devices setup login page, then login, after the login I get an error message shown in the attached image.

 If I click yes or no when it asks "Do you want to continue running scripts on this page?" it will take me to the devices set up as it would on a normal web browser but the formatting is messed up. Clicking around randomly on the page will take me to different settings menus but I can't tell where I am going to.

Is there any way I can solve the error and fix the WebBrowser formatting issue?

Thank you

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Can you upload and share your project on the dropbox?

Just remove any sensitive information prior to uploading it.

DP_PiEng

  • Newbie
  • *
  • Posts: 2
    • View Profile
How do I get to the drop box? The basic operation is I open a new form from the main form that just has the WebBrowser component on it. For the WebBrowser I have the IP address of the device/setup.html in the URL parameter of the behavior property. The device I am attempting to contact is a ControlByWeb X600 https://www.controlbyweb.com/x600m/ .

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
It could be the limitation of the WebBrowser component itself that doesn't render certain web pages properly.

Attached is the picture which shows the web page of the MicroLogix 1100 and the url entered in the WebBrowser component was: http://192.168.1.10.

And just an FYI, here is the link to the dropbox which allows people to create a FREE account with 2GB storage: https://www.dropbox.com

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
I did get a script error on one of the links for MicroLogix and I would blame it on the controller itself since this is what Google search shows:

"You can access the MicroLogix 1100 Web Server only with Internet Explorer 6, 7, or 8. Internet Explorer 9 or above are not supported because of JavaScript incompatibility. To access data view pages, the browser requires Javascript support."

So, check your controller requirements.