Link to home
Create AccountLog in
Avatar of Lady_M
Lady_MFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Corrupted Get request

Hi

Got a bit of an urgent issue here.

My site isn't loading at all in IE7.  I'm getting an Error 400, bad request.  The microsoft help page says it's a corrupted get request.  Presumably because of the method in the function below which is calling prototype.js (http://www.prototypejs.org/).  It works fine in IE6 and Firefox though.  Confused.

I tried method post instead and that's not allowed on the server.  Is it a simple matter for the server administrator to sort this out?  Or will I need to change the code?

Thanks

function  populateBox (serverPage, obj){
      var objID = "iboxtext";
      new Ajax.Updater(objID, serverPage, {method:'get', onComplete:function(){
                        //change tab color
                        if(obj != null){
                              var links = $('infoboxtabs').getElementsByTagName('A');
                              for (var i=0; i<links.length; i++) {
                                    links[i].className = 'plain';  
                              }
                              obj.className = 'highlighted';
                        }
                       
                  }
            }
      );
     
      return false;
}
//load initial page.
Event.observe(window, 'load', function(){ populateBox('page.html', null); });
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Lady_M

ASKER

Thankyou, it works.  That's a big relief!  Thought it was going to be a day of agonising.
I'm not very sure what you meant by your explanation, if you get time could you try explaining it again in words of one syllable please?
Thanks
PS, I can't use the window.onload because IE refuses to do it.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account