View Full Version : I'm not sure if its possible... but its a challenge!
wildmage92
12-06-2008, 02:35 AM
What I need is some kind of script or something else (whatever it might be) to be able to add or subtract points on one page, from a total on another page.
Here's what I mean:
_____________________
webpage one:
Click here to add 5 points
Click here to lose 5 points
____________________
webpage two:
500 points total
___________________
When the buttons on page one are clicked, the total number on page two will change.
Even hypothetically, what would I need to do to make this happen (unless there is a solution you know of)?
Do you intend the pages to be displayed at the same time (in different windows/tabs? <iframe>s?)? If yes, does it need to persist after the pages are closed? Is this per user, or will the total be global to everyone who visits the server?
wildmage92
12-06-2008, 03:03 AM
The pages will not be opened at the same time and I would like the 'total number' to stay they way it was modified until it is modified again, even if the pages close. In addition, the number would be the same for everyone who looks at it and if it is changed, then it would change for everyone.
The pages could both be in frames on the same page if need be... but I'd rather it not be that way.
I'm very pessimistic about the possibility of this...
It is possible, and quite easy. However, it will require some form of server-side scripting support on your server. Do you have this, and if so, what language(s) or setup do you have available? Ask your host if you're not sure.
wildmage92
12-06-2008, 03:17 AM
I don't believe I do. Can you explain? Where can I find this for a low monthly fee?
In a static Web hosting setup, the client sends a request to the server, which finds a file on the filesystem and passes it back to the client, where the file may contain some form of code to be executed by the client as well as static data. However, it is common practice to embed various hooks in the server to allow the webmaster to react to the request programmatically, weaving a response from the strands of data available — the request, files on the server, a database, or even other requests performed by the server — and thereby create dynamic pages that react to the input of the users. This is the principle behind building interactive Web 'applications' like this very forum.
If you're looking for reasonably-priced hosting, A Small Orange (http://www.asmallorange.com/) provide many features, including several that will suffice for this and probably many Web-based projects in the future.
wildmage92
12-06-2008, 03:40 AM
Much thanks! :cool:
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.