Forum Moderators: open
I did test in different browsers and found IE6 does work offline. Since that is using a different protocol (ActiveX) that must be why. But I need it to work in Firefox and Opera too.
It just seems AJAX is limited if it does not work offline across all main browsers.
Assuming you are running a variety of Debian Linux on your desktop, like a responsible developer, Synaptic will allow you to automatically configure and install Apache and the appropriate modules for the server languages you wish to support. Red Hat or SuSE both have package managers that allow easy install, as well.
If you are some kind of sociopath that still runs Windows, you can get EasyPHP, which will quite easily install both Apache and the appropriate modules for PHP support. I image you can manually, at great expense in time, resources, and human capital, also install Ruby on Windows-Apache; on Linux it is a single mouse click.
I believe that at least some versions of Windows XP come with some flavor of MS server already on board. With a little investigation, some arcane rituals, and blood sacrifice, you can probably get that up and running, too.
Then the file can be updated from anywhere
Just as long as "everywhere" has a server onboard.
'Tis indeed reasonably easy to get a server up & running locally, Mr T., but this might not be feasible on every occasion.
I was going to suggest old-fashioned things like dummy image requests with data appended to query strings - that's if no info is expected in reply.
Actually, I'm a bit pressed to envision the circumstances obviating the installation of a local server, but I bow to your estimable command of the milieu.
If you are some kind of sociopath that still runs Windows
You mean like the vast majority of people? Anyway I'm stuck with it at work and choose to use it at home, due to the immeasurable number of programs designed for it. I have Linux waiting to be installed, but don't feel the need right now, due to so many wonderful, and often free, Windows programs out there.
Anyway, I have already installed Apache and PHP onto Windows XP. But I wasn't testing the file from there, but another folder. I assumed JavaScript would be able to connect directly to a server on the internet from any folder on my PC using AJAX. Obviously not.
Now the demo only needs to download a text file. (Actually uploading might be useful too, but not right now.) What I meant by global access is that the PHP side of it would run naturally as a standard website does - so you could dial into the web page from home, work, on the move, whatever. The JavaScript is merely to reference the data locally (as it uses a nifty search-as-you-type function) while the PHP is for the maintenance of the database I need.
If only JavaScript could load and save files none of this messing around would be necessary.
Also, the demo must work for anyone who chooses to download it. So installing a local server is not a good option to require.
Just so you know, there are literally thousands of open source software packages available for Linux, including the best programming editor I've used, Quanta Plus. The only valid reason to stick with Windows is if you already have hardware, the manufacturers of which haven't produced Linux drivers. Included are some mobo chipsets and some obscure peripherals, but supporting those manufacturers, whether you love Bill or not, is limiting choice and raising prices.
As for majorities, they're what elect our politicians, aren't they? (Can you say, "George Bush"?)
Oh, wait, I think I see your point. "Sociopath" isn't quite strong enough, is it? Well, I like to be diplomatic . . .