Completing a Configuration for Chrome and a Server (Page 1 of 5 )
Creating a XUL File to Be Served
The XUL source to be served will actually be sent by a PHP script—but a good first step is to develop a XUL file that we will convert into PHP.
We copy the newssearch.js and NewsSearchStyle.css files into the Apache root directory.
We will copy the newssearch.xul file but rename it to startupScreen.xul. We also change the source file to remove the login areas, replacing them with the graphics that render a successful login screen:
Without “understanding” what to do with a XUL file, the Apache web server would deliver a XUL file to a browser as an XML text file. A browser receiving such a file most often just presents the source to the user of the browser.
We must add an entry to either the mime.types or the httpd.conf file for Apache:
After making this change, restarting the web server will allow us to enter the XUL file reference URL:
The browser will now render the XUL interface shown earlier in our client/server implementation.