The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Javascript group request [request as funcion / request as asking]

View previous topic View next topic Go down

Javascript group request [request as funcion / request as asking]

Post by Amatio on November 27th 2010, 10:06 pm

Hi folks..

I'm advanced familiar with forumotion, but only now, when arise this question I made my self to register here. Smile

So basic question is.. How to make request for In what group viewer is..?
What I want to do is..
To automatically let computer acknowledge if people is in certain group to let them see specific html page CONTENT.
What is in my mind..

in JavaScript is basic code like
Code:
var group = 3;
if (group=2)
{
document.write("You are in" + "group.<br>This information is only for you, and no one else cant see this, except those of your group.");
}
else if (group=3)
{
document.write("You/'re not in specified group.");
}
else
{
document.write("Cant check your group. Are you sure you did log in?")
}



And now to clarify.. I need that number var group = 3; is automatically checked and JavaScript afterward with function If check to let them see one or another HTML page content. It's like unregistered users cant access their profile, just because they do not have one, and thats why they see nothing but registered users do see a profile.

Advanced help would be really nice. Smile

Regards and already thank you.



Last edited by Amatio on November 27th 2010, 10:59 pm; edited 2 times in total

Amatio
New Member

Male Posts : 13
Reputation : 0
Language : Latvian
Location : Riga

Back to top Go down

Re: Javascript group request [request as funcion / request as asking]

Post by Amatio on November 27th 2010, 10:54 pm

heh.. I'm so impatient.. anyone ? Smile

Amatio
New Member

Male Posts : 13
Reputation : 0
Language : Latvian
Location : Riga

Back to top Go down

Re: Javascript group request [request as funcion / request as asking]

Post by Harperboy326 on November 27th 2010, 10:56 pm

Im not trying to moderate you, but you're not supposed to post messages back to back Smile

Harperboy326
Forumember

Male Posts : 753
Reputation : 239
Language : English
Location : On the support forum

http://www.ThatTechKid.com

Back to top Go down

Re: Javascript group request [request as funcion / request as asking]

Post by Amatio on November 27th 2010, 11:04 pm

@Harperboy326 wrote:Im not trying to moderate you, but you're not supposed to post messages back to back Smile


Healthy criticism always is accepted. Yes, I know, but as I mentioned above, Im impatient.

Amatio
New Member

Male Posts : 13
Reputation : 0
Language : Latvian
Location : Riga

Back to top Go down

Re: Javascript group request [request as funcion / request as asking]

Post by Amatio on November 28th 2010, 2:42 pm

Anyone got answer of what Im asking for?

Amatio
New Member

Male Posts : 13
Reputation : 0
Language : Latvian
Location : Riga

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum