Advanced Forum Search Results
-
Thanks again for the reply.
The reason I cannot take this approach with Silverlight using services is because of how our UI is constructed using Silverlight 1.0. We created various controls that have search fields and panels that affect data and the Silverlight component reacts to changes thrown by postbacks created by the Update Panels on ...
-
Sorry for the confusion. What I mean by Silverlight is the C# managed-code portion of Silverlight 2.0. Here is an article where you can call Managed Code inside a compiled Silverlight DLL:
http://www.dieajax.com/2007/09/06/10-minute-tutorial-silverlight-using-javascript-to-call-scriptable-managed-code-c/
Here is what I a trying to ...
-
Hi Michael,
Unfortunately, that is not what I am looking for. I know you can access the DOM from Silverlight. I am looking at how you can interact with the Silverlight from the DOM through Javascript (in which you use the [Scriptable] tag) and trying to see if you can interact with the Silverlight from code-behind.
-
I can get code-behind to write to an Update Panel to call JavaScript functions. I can get JavaScript functions to call the [Scriptable] Managed Code in a Silverlight 2.0 component. Now the question I have is can I get code-behind to call the Managed Code in a Silverlight 2.0 object without having to go through the JavaScript middle-man?
-
To be more precise, the UpdatePanels contain search fields and lists. So when a user creates a search, the list is populated with the results and the map is updated with the graphical location of the list. From then on, the server is polled every 30 seconds so that you have a pretty good real time location system ...
-
Ah ok. Now I see where our problem lies.
What I have going on is a real-time location system. Silverlight acts as a mapping component. What happens is that the page polls the server every 30 seconds to update the data in the update panels. Once the update panels are updated and the event is fired, the javascript takes the ...
-
Thanks. I think might have misunderstood what you were saying - you are saying it exactly right.
The trouble with polling a web service is that there is a chance for desyncronization, which is a big issue for this project.
-
Actually in Silverlight 1.0, I'm not polling the server in Javascript. I just attached an event listener once the request handler is completed for my Silverlight to react to the changes that the Update Panel's postback made.
But in this case, I may need to switch from Javascript to Socket Connections between the ASP.NET web page to ...
-
I have thought about using web services, however that implies that the Silverlight component talk to the server rather than respond to an event from the server. I guess I would need some sort of handler in the Silverlight that listens for an updated event.
Hm... I guess this is where it may be a better idea to use the socket connections in ...
-
Need some help with Silverlight 1.1 responding to a postback event.
In my current application, I have a Silverlight component that responds to data that comes from the back end. The system refreshes every thirty seconds through AJAX and several update panels are affected including a JavaScript function that has new data for the ...