pmntdaylt
01-16-2003, 01:33 AM
hey all.. i'm pretty new at asp and i hope this question makes sense..
i'm trying to make a message-board type application with javascript and asp.. what i would like is to have an object of type 'MsgBoard' that has stores an array of messages.. very simple. each time you display the message board page, you can post a new message. it also displays all messages that have been posted,
what i would like is to have one single instance of this object, that is available to anyone that connects to the web page. therefore when anyone posts, everyone can see the message (as the function to read the messages will be accessing the same instance of the messaging board object)
i have no idea how to go about doing this. i've tried things like Application("messageboard") = new MsgBoard(), where my mb object is obviously called MsgBoard.. no such luck. this is my first day with asp/js (i do know java, c/c++ and so on, so i'm not a new programmer thankfully..) so please be gentle if i am making no sense..
regards
mike
i'm trying to make a message-board type application with javascript and asp.. what i would like is to have an object of type 'MsgBoard' that has stores an array of messages.. very simple. each time you display the message board page, you can post a new message. it also displays all messages that have been posted,
what i would like is to have one single instance of this object, that is available to anyone that connects to the web page. therefore when anyone posts, everyone can see the message (as the function to read the messages will be accessing the same instance of the messaging board object)
i have no idea how to go about doing this. i've tried things like Application("messageboard") = new MsgBoard(), where my mb object is obviously called MsgBoard.. no such luck. this is my first day with asp/js (i do know java, c/c++ and so on, so i'm not a new programmer thankfully..) so please be gentle if i am making no sense..
regards
mike