issue in sending query string.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #16
    Originally posted by nirmalsingh
    dear jana
    code fragment "ActiveXObj ect" is working without error.
    One more thing let me know.
    Tell me the length of url by alerting that url.
    Is that more than "1350"?

    [code=javascript]
    alert(url.lengt h); //after setting all parameters how long it is ....
    [/code]

    If it is then, try this one ..............

    [code=javascript]
    termsxmlHttp.op en("POST",url,t rue);
    termsxmlHttp.on readystatechang e=termsstateCha nged;
    termsxmlHttp.se tRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded');
    termsxmlHttp.se nd(url);
    [/code]

    Debasis Jana

    Comment

    • nirmalsingh
      New Member
      • Sep 2006
      • 218

      #17
      Originally posted by dmjpro
      One more thing let me know.
      Tell me the length of url by alerting that url.
      Is that more than "1350"?

      [code=javascript]
      alert(url.lengt h); //after setting all parameters how long it is ....
      [/code]

      If it is then, try this one ..............

      [code=javascript]
      termsxmlHttp.op en("POST",url,t rue);
      termsxmlHttp.on readystatechang e=termsstateCha nged;
      termsxmlHttp.se tRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded');
      termsxmlHttp.se nd(url);
      [/code]

      Debasis Jana
      yes, it is more than 1350. that is 2576(according to my parameter i passed to save).

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #18
        Originally posted by nirmalsingh
        yes, it is more than 1350. that is 2576(according to my parameter i passed to save).
        Then use my Code.

        Debasis Jana

        Comment

        • nirmalsingh
          New Member
          • Sep 2006
          • 218

          #19
          Originally posted by dmjpro
          Then use my Code.

          Debasis Jana
          sorry jana,
          still i am getting unspecified error!

          Comment

          • dmjpro
            Top Contributor
            • Jan 2007
            • 2476

            #20
            Oppssss !
            Sorry the code mistyped.

            [code=javascript]
            var url="Ref="+para m;
            url=url+"&Terms ="+terms;
            url=url+"&mode= "+mode;
            url=url+"&terms _id="+ term_id;
            url=url+"&sid=" +Math.random();
            termsxmlHttp.se tRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded');
            termsxmlHttp.on readystatechang e=termsstateCha nged;
            termsxmlHttp.op en("POST","../Ajax_Pages/aj_terms_condit ions.aspx",true );
            termsxmlHttp.se nd(url);
            [/code]

            Now have a try with this.
            Good Luck !

            Debasis Jana

            Comment

            • nirmalsingh
              New Member
              • Sep 2006
              • 218

              #21
              Originally posted by dmjpro
              Oppssss !
              Sorry the code mistyped.

              [code=javascript]
              var url="Ref="+para m;
              url=url+"&Terms ="+terms;
              url=url+"&mode= "+mode;
              url=url+"&terms _id="+ term_id;
              url=url+"&sid=" +Math.random();
              termsxmlHttp.se tRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded');
              termsxmlHttp.on readystatechang e=termsstateCha nged;
              termsxmlHttp.op en("POST","../Ajax_Pages/aj_terms_condit ions.aspx",true );
              termsxmlHttp.se nd(url);
              [/code]

              Now have a try with this.
              Good Luck !

              Debasis Jana
              sorry to say jana.
              again the same problem.
              unspecified error in ie
              and
              uncaught error in firefox.

              Comment

              • dmjpro
                Top Contributor
                • Jan 2007
                • 2476

                #22
                Originally posted by nirmalsingh
                sorry to say jana.
                again the same problem.
                unspecified error in ie
                and
                uncaught error in firefox.
                I am trying to update the "function termsstateChang ed()"
                Just try this and let me know what happens.

                [code=javascript]
                function termsstateChang ed()
                {
                if (termsxmlHttp.r eadyState==4 && termsxmlHttp.st atus==200)
                alert("Ajax Call Done ......... Yahoo!!!");
                }
                [/code]

                Please let me know, whether you get the alert or not?

                Debasis Jana

                Comment

                • nirmalsingh
                  New Member
                  • Sep 2006
                  • 218

                  #23
                  Originally posted by dmjpro
                  I am trying to update the "function termsstateChang ed()"
                  Just try this and let me know what happens.

                  [code=javascript]
                  function termsstateChang ed()
                  {
                  if (termsxmlHttp.r eadyState==4 && termsxmlHttp.st atus==200)
                  alert("Ajax Call Done ......... Yahoo!!!");
                  }
                  [/code]

                  Please let me know, whether you get the alert or not?

                  Debasis Jana
                  the error occured b4 statechanged function. so no alert displayed.

                  Comment

                  • dmjpro
                    Top Contributor
                    • Jan 2007
                    • 2476

                    #24
                    Originally posted by nirmalsingh
                    the error occured b4 statechanged function. so no alert displayed.
                    Try it .............

                    [code=javascript]
                    function termsstateChang ed()
                    {
                    alert("helllo world");
                    if (termsxmlHttp.r eadyState==4 && termsxmlHttp.st atus==200)
                    alert("Ajax Call Done ......... Yahoo!!!");
                    }

                    [/code]

                    Watch it, how many times "hello world" gets alerted.
                    Good Luck !

                    Debasis Jana

                    Comment

                    • nirmalsingh
                      New Member
                      • Sep 2006
                      • 218

                      #25
                      Originally posted by dmjpro
                      Try it .............

                      [code=javascript]
                      function termsstateChang ed()
                      {
                      alert("helllo world");
                      if (termsxmlHttp.r eadyState==4 && termsxmlHttp.st atus==200)
                      alert("Ajax Call Done ......... Yahoo!!!");
                      }

                      [/code]

                      Watch it, how many times "hello world" gets alerted.
                      Good Luck !

                      Debasis Jana
                      thanx jana.
                      i tried but no alert is dsipalyed.

                      Comment

                      • dmjpro
                        Top Contributor
                        • Jan 2007
                        • 2476

                        #26
                        Originally posted by nirmalsingh
                        thanx jana.
                        i tried but no alert is dsipalyed.
                        Send me the code, so far what you tried.

                        Debasis Jana

                        Comment

                        Working...