2013-01-27, 06:01
Ok... so here's what I'm thinking. I can get the plugin to work by doing this:
1 - Log in with internet explorer
2 - copy/paste:
into internet explorer. (after copy/paste I have to manually retype the "j a v a s c r i p t:" part at the beginning, as IE stipts it out when you copy/paste
3 - Close internet explorer
4 - Run plugin
Great. However the session still expires after time. So here is my idea...
1 - ActiveX IE component, pass the post data to the form. The username/password be read from an INI file in the plugin's directory, perhaps?
2 - Upon reply from sky.com(assume success) pass the javascript url to the ActicveX component
3 - Once Javascript has completed, load up the silverlight module
1 - Log in with internet explorer
2 - copy/paste:
Code:
javascript:(function(){ var mc=function(n,v){var d=new Date(); d.setTime(d.getTime()+400000000000); var e="; expires="+d.toGMTString(); document.cookie=n+"="+v+e+"; path=/";}; var cs = document.cookie.split (';'); for (var i=0;i<cs.length;i++){ var c=cs[i]; while (c.charAt(0)==' ') c=c.substring(1,c.length); var l=c.indexOf('='), n=c.substring(0,l), v=c.substring(l+1,c.length); mc(n,v);} })();
3 - Close internet explorer
4 - Run plugin
Great. However the session still expires after time. So here is my idea...
1 - ActiveX IE component, pass the post data to the form. The username/password be read from an INI file in the plugin's directory, perhaps?
2 - Upon reply from sky.com(assume success) pass the javascript url to the ActicveX component
3 - Once Javascript has completed, load up the silverlight module