I got this Idea.
Moderator: General Moderators
I got this Idea.
Let say you go to geocities.com, you sign up and create a little web page. From what I know geocities and many other free web hosting sites do not have mySQL and PHP installed on there servers. So what if you create a file called database.html, and then you store many javascript variables/arrays in that along with some functions that all work to interact with that files variables/array (e.g. data storage) thus creating a database.
Now when ever you create a html page. Just import that script to be able to use the javascript functions that are like php functions that work with the database.html. Some functions change the variables to different values like "UPDATE" query in mysql. And some functions are use to select values from that script (database.html).
What do you think? If, that is, you understand?
Now when ever you create a html page. Just import that script to be able to use the javascript functions that are like php functions that work with the database.html. Some functions change the variables to different values like "UPDATE" query in mysql. And some functions are use to select values from that script (database.html).
What do you think? If, that is, you understand?
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Yeah I thought that xml might come in to this subject. I don't know much about JavaScript and xml. 
I appreciate all your guy's notions. I just came up with the idea and though it might be of interest. My oppinion: there could be a lot of people that need a free database.
PS: links to xml and any simular project like this that may exist do post.
I appreciate all your guy's notions. I just came up with the idea and though it might be of interest. My oppinion: there could be a lot of people that need a free database.
PS: links to xml and any simular project like this that may exist do post.
Yeah I thought that xml might come in to this subject. I don't know much about JavaScript and xml. 

I appreciate all your guy's notions. I just came up with the idea and though it might be of interest. My opinion: there could be a lot of people that need a free database.
PS: links to xml and any similar project like this that may exist do post.
Why is that? I'd think JavaScript be easier. It's basically a collection of data stored in variables and arrays a file (database.html). And to change/select the data you need to include it into each script that needs to connect to the data. In a ways it's very simple and amateur.Javascript wouldn't work. A web based Java client would.
I appreciate all your guy's notions. I just came up with the idea and though it might be of interest. My opinion: there could be a lot of people that need a free database.
PS: links to xml and any similar project like this that may exist do post.
I'm no expert at Javascript, but if I understand you correctly, your looking for something that would simulate a PHP/MySQL environment. Remember that Javascript runs in the browser, not server side. The only way you would be able to store data (permanently) is if the script would log into your GeoCities account and update the xml/html database.
I think this is beyond the capabilities of Javascript. Java on the other hand would work, however all your visitors would have to install it if they need the ability to update/modify content. This would also expose you as all your visitors would have the username/password to your account.
Possible = Yes
Practical = No
I think this is beyond the capabilities of Javascript. Java on the other hand would work, however all your visitors would have to install it if they need the ability to update/modify content. This would also expose you as all your visitors would have the username/password to your account.
Possible = Yes
Practical = No
Right
Here is a list..
http://wp.netscape.com/eng/mozilla/3.0/ ... ef_a-c.htm
EDIT: Ajax won't work if you don't have server side scripting..
Here is a list..
http://wp.netscape.com/eng/mozilla/3.0/ ... ef_a-c.htm
EDIT: Ajax won't work if you don't have server side scripting..
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia