Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
Just started to look on how to develop on windows phone and i found about PhoneGap and Visual WebGui and i thought about the next ideea: if i start a new silverlight for windows phone application in visual studio and i create a web browser, like i saw in PhoneGap, and to use javascript and html5 for the application. The problem is that i want to use Sockets from C# (since javascript only has websockets... ), i know i can use java script code in C# to manipulat a html5 page but is it possible if the user clicks a button to use the Socket from C# to send a message to the server(like using javascript to call a method written in C#)? or using ajax? or do you have other ideea that can work?

Thanks
Posted
Updated 15-Mar-12 10:43am
v3
Comments
Steve Maier 15-Mar-12 17:00pm    
So do you want to code in PhoneGap (javascript and html) or in C#? I believe there is a webbrowser control for the Silverlight coding in C#. It is simple enough to have a silverlight button to send the message. Not sure why you would want a webpage to do it.
Gabriel Sas 15-Mar-12 17:13pm    
i can use either phonegap or webbrowser control, but in a html page if i click a button i can use a javascript code to execute something, but i cannot use a socket in javascript since javascript only has websockets witch is something different, but i can use sockets in C#, and when i click a button in the web page to be able to use the sockets in C#. hope i made my self clear.
the button is just an example of what the functionality should be, we want some nice design in our application and since my friend knows about html5, javascript,ajax and php and i know about C# servers it would be much easier

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900