0 Replies Latest reply on Sep 10, 2006 4:34 PM by magi5

    what is sent as web adress??

    magi5
      Hi.
      I have a script to a Fox Board and I would like to know what is sent out from this code I have.
      I believe it is sent something like this:

      http://192.168.0.90/7000/DL1 ???

      I guess it send something else in the end but i cant figure it out.
      Is there any way I can see what is sent from this script?
      The script is on this page: http://www.acmesystems.it/?id=39
      ---------------------------------
      XML.prototype.ignoreWhite = true;
      socket = new XMLSocket();
      socket.onConnect = myOnConnect;
      isConnect=0;

      if (ip==undefined) {
      ip="192.168.0.90";
      }

      if (lineid==undefined) {
      lineid="DL1";
      }

      if (port==undefined) {
      port=7000;
      }

      function myOnConnect(success) {
      if (success) {
      // Connection succeeded
      var myXML = new XML();
      var myLogin = myXML.createElement("setline");
      myLogin.attributes.id = _root.lineid;

      if (_root.OldSwitch._currentFrame==1) {
      _root.OldSwitch.gotoAndStop(2);
      myLogin.attributes.state = "on";
      myXML.appendChild(myLogin);
      _root.socket.send(myXML);
      } else {
      _root.OldSwitch.gotoAndStop(1);
      myLogin.attributes.state = "off";
      myXML.appendChild(myLogin);
      _root.socket.send(myXML);
      }
      }
      _root.socket.close();
      _root.isConnect=0;
      }

      OldSwitch.onPress = function () {
      if (_root.isdemo=="yes") {
      if (_root.OldSwitch._currentFrame==1) {
      _root.OldSwitch.gotoAndStop(2);
      } else {
      _root.OldSwitch.gotoAndStop(1);
      }
      }

      if (_root.isConnect==1) {
      return;
      }
      _root.isConnect=1;
      if (!_root.socket.connect(_root.ip,_root.port)) {
      return;
      }
      }
      ---------------------------------

      Does anybody know what is transmitted out on the web from this script?

      Regards Magi