1
Vote

JavaScript error when flashvar contains "."

description

Trying to use a flashvar that contains a period character results in a javascript error.
 
<pre>videoPlayer.FlashVars.Add(new FlashVar("madlytics.callbacklistener", "FlashCallback.aspx"));</pre>  
Results in
 
<pre>missing : after property id</pre>  
Javscript generated that errors
<pre>var ctl00_ContentPlaceHolder1_videoPlayer_flashvars = {file:'/Site_Files/multimedia/sample.flv',image:'',stretching:'uniform',plugins:'/Flash/mediaplayer/madlytics-1.swf',madlytics.callbacktype:'url',madlytics.callbacklistener:'FlashCallback.aspx'};</pre>

comments