Jump to content
Sign in to follow this  
SinnerSmile

Sharing variables between users?

Recommended Posts

Hello, gentlemen.Can you give me a quick tip about how can i achieve some server side things.Truly i just don't know what i need to learn.What i need, is to be able to send value of some JS variable of user1 to the same JS variable of user2. Value need to be send from user1 if user1's value changed, and user2's function must start as soon as he receives this value.How can i achieve this value transferring between users of my page.Am I moving in right direction with learning ASP.NET Web Pages, or i totally misunderstood their purpose?

Share this post


Link to post
Share on other sites

You'll need to use a database or something else to store the values that both users would have access to. One user wouldn't have access to the other user's session, so you can't store it in the session. The second user would periodically need to check for updates from the server via ajax, and when it gets an update then you can respond to it.

  • Like 1

Share this post


Link to post
Share on other sites

That sounds like exactly what I need.Is it mean, that i need to learn right now any server side scripting, like ASP.NET+ ajax?And what about database's? Is it part of server-side scripting tutorials, or there is separated database technology (or whatever)?

Share this post


Link to post
Share on other sites

Databases are separate from programming in general. Databases use a different language to interact with them, namely SQL. You'll need to learn enough SQL to be able to use the database. You should be able to find several tutorials about server-side languages and databases.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...