5 Replies Latest reply on Jun 12, 2007 3:10 AM by farhanakhan

    problem with PostNetText

    farhanakhan Level 1
      i use this code to send the post text to the asp file to save the data in to database

      urll = " http://192.168.0.84/VS/connect2.asp"
      postText = "farhana"
      mime = "text/plain; charset=utf-8\r\nSOAPAction: " & QUOTE & QUOTE

      netID = postNetText(urll, postText, "Win", "ASCII", mime)


      put "netDone(netID)====="&netDone(netID)
      put "netTextResult(netID)======="&netTextResult(netID)
      put "netTextResult()===="&netTextResult()
      put "netID======="&netID


      result is that....in the message window
      "netDone(netID)=====0"
      -- "netTextResult(netID)======="
      -- "netTextResult()===="
      -- "netID=======20"

      reply me fast plz ..coz after few hour i have presentation ..and some problme is coming
      thx
      farhana
        • 1. Re: problem with PostNetText
          Level 7
          That looks like it is doing exactly what it is supposed to be doing.
          You will note that netDone is zero because the network operation is not
          done yet. The other items come up as void because the network operation
          is not done yet. PostNetText() is an asynchronous operation. i.e. you
          need to wait until netDone() is 1 before you can get the results. In
          the next frame after the one with the code you provided, do this:

          on exitFrame me
          if netDone(netID)
          put "netTextResult(netID)======="&netTextResult(netID)
          put "netTextResult()===="&netTextResult()
          else
          go to the frame
          end if
          end
          • 2. Re: problem with PostNetText
            farhanakhan Level 1
            when i play the application netDone(netID) is become 1 then application stop

            how i send the post text to the asp file and how i get the post text into the asp file..when i have posttext in the asp then how i sent back to the director
            plz reply me fast

            now i apply this code at the application 2nd frame
            netDone(netID) is become 1

            --------out put
            "netDone(netID)=====1"
            "netTextResult(netID)======="
            "netTextResult()===="




            -------At frame# 1i put this code
            global urll ,postText,mime
            on exitFrame me
            urll = " http://192.168.0.84/VS/connect2.asp"
            postText = "farhana"
            mime = "text/plain; charset=utf-8\r\nSOAPAction: " & QUOTE & QUOTE
            end

            -----At Frame#2----i appy this code
            global netID
            on exitFrame me
            if netDone(netID) then
            put "netDone(netID)====="&netDone(netID)
            put "netTextResult(netID)======="&netTextResult(netID)
            put "netTextResult()===="&netTextResult()
            else
            go to the frame
            end if
            end


            ---this code i apply on the button..when user press button then postnettext execute

            global netID,urll,postText,mime
            on mouseUp me
            netID = postNetText(urll, postText, "Win", "ASCII", mime)
            end


            reply me fast
            • 3. Re: problem with PostNetText
              Level 7
              Check what netError(netID) comes up with. If netDone(netID)=1 then you
              will either get the text that your ASP script sends or you will get a
              netError().

              I don;t know much about ASP scripting, so I can't tell you how to make
              your server side script work. It may just be that your script is not
              sending anything back.
              • 4. Re: problem with PostNetText
                farhanakhan Level 1
                is not working ....every time
                director not ommunicate with the asp page is not sending the post data to the asp
                tel lme what i do
                i also check the neterror(netID) any error is coming ...but always this error is come
                process is going on
                tell me what i do
                u know any xtra which comunicate with the database over LAN or internet
                • 5. Re: problem with PostNetText
                  farhanakhan Level 1
                  hi mike
                  is work now i dont how suddenly is work
                  data transfer to the asp page and data store into the database
                  i m so much happy mike
                  i m so much thx mike u reply me fast
                  thx alot
                  mike
                  regards
                  farhana khan