.net remoting and object invocation
-
Hi all, I am a beginer in .net and i hav to implement a chat program [ web application, not standalone] and i have implemented public chat, but in private chat if a user send a mesage to another, i wanna pop up a window in the second user's computer [ like all other chat servers]. How can i invoke a remote object from server [ to pop up a window in client system from web server ]? please advice. Thanks to all. Ali
-
Hi all, I am a beginer in .net and i hav to implement a chat program [ web application, not standalone] and i have implemented public chat, but in private chat if a user send a mesage to another, i wanna pop up a window in the second user's computer [ like all other chat servers]. How can i invoke a remote object from server [ to pop up a window in client system from web server ]? please advice. Thanks to all. Ali
Server send messages to client?In C/S system there maybe some solutions use socket. But in web applications there is no way to achieve this. For a substitute,you can use ajax to post some request periodly for check is there are new messages.If ajax request find new message,then get it and show it in a pop up window.:^)
▒〓〓〓〓〓▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓▒▒▒▒▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓〓〓〓〓▒▒〓▒〓▒▒
-
Server send messages to client?In C/S system there maybe some solutions use socket. But in web applications there is no way to achieve this. For a substitute,you can use ajax to post some request periodly for check is there are new messages.If ajax request find new message,then get it and show it in a pop up window.:^)
▒〓〓〓〓〓▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓▒▒▒▒▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓〓〓〓〓▒▒〓▒〓▒▒
yes thats what i want, but i cannot inject a javasript to the page to opo up a window if there is a message, i get an exception [which is shown in an alert window ] and i searched for the solution and what i got is to avoid this response.write part from ajax related part. any way to pop up a window? it can be easly done if there is no ajax code.
-
yes thats what i want, but i cannot inject a javasript to the page to opo up a window if there is a message, i get an exception [which is shown in an alert window ] and i searched for the solution and what i got is to avoid this response.write part from ajax related part. any way to pop up a window? it can be easly done if there is no ajax code.
Use window.setInterval to watch if there is a new message.I mean the ajax is you use a Msxml2.XmlHTTP ActiveX object to post some request and get response from it.All of these operations are in javascript.;P;P;P Don't use Ajax.dll or other dll please:-D!
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)