Asked By
anne rose
0 points
N/A
Posted on - 11/14/2011
I already have an account on Google analytics.
I do also have its JavaScript code and pasted in default. aspx on my asp. net application.
I also want to do this thing to my Silverlight application.
Will it work, if I’ll do the same procedure? Or do I need to do something else?
I do have problems in my Silverlight application procedures.
Hi,
The procedure you describe that will work but first you need to modify that procedure. That procedure is right but you need to add more option on it. As like
1. Web configuration (wed.config)
2. Silverlight application name (SilverlightAppName.XAP)
3. Silverlight application text page (SilverlightAppTestPage.HTML)
Add these options within your procedure. And also add its JavaScript code and compile them for test. All procedure must follow a street way to the end. Java program code will be containing condition like that. When your procedure code is ready then you can add java template into it. Then type your URL from a remote client.
I do have problems in my Silverlight application procedures.
That may work, but then it may pose problems since the code is totally not meant for the Silverlight application. It will be better if you just got the javascript code that is meant to work in the Silverlight application and use it instead of trying out the one that is meant to be used in the Google analytics.
The following is a procedure to help you call the javascript code in silverlight:
-
You will need to make a call to RegisterScriptableObject() in the constructor of your Silverlight application so that a managed object for scriptable access by JavaScript code is registered. .
-
You will also need to add the function which you want to be called in your Silverlight code and it must be prefixed with the [ScriptableMember] attribute.
-Clair Charles