Główna > Programowanie

Test connection problem

(1/3) > >>

meskas:
Hi,
maybe you can help me with jquery problem?
When i run test connections script i get this error in Google chrome console.
XMLHttpRequest cannot load http://192.168.1.1/READPI. Origin null is not allowed by Access-Control-Allow-Origin.

admin:
Hello,

It is a know issue related to same-origin-policy not to WAGO.  Here is an article explaining what to do:

http://www.edom-plc.pl/index.php?option=com_content&view=article&id=82:problemy-z-poczeniem&catid=37:wizualizacjehtml&Itemid=74&lang=en

Good luck!

meskas:
Still getting same problem...
Tried to add test connection script to wago and it works, but that PLC doesn't have required space for all web page...

admin:
When you open Chrome, do you get a message like/similar to this one?

http://www.edom-plc.pl/plugins/content/mavikthumbnails/thumbnails/550x30-images-stories-e-dom-chrome_message.png

meskas:
Fixed the problem :)
just added (dataType: 'jsonp') to ajax call, but them the output info must be parsed in different way

Nawigacja

[0] Indeks wiadomości

[#] Następna strona

Idź do wersji pełnej