The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

2 posters

Go down

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

Post by Amatio 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
Amatio
New Member

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

Back to top Go down

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

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

heh.. I'm so impatient.. anyone ? Smile
Amatio
Amatio
New Member

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

Back to top Go down

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

Post by Harperboy326 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
Harperboy326
Forumember

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

http://www.ThatTechKid.com

Back to top Go down

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

Post by Amatio 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
Amatio
New Member

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

Back to top Go down

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

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

Anyone got answer of what Im asking for?
Amatio
Amatio
New Member

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

Back to top Go down

Back to top

- Similar topics

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