Ref:Ajax is not working in Mozilla Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhappy
    New Member
    • Jul 2007
    • 139

    Ref:Ajax is not working in Mozilla Firefox

    Hai all,

    Why ajax code is not working in Mozilla,same code is working in Internet explorer.

    thanks,
    Aswath.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    ... ajax IS working in Moz/FF ... please post the code that makes the problem so that we may have a look at it and suggest you the fixes ...

    kind regards

    Comment

    • bhappy
      New Member
      • Jul 2007
      • 139

      #3
      Hai
      Thanks for reply,
      This is my code:

      [CODE=javascript]dpd_country.Att ributes.Add("on Change", "return populatestates( );")
      dpd_state.Attri butes.Add("onCh ange", "return dummycity();")
      dpd_city.Attrib utes.Add("onCha nge", "return getplace();")[/CODE]

      Im using 3 dropdownlists.a nd im applying ajax for that 3 dpd's.

      Thanks,
      Aswath.
      Last edited by gits; Dec 12 '07, 08:50 AM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        is that the code that is not working? ... it seems to add event-handlers to some nodes ... could you post the Add-method. do you use a framework? what exactly is not working? are the events called?

        kind regards

        Comment

        • bhappy
          New Member
          • Jul 2007
          • 139

          #5
          Hai,
          Thanks for replay,
          Im using .net1.1 so im writing code manually for ajax,im not using any ajax frameworks..

          Thanks,
          Aswath.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            ok ... so show the code that you use :) ... at least the one that is not working in FF

            kind regards

            Comment

            • Dasty
              Recognized Expert New Member
              • Nov 2007
              • 101

              #7
              As gits said, ajax is working in FF. The only difference is, how xmlhttprequest object is created. IE is using ActiveX while FF got regular object. Show us you code. If it is too long, paste at least part where are you creating XHR object.

              Comment

              • bhappy
                New Member
                • Jul 2007
                • 139

                #8
                Hai Thanks for replay,
                my code is

                [CODE=javascript]obj = GetXmlHttpReque st();
                if (obj!=null )
                {

                obj.onreadystat echange = stateprocess;
                obj.open("GET", "getcontact.asp x?id="+cid+"&st atus=0",false);
                obj.send(null);
                }


                var xmlDoc=new ActiveXObject(" Microsoft.XMLDO M")//Create the XMLDOM object[/CODE]

                here im using activeXobject ,insted what i have to use..?

                Thanks,
                Aswath.
                Last edited by gits; Dec 12 '07, 12:28 PM. Reason: added code tags

                Comment

                • gits
                  Recognized Expert Moderator Expert
                  • May 2007
                  • 5388

                  #9
                  hi ...

                  in your GetXMLHttpReque st()-method you should have something like this already. for the xml-doc-object have a look here

                  kind regards

                  Comment

                  • bhappy
                    New Member
                    • Jul 2007
                    • 139

                    #10
                    Hai
                    I followed ur link.I understood my problem,but i didn't get any sollution.here im retriving values from database and binding to dropdownlists.i don't know how to retriving data from database for mozilla....?any help plz..........

                    thanks,
                    Aswath.

                    Comment

                    • gits
                      Recognized Expert Moderator Expert
                      • May 2007
                      • 5388

                      #11
                      what is your particular problem? the examples in the links show you exactly what to do in case the browser is not IE ... its always the code without ActiveX-objects ...

                      kind regards

                      Comment

                      Working...