Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Guybrush Threepwood

Members
  • Joined

  • Last visited

  1. In your first block you test for window.XMLHttpRequest On my chrome this is set but your code does nothing unless its not set. Simply moving the end else bracket gets code I think you need. function load(){ if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function(){ if(xmlhttp.readyState == 4 && xmlhhtp.readyState == 200){ document.getElementById("adiv").innerHTML = xmlhttp.responseText; } } xmlhttp.open("GET","include.inc.php",true); xmlhttp.send(); } Running the function then correctly gets a 404 (For the the WDF server) load() undefined VM145:13 GET https://www.webdesignerforum.co.uk/topic/include.inc.php 404 load @ VM145:13 (anonymous) @ VM163:1 VM145:8 Uncaught ReferenceError: xmlhhtp is not defined at XMLHttpRequest.xmlhttp.onreadystatechange (<anonymous>:8:35) xmlhttp.onreadystatechange @ VM145:8 XMLHttpRequest.send (async) load @ VM145:13 (anonymous) @ VM163:1 So you just needed to actually do somthing in browsers where window.XMLHttpRequest is set.
  2.    Guybrush Threepwood reacted to a post in a topic: Error on website
  3.    Peter.C reacted to a post in a topic: Error on website
  4.    BrowserBugs reacted to a post in a topic: Error on website
  5.    Jo 90 reacted to a post in a topic: Error on website
  6. Hi Peter, The error you are getting is because the eregi() function no longer exists. The eregi() function was deprecated in php 5.3.0 and has been completely removed in php7. I suspect whomever you host with has upgraded to php7 and this is why you are seeing this error. You may be able to talk to your hosting provider about downing your php version to one in the 5.6.x version. Hope this helps!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.