Ajax.Updater problems Firefox 3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luftikus143
    New Member
    • Jan 2007
    • 97

    Ajax.Updater problems Firefox 3

    Hi there,

    I recently upgraded to Firefox 3 and suddenly my Ajax.Updater doesn't work anymore. Firefox gives me a "Security Error"... I am using the recent versions of prototype and script.xx.us.

    I am not an Ajax-geek.... But it worked smoothly in Safari and Firefox until now.. Thanks for giving me hint!

    [PHP]
    <a href='#' onclick=\"varia bles(); Effect.toggle(' datasets','BLIN D'); return false;\" >click here</a>

    <div id='output-div'></div>


    function variables()
    {
    var url = 'http://xxxxx/fill_variable_l ist.php';
    var target = 'output-div';
    var pars = 'selectedKeywor d=".str_replace (" ", "+", $selectedKeywor d)."&selected_i ds=".@implode(" +", $selected_ids). "&requestedData settype=".$_POS T['requestedDatas ettype']."';
    var myAjax = new Ajax.Updater(ta rget, url, {method: 'get', parameters: pars});
    }[/PHP]
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    Is the AJAX calling a file on a different domain than the domain the AJAX scrip came from?
    I'm not sure any browser will allow that.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      i would wonder that it would have worked before the FF 3 update ... i guess it's not a cross-domain issue - but let's wait for the OP's answer. in case i'm right then we should even see the code that updates the div - with FF 3 there are some new issues with referencing frames, documents and elements but this could be fixed quite simple ...

      kind regards

      Comment

      • luftikus143
        New Member
        • Jan 2007
        • 97

        #4
        No, it's the same server. And same domain.

        Comment

        • luftikus143
          New Member
          • Jan 2007
          • 97

          #5
          Hmmm..... very strange... It works with FF 3.0.1 on Windows. But not with FF 3.0.1 on Max OSX...

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            naaahh ... that seems very strange. has the mac-one any plugin/extension installed, that the windows one has not? firebug or whatever? in case it has just disable it and try again ...

            kind regards

            Comment

            • luftikus143
              New Member
              • Jan 2007
              • 97

              #7
              Originally posted by gits
              naaahh ... that seems very strange. has the mac-one any plugin/extension installed, that the windows one has not? firebug or whatever? in case it has just disable it and try again ...
              No, nothing. I disabled all add-ons... Still, same thing.

              Comment

              • Atli
                Recognized Expert Expert
                • Nov 2006
                • 5062

                #8
                In your code, you have "http://" in your AJAX URL.

                Could it be that the Mac version sees the "http://" and just assumes you are requesting a different domain, even tho you are not?

                Have you tried a *relative* URL?

                Comment

                • luftikus143
                  New Member
                  • Jan 2007
                  • 97

                  #9
                  Originally posted by Atli
                  In your code, you have "http://" in your AJAX URL.

                  Could it be that the Mac version sees the "http://" and just assumes you are requesting a different domain, even tho you are not?

                  Have you tried a *relative* URL?
                  Wow.... that's it! Great! Muchos gracias, thanks a lot, danke schön!

                  Comment

                  Working...