Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AJAX not working in Konqueror

Status
Not open for further replies.

1DMF

Programmer
Joined
Jan 18, 2005
Messages
8,795
Location
GB
Hello,

I thought I'd bite the bullet and try this Knoppix thing so I could see where LINUX was at, wow, I have been so used to old school unix with nothing but a command line interface.

Now it's a complete windows environment, icons (i'm sure they nicked a couple of MS icons - or is it the other way round?)

I'm seriously impressed and concidering parting from MS software, however, there's always a but, isnt there!

I loaded my site up in the Knoppix supplied Konquerer browser and have found that my AJAX script doesn't work.

(works fine in the FireFox browser - which I'm writing this thread on - though I don't like the fonts on this OS!)

the code that runs is
Code:
function alertContents() {

        if (http_request.readyState == 4) {
            if(http_request.status && http_request.status == 200) {
                // Call global AJAX function
                
                AJAX(http_request.responseText,retvars);
                                
            } else {
                alert('There is a problem with AJAX, please contact support.');
            }
        }

    }

all I get is "There is a problem with AJAX, please contact support."

Is there a different return code for Konquerer other than 200?

Thanx 1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Well, I thought it worked fine... but here are some suggestions...

In the else part of your code... add in an alert:
Code:
} else {
alert(http_request);
alert(http_request.status);
alert('There is a problem with AJAX, please contact support.');
}

I'd expect it to alert an object first, and then a number.

Let us know how you go!
Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
I'll try it and let you know, i've rebooted to windows at the moment, can't sit here playing with Knoppix all day, my boss wouldn't be pleased ;-)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
It won't work in Lynx either.
 
I've ran the test as you suggested Jeff, The return code is 400 and if I update the dom with what is returned I get "Page Not Found" , which matches the 400 error code.

So the question now is why? , What's wrong with the URL being passed to the httprequest, that works fine in FF,IE,OPERA etc...

another puzzler

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Take a look at your Apache error log. Please post the error as the result of the 400.


Let us know your results!

X
 
Apache error log, you've lost me, can you elaborate please.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I've checked the URL and it is being called in the correct case, plus the hosting for the page is on a windows box so case shouldn't be an issue when serving the requested page.

any other pointers?



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top