CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> voting divide the page into two, voting and having the page divided into two
firedrop84
post Aug 30 2009, 07:40 PM
Post #1


Active Member
*

Group: Members
Posts: 144
Joined: 16-June 03
Member No.: 500

Australia




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.
Go to the top of the page
 
+Quote Post
amir
post Sep 2 2009, 01:51 AM
Post #2


SuperNova III Member
Group Icon

Group: Support Team
Posts: 2,141
Joined: 2-November 02
From: Toronto
Member No.: 302

Canada




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.
Go to the top of the page
 
+Quote Post
firedrop84
post Sep 3 2009, 04:45 PM
Post #3


Active Member
*

Group: Members
Posts: 144
Joined: 16-June 03
Member No.: 500

Australia




thanks for your reply amir.

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

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th May 2013 - 07:20 PM