Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

404 problem!


KoE

Recommended Posts

I have absolutely no knowledge of Javascript, and am in need of assistance.

I am using the script from the following link:

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

Anyway the problem is I have a working 404 error page setup. But it doesnt work for the div in which the javascript is loading pages to.

If it can't find the page it just doesnt do anything.

Any help would be much appreciated.

Link to comment
Share on other sites

Forgive me for not wanting to pick apart this code too much, but from what little I know of AJAX I believe the problem lies here:

function loadpage(page_request, containerid){
if (page_request.readyState == 4 [b][COLOR="Red"]&& (page_request.status==200 || window.location.href.indexOf("http")==-1)[/COLOR][/b])
document.getElementById(containerid).innerHTML=page_request.responseText
}

Emphasis mine.

Try removing the code I highlighted and see if ti works.

=Smidge=

Link to comment
Share on other sites

Koray is one of those people who preach 100% conformance with published standards, even when doing so doesn't get things working the way you need them to.

Silly as it is sometimes, it's important in the eyes of major business publishers. Invalid code shows either laziness or carelessness towards your personal webpage, whether you think so or not.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...