problem in firefox 2.0.0.13

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbettadpur
    New Member
    • Aug 2007
    • 121

    problem in firefox 2.0.0.13

    hello everybody,

    In my application i am using three dependant drop down boxes
    for that one i am using ajax to load the values in dependant drop downs

    eg A -> first drop down box its loading values directly from database table
    B -> based on the value selected in first dropdown second will be loading my doing query to database.
    C- > same as second one

    My problem is if i submit i am not able to get the POST values of second and third drop down, but in IE 6.0 i can able to see the POST values.


    thank u
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    first ... please post the code where you create the request object ...

    kind regards

    Comment

    • sbettadpur
      New Member
      • Aug 2007
      • 121

      #3
      here with i am sending my source code, which are going to use for request to database i.e XMLHttp

      actually i am using two separate requests in two different files, both files i am sending
      ------------------------------------------------ First file ----------------------------------------------------
      [CODE=javascript]var xmlHttpp

      function clientposition( formname,str)
      {

      xmlHttpp=GetXml HttpObject()
      if (xmlHttpp==null )
      {
      alert ("Browser does not support HTTP Request")
      return
      }
      var url="../../include/clientposition. php"
      url=url+"?qq="+ str+"&form="+fo rmname
      xmlHttpp.onread ystatechange=po sitionChanged;
      xmlHttpp.open(" GET",url,true)
      xmlHttpp.send(n ull)
      }function positionChanged ()
      {
      if (xmlHttpp.ready State==4 || xmlHttpp.readyS tate=="complete ")
      {

      document.getEle mentById("posit ion").innerHTML =xmlHttpp.respo nseText

      }
      }
      function GetXmlHttpObjec t()
      {
      var xmlHttpp=null;
      try
      {
      // Firefox, Opera 8.0+, Safari
      xmlHttpp=new XMLHttpRequest( );
      }
      catch (e)
      {
      //Internet Explorer
      try
      {
      xmlHttpp=new ActiveXObject(" Msxml2.XMLHTTP" );
      }
      catch (e)
      {
      xmlHttpp=new ActiveXObject(" Microsoft.XMLHT TP");
      }
      }
      return xmlHttpp;
      }[/CODE]
      ------------------------------------------------ First file ----------------------------------------------------

      ---------------------------------------------- Second file----------------------------------------------------

      [CODE=javascript]var xmlHttppcan

      function positioncandida te(formname,cli ent,position)
      {
      xmlHttppcan=Get XmlHttpObject()
      if (xmlHttppcan==n ull)
      {
      alert ("Browser does not support HTTP Request")
      return
      }
      var url="../../include/positioncandida te.php"

      url=url+"?c="+c lient+"&p="+pos ition+"&f="+for mname
      xmlHttppcan.onr eadystatechange =candidateChang ed;
      xmlHttppcan.ope n("GET",url,tru e)
      xmlHttppcan.sen d(null)
      }function candidateChange d()
      {
      if (xmlHttppcan.re adyState==4 || xmlHttppcan.rea dyState=="compl ete")
      {
      document.getEle mentById("candi date").innerHTM L=xmlHttppcan.r esponseText
      }
      }
      function GetXmlHttpObjec t()
      {
      var xmlHttppcan=nul l;
      try
      {
      // Firefox, Opera 8.0+, Safari
      xmlHttppcan=new XMLHttpRequest( );
      }
      catch (e)
      {
      //Internet Explorer
      try
      {
      xmlHttppcan=new ActiveXObject(" Msxml2.XMLHTTP" );
      }
      catch (e)
      {
      xmlHttppcan=new ActiveXObject(" Microsoft.XMLHT TP");
      }
      }
      return xmlHttppcan;
      }[/CODE]

      ---------------------------------------------- Second file----------------------------------------------------
      Last edited by gits; Apr 5 '08, 10:14 AM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        could you have a look at FF's js-error-console and tell what error you find ... in case there is one?

        how do you call the requests from your select-nodes? onchange? please show one call ...

        kind regards

        Comment

        • sbettadpur
          New Member
          • Aug 2007
          • 121

          #5
          Only These two errors i saw in FF error console but Error1 is repeating 10 times


          Error1: document.getEle mentById("invno ") has no properties
          Source File: http://localhost/script/loadinvoice.js
          Line: 38

          Error: formObj.canname has no properties
          Source File: http://localhost/script/validate.js
          Line: 1985


          we are calling the AJAX function from select object using both events i.e onFocus and onChange.

          I wrote separate script for the test purpose taking above logic their i am getting POST values in both mozilla and internet explore.

          please get me some solution i am struggling very much.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            even when the errors seem to have nothing to do with your current problem ... you should fix the errors that FF gave you first. when you have done this look whether the problem persists or not ... every error might interupt the successful execution of javascript in FF ... so you should ensure that the console shows no errors ...

            kind regards

            Comment

            Working...