Help - Search - Members - Calendar
Full Version: voting divide the page into two
CyberiaPC.com Community > Technical Zone > Web Development
firedrop84
Hi,

I am currently trying to develop a prototype which I need to divide the page into two seperate page. When the user interacts with the left sidfe of the page nothing happens to the right side and the same for the right side. Any idea what will be the best and easier way to do that. I thought of frames but then I said let me check if there is something else around.

the second question I got is if anyone have seen around a php script where users can vote on a topic but each user are assigned to a group where each grou phas different weight of voting. For example, if Experts in IT voted they get double marks than normal guyz and so on.

this is all need to be in php.
amir
it depends on what you mean by "interact". if it means clicking on buttons & posting the page back to the server then just put a few buttons (<button> not <input type=submit>) & hook them to some javascript to submit the page (server doesn't know which button was pushed so the same javascript will set some Hidden input value (<input type=hidden>) indicating the triggering button ).

the whole page is posted back but only one piece of code runs because only one button is clicked ! so the rest of the page is refreshed with the same original stuff. of course it depends on what you mean by "interact" (again)! if something in the db is updated in the mean time, then it will show up on the page & ur screwed! (use the following then)

also AJAX may be what you need. i don't do PHP often so i don't know a PHP AJAX framework. there are a ton of them out there for PHP. just check wikipedia.
firedrop84
thanks for your reply amir.

I have thought of some ideas. I need to test them and see how I will go.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.