Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finish moving important content over from the IronPython CodePlex site

/nostalgia -- old IronPython website
Remove dlr.js -- use the online version
  • Loading branch information...
commit d3d42ce6f597d2184386241835eb2c7b914eec88 1 parent f85ce28
@jschementi authored
View
25 css/master.css
@@ -11,6 +11,14 @@ h1,h2,h3,h4,h5,h6,p,ul,li {
margin: 0;
}
+object#silverlightDlrObject_DOMOnly {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 0;
+ height: 0;
+}
+
.clear {
clear: both;
position: relative;
@@ -19,16 +27,18 @@ h1,h2,h3,h4,h5,h6,p,ul,li {
display: block;
}
-a:link, a:visted {
+a, a:link, a:visited {
+ color: black;
text-decoration: underline;
}
a:hover {
+ color: black;
text-decoration: none;
}
/* colors */
-.dotnet {
+a.dotnet, .dotnet {
color: #1A61E5;
}
@@ -375,11 +385,11 @@ a.download_link:hover {
/* question-answer */
-.page ul.question-answer {
+.page .question-answer {
/*margin: 0 40px 30px;*/
font-family: georgia, serif;
margin: 0 auto 30px;
- width: 780px;
+ font-size: 18px;
}
ul.question-answer li {
list-style: none;
@@ -393,11 +403,14 @@ ul.question-answer li h3 {
font-weight: normal;
letter-spacing: 0px;
}
-ul.question-answer li p {
- margin-left: 240px;
+.question-answer p {
text-align: left;
font-size: 18px;
line-height: 140%;
+ margin: 0 60px;
+}
+ul.question-answer li p {
+ margin-left: 240px;
}
ul.question-answer li h4 {
letter-spacing: -1px;
View
118 python/announcements/index.html
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
+ <title>IronPython.net / Announcements</title>
+ <link rel="stylesheet" href="../../css/master.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/lang.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/sticky-footer.css" type="text/css" media="screen"
+ charset="utf-8" />
+</head>
+
+<body id="ironpython" class="sub page">
+
+ <div id="wrap">
+ <div id="main" class="clearfix">
+
+ <div id="nav">
+ <div>
+ <a href='..'>Overview</a><a href='../download'>Download</a><a href='../documentation'>Documentation</a><a href='.'>Support</a>
+ </div>
+ </div>
+
+ <div id="header">
+ <h1><a href="..">IronPython</a></h1>
+ <h2>Announcements</h2>
+ </div>
+
+ <ul class="question-answer">
+ <li>
+ <h3>October 27, 2009</h3>
+ <p class="space strip">
+ <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451">IronPython 2.6 Release Candidate 2</a>,
+ our latest <i>stable release</i> of IronPython 2.6, was released
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>October 22, 2009</h3>
+ <p class="space strip">
+ <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30416">IronPython 2.0.3</a>,
+ our latest <i>stable release</i> of IronPython 2.0, was released.<br />
+ <a href="http://ironpython.codeplex.com/wikipage?title=List%20of%20Standard%20Library%20components%20not%20included%20in%20the%20MSI&amp;referringTitle=Home">List of Standard Library components not included in the MSI</a><br />
+ <a href="http://ironpython.codeplex.com/wikipage?title=Samples&amp;referringTitle=Home">Samples</a> -- In addition to the tutorial that is in the download, there are several available samples for IronPython 2.0<br />
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>October 21, 2009</h3>
+ <p class="space strip">
+ <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125">IronPython 2.6 for .NET 4.0 Beta 2</a>,
+ an IronPython 2.6 offshoot designed to run under the <a href="http://dlr.codeplex.com">DLR</a> distributed with .NET 4.0 Beta 2, was released.
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>August 2009</h3>
+ <p class="space strip">
+ Want to see IronPython support in a future version of Visual Studio?
+ Please submit your valuable <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=475830">feedback</a> here
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>March 26, 2009</h3>
+ <p class="space strip">
+ We gave several talks at <a href="http://us.pycon.org/2009/about/">PyCon 2009</a>:<br />
+ <a href="http://blip.tv/file/1949619">Dino Viehland's talk on the internals of IronPython</a><br />
+ <a href="http://blip.tv/file/1947387">Jim Hugunin's talk on future directions of IronPython</a>
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>March 2009</h3>
+ <p class="space strip">
+ <a href="http://www.manning.com/foord/">IronPython In Action</a>,
+ a book about utilizing IronPython, was released. If you're interested in learning
+ IronPython, check out the new book, <i>IronPython in Action</i>, by Michael Foord
+ and Christian Muirhead. Members of the IronPython community can get 35% off by
+ ordering from the Manning website and using the coupon code <i>codeplex35</i>.
+ </p>
+ </li>
+ </ul>
+ <ul class="question-answer">
+ <li>
+ <h3>September 23, 2008</h3>
+ <p class="space strip">
+ An update to the
+ <a href="http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=17613">ASP.NET Dynamic Languages Add-on</a> was released
+ </p>
+ </li>
+ </ul>
+
+ </div>
+
+ </div>
+
+ <div id="footer">
+ <ul>
+ <li>&copy; <a href='http://microsoft.com'>Microsoft Corporation</a></li>
+ <li id="footer-nav">
+ <a href='..'>Overview</a>|<a href='../download'>Download</a>|<a href='../documentation'>Documentation</a>|<a href='.'>Support</a>
+ </li>
+ <li class="clear">&nbsp;</li>
+ </ul>
+ </div>
+
+</body>
+</html>
View
21 python/documentation/index.html
@@ -62,7 +62,26 @@
</li>
</ul>
-
+ <ul class='question-answer'>
+ <li>
+ <h3>Source Code</h3>
+ <p>
+ When all else fails, you can always look at the <a href="http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx">IronPython source code</a>.
+ </p>
+ </li>
+ </ul>
+
+ <ul class='question-answer'>
+ <li>
+ <h3>Implementation</h3>
+ <p>
+ <a href="http://ironpython.codeplex.com/wikipage?title=Regression%20Tests&referringTitle=More%20Information">Regression Tests</a> - List of regression tests currently passing<br />
+ <a href="http://ironpython.codeplex.com/wikipage?title=Value%20Types&referringTitle=More%20Information">Value Types</a> - How value types work in IronPython<br />
+ <a href="http://ironpython.codeplex.com/wikipage?title=Exception%20Model&referringTitle=More%20Information">Exception Model</a> - the IronPython Exception Model<br />
+ </p>
+ </li>
+ </ul>
+
</div>
</div>
View
18 python/download/index.html
@@ -41,6 +41,24 @@
If you're not sure which version to use, use the
<a target='_blank' href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451">latest 2.6 release</a>.
</p>
+ <p class="space">
+ <a href="http://ironpython.codeplex.com/wikipage?title=SupportedReleaseList">All major IronPython releases &raquo;</a>
+ </p>
+ </li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Source code</h3>
+ <p>
+ <a class='download' target='_blank' href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451#DownloadId=89549">&raquo;Download IronPython 2.6 RC2 Source Code</a>
+ </p>
+ <p class="space">
+ <a href="http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx#DownloadLatest">Download latest (zip)</a> |
+ <a href="http://ironpython.codeplex.com/SourceControl/BrowseLatest">Browse Online</a> |
+ <a href="http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx">Recent Check-ins</a>
+ </p>
+ <p class='space small'><a href="http://ironpython.codeplex.com/SourceControl/ListDownloadableCommits.aspx">&raquo; Instructions for accessing with SVN or TFS</a></p>
</li>
</ul>
View
47 python/index.html
@@ -13,11 +13,7 @@
<link rel="stylesheet" href="../css/sticky-footer.css" type="text/css" media="screen"
charset="utf-8" />
- <script type="text/javascript">
- window.DLR = {}
- DLR.path = "../silverlight"
- </script>
- <script type="text/javascript" src="../silverlight/dlr.js"></script>
+ <script type="text/javascript" src="http://ironruby.com/release/dlr.js"></script>
</head>
<body id="ironpython" class='home page'>
@@ -41,7 +37,7 @@
<div id="what-is">
<p>
- IronPython is an open-source implementation of the Python
+ IronPython is an <a target='_blank' href="http://www.opensource.org/licenses/ms-pl.html">open-source</a> implementation of the Python
programming language which is tightly integrated with the
.NET Framework. IronPython can use the .NET Framework and
Python libraries, and other .NET languages can use
@@ -54,12 +50,12 @@
<li id='download'>
<h3><a href='http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451#DownloadId=89547' target='_blank'>Download IronPython 2.6</a></h3>
<p>
- <a href='http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451' target='_blank'>2.6 RC2 released 10/27/2009<br />
+ <a href='download' target='_blank'>2.6 RC2 released 10/27/2009<br />
<a href='http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451' target='_blank'>release notes</a> | <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451#DownloadId=89549" target='_blank'>source</a>
</p>
</li>
<li id="tryruby">
- <h3><a href='http://ironpython.codeplex.com/wikipage?title=SilverlightInteractiveSession&referringTitle=Home' target="_blank">Try Python <span>in the <u>browser</u></span></a></h3>
+ <h3><a href='try' target="_blank">Try Python <span>in the <u>browser</u></span></a></h3>
<p>
Quickly run Python code in your
browser, without installing IronPython.
@@ -92,7 +88,7 @@
</ul>
</div>
- <script type="text/ruby" src="../silverlight/animate.rb" defer='false'></script>
+ <script type="text/ruby" src="../silverlight/animate.rb"></script>
<ul class="question-answer">
<li>
@@ -106,11 +102,40 @@
</p>
<br />
<p>
- And why target .NET you ask? The CLR is a great platform for creating
+ The CLR is a great platform for creating
programming languages, and the DLR makes it all the more better for
dynamic languages. Also, the .NET framework (base class library,
presentation foundation, Silverlight, etc) give an amazing amount of
- functionality and power to developers.</p>
+ functionality and power to developers.
+ </p>
+ </li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Announcements</h3>
+ <p class="space strip">
+ <b>October 27, 2009</b> -
+ <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34451">IronPython 2.6 Release Candidate 2</a>,
+ our latest <i>stable release</i> of IronPython 2.6, was released
+ </p>
+ <p class="space strip">
+ <b>October 21, 2009</b> -
+ <a href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125">IronPython 2.6 for .NET 4.0 Beta 2</a>,
+ an IronPython 2.6 offshoot designed to run under the <a href="http://dlr.codeplex.com">DLR</a> distributed with .NET 4.0 Beta 2, was released.
+ </p>
+ <p class="space strip">
+ <b>August 2009</b> - want to see IronPython support in a future version of Visual Studio?
+ Please submit your valuable <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=475830">feedback</a> here
+ </p>
+ <p class="space strip">
+ <b>March 26, 2009</b> - we gave several talks at <a href="http://us.pycon.org/2009/about/">PyCon 2009</a>:<br />
+ <a href="http://blip.tv/file/1949619">Dino Viehland's talk on the internals of IronPython</a><br />
+ <a href="http://blip.tv/file/1947387">Jim Hugunin's talk on future directions of IronPython</a>
+ </p>
+ <p class="space">
+ <a href="announcements">All IronPython Announcements &raquo;</a>
+ </p>
</li>
</ul>
</div>
View
115 python/nostalgia/index.html
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
+ <title>IronPython.net / Nostalgia</title>
+ <link rel="stylesheet" href="../../css/master.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/lang.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/sticky-footer.css" type="text/css" media="screen"
+ charset="utf-8" />
+</head>
+
+<body id="ironpython" class="sub page">
+
+ <div id="wrap">
+ <div id="main" class="clearfix">
+
+ <div id="nav">
+ <div>
+ <a href='..'>Overview</a><a href='../download'>Download</a><a href='../documentation'>Documentation</a><a href='.'>Support</a>
+ </div>
+ </div>
+
+ <div id="header">
+ <h1><a href="..">IronPython</a></h1>
+ <h2>Original IronPython website</h2>
+ </div>
+
+ <p style="margin-bottom: 30px">
+ IronPython is a new <a href="http://python.org/">Python</a> implementation targeting the <a href="http://msdn.microsoft.com/netframework/">.NET</a> and <a href="http://www.go-mono.com/">Mono</a> platforms. It is...
+ </p>
+ <ul style="text-align: left; margin: 0 60px; padding: 0 0 30px; list-style: none;">
+ <li style="margin-bottom: 10px"><b>Fast</b> - IronPython-0.6 is up to 1.7x faster than Python-2.3 on the standard pystone benchmark. An early performance report is are contained in <a href="http://www.python.org/pycon/dc2004/papers/9">this paper for PyCon 2004</a>.</li>
+ <li style="margin-bottom: 10px"><b>Integrated with the Common Language Runtime</b> - IronPython code can easily use CLR libraries and Python classes can extend CLR classes.</li>
+ <li style="margin-bottom: 10px"><b>Fully dynamic</b> - IronPython supports an interactive interpreter and transparent on-the-fly compilation of source files just like standard Python.</li>
+ <li style="margin-bottom: 10px"><b>Optionally static</b> - IronPython also supports static compilation of Python code to produce static executables (.exe's) that can be run directly or static libraries (.dll's) that can be called from other CLR languages including C#, VB, managed C++ and many more. <i>Note: static compilation is only partially implemented in the 0.6 public release. This will need further development before being useful.</i></li>
+ <li style="margin-bottom: 10px"><b>Managed and verifiable</b> - IronPython generates verifiable assemblies with no dependencies on native libraries that can run in environments which require verifiable managed code.</li>
+ <li style="margin-bottom: 10px"><b>Not finished</b> - IronPython is currently at a pre-alpha stage suitable for experimentation but not for serious development work. The latest public release can be downloaded below.</li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Public Release</h3>
+ <p class="">
+ IronPython-0.6 is now available as Open Source Software under the <a href="http://www.eclipse.org/legal/cpl-v10.html">Common Public License version 1.0</a>. A single zip file containing both the source code and the binary executables can be downloaded below.
+ </p>
+ <p class="space">
+ <a href="http://ironpython.com/IronPython-0.6.zip">IronPython-0.6.zip</a> released on July 28, 2004
+ </p>
+ </li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Public Mailing List</h3>
+ <p>
+ After many requests there is now a mailing list to discuss IronPython. Please use this list to share your experiences, bug reports, suggestions, or questions. <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">Click here for archives and/or to join the list</a>.
+ </p>
+ </li>
+ </ul>
+
+
+ <ul class="question-answer">
+ <li>
+ <h3>Release Announcement from July 28, 2004</h3>
+ <p>
+ It was a little less than a year ago that I first started investigating the Common Language Runtime (CLR). My plan was to do a little work and then write a short pithy article called, "Why .NET is a terrible platform for dynamic languages". My plans changed when I found the CLR to be an excellent target for the highly dynamic Python language. Since then I've spent much of my spare time working on the development of IronPython.
+ </p>
+ <p class='space'>
+ The more time that I spent with the CLR, the more excited I became about its potential. At the same time, I was becoming more frustrated with the slow pace of progress that I was able to make working on this project in my spare time. After exploring many alternatives, I think that I've found the ideal way to continue working to realize the amazing potential of the vision of the CLR. I've decided to join the CLR team at Microsoft beginning on August 2.
+ </p>
+ <p class='space'>
+ At Microsoft I plan to continue the work that I've begun with IronPython to bring the power and simplicity of dynamic/scripting languages to the CLR. My work with Python should continue as a working example of a high-performance production quality implementation of a dynamic language for the CLR. I will also reach out to other languages to help overcome any hurdles that are preventing them from targeting the CLR effectively. I welcome any and all feedback about how to best accomplish this. You can reach me at jim@ironpython.com .
+ </p>
+ </li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Past News and Presentations</h3>
+ <p>
+ <b>July 28, 2004</b> - <a href="http://conferences.oreillynet.com/presentations/os2004/hugunin_jim_up.ppt">IronPython: A fast Python implementation for .NET and Mono</a>, by <a href="http://hugunin.net/">Jim Hugunin</a> at <a href="http://conferences.oreilly.com/oscon/">O'Reilly OsCon</a> in Portland, OR
+ </p>
+ <p class="space">
+ <b>March 24, 2004</b> - <a href="http://www.python.org/pycon/dc2004/papers/9">IronPython: A fresh look at Python on .NET</a> presented by <a href="http://hugunin.net/">Jim Hugunin</a> at <a href="http://pycon.org/dc2004/">PyCon 2004</a> in Washington, DC
+ </p>
+ <p class="space">
+ <b>February 27, 2004</b> - <a href="http://www.infoworld.com/article/04/02/27/09FEmsnetdynamic_1.html">Does .Net have a dynamic-language deficiency?</a> by Jon Udell in InfoWorld
+ </p>
+ <p class="space">
+ <b>February 1, 2004</b> - <a href="http://www.sdtimes.com/cols/winwatch_095.htm">Ignoring the Scripts</a> by Larry O'Brien in SDTimes
+ </p>
+ </li>
+ </ul>
+
+ </div>
+
+ </div>
+
+ <div id="footer">
+ <ul>
+ <li>&copy; <a href='http://microsoft.com'>Microsoft Corporation</a></li>
+ <li id="footer-nav">
+ <a href='..'>Overview</a>|<a href='../download'>Download</a>|<a href='../documentation'>Documentation</a>|<a href='.'>Support</a>
+ </li>
+ <li class="clear">&nbsp;</li>
+ </ul>
+ </div>
+
+</body>
+</html>
View
62 python/support/articles.html
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
+ <title>IronPython.net / Support / Articles</title>
+ <link rel="stylesheet" href="../../css/master.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/lang.css" type="text/css" media="screen"
+ charset="utf-8" />
+ <link rel="stylesheet" href="../../css/sticky-footer.css" type="text/css" media="screen"
+ charset="utf-8" />
+</head>
+
+<body id="ironpython" class="sub page">
+
+ <div id="wrap">
+ <div id="main" class="clearfix">
+
+ <div id="nav">
+ <div>
+ <a href='..'>Overview</a><a href='../download'>Download</a><a href='../documentation'>Documentation</a><a href='.' class='active'>Support</a>
+ </div>
+ </div>
+
+ <div id="header">
+ <h1><a href="..">IronPython</a></h1>
+ <h2>Articles and Blog posts</h2>
+ </div>
+
+ <div class='question-answer'>
+ <p>
+ <a href="http://msdn.microsoft.com/en-us/magazine/cc300810.aspx">CLR Inside Out - IronPython - Jimmy Schementi</a><br />
+ <a href="http://msdn.microsoft.com/en-us/magazine/cc163344.aspx">CLR Inside Out - IronPython and the Dynamic Language Runtime - Bill Chiles</a><br />
+ <a href="http://msdn.microsoft.com/en-us/magazine/cc163284.aspx">CLR Inside Out - IronPython and Silverlight</a><br />
+ <a href="http://weblog.infoworld.com/udell/2006/08/30.html#a1515">The Screening Room (Jon Udel's screencast on InfoWorld)</a><br />
+ <a href="http://www.devsource.com/article2/0,1895,1989490,00.asp">A First Look at IronPython: Where Python Meets .NET (DevSource)</a><br />
+ <a href="http://blogs.msdn.com/aaronmar/archive/2006/02/16/533273.aspx">IronPython and VS Integration</a><br />
+ <a href="http://www.voidspace.org.uk/ironpython/winforms/index.shtml">IronPython and WinForms - A Tutorial Series</a><br />
+ <a href="http://www.voidspace.org.uk/ironpython/index.shtml">The Voidspace IronPython Pages</a><br />
+ <a href="http://www.voidspace.org.uk/ironpython/planet/">Planet IronPython Blog</a><br />
+ </p>
+ </div>
+
+ </div>
+
+ </div>
+
+ <div id="footer">
+ <ul>
+ <li>&copy; <a href='http://microsoft.com'>Microsoft Corporation</a></li>
+ <li id="footer-nav">
+ <a href='..'>Overview</a>|<a href='../download'>Download</a>|<a href='../documentation'>Documentation</a>|<a href='.'>Support</a>
+ </li>
+ <li class="clear">&nbsp;</li>
+ </ul>
+ </div>
+
+</body>
+</html>
View
20 python/support/index.html
@@ -27,7 +27,7 @@
<div id="header">
<h1><a href="..">IronPython</a></h1>
- <h2>Get help from IronPython experts and other users</h2>
+ <h2>Get help from IronPython the community</h2>
</div>
<ul class="question-answer">
@@ -71,6 +71,24 @@
</li>
</ul>
+ <ul class="question-answer">
+ <li>
+ <h3>Project Info</h3>
+ <p>
+ <a href="http://ironpython.codeplex.com/wikipage?title=2.6%20Release%20Plan">2.6 Release Plan</a><br />
+ </p>
+ </li>
+ </ul>
+
+ <ul class="question-answer">
+ <li>
+ <h3>Articles and Blogs</h3>
+ <p>
+ <a href="articles.html">All notable articles and blog-posts about IronPython</a>
+ </p>
+ </li>
+ </ul>
+
</div>
</div>
View
11 silverlight/animate.rb
@@ -1,7 +1,10 @@
-#include Microsoft::Scripting::Silverlight
-#repl = Repl.show
-#$stdout = repl.OutputBuffer
-#$stderr = repl.OutputBuffer
+include Microsoft::Scripting::Silverlight
+
+if document.query_string.contains_key 'console'
+ repl = Repl.show
+ $stdout = repl.OutputBuffer
+ $stderr = repl.OutputBuffer
+end
codebox = document.send('code-snippet').children.first
codebox.mouseover do |s, e|
View
1,112 silverlight/dlr.js
@@ -1,1112 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-// Start of C:/dev/ironruby/Merlin/Main/Hosts/SilverLight/Samples1/../Scripts/Silverlight.js
-////////////////////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////////////////
-//
-// Silverlight.js version 2.0.40814.0
-//
-// This file is provided by Microsoft as a helper file for websites that
-// incorporate Silverlight Objects. This file is provided under the Microsoft
-// Public License available at
-// http://code.msdn.microsoft.com/silverlightjs/Project/License.aspx.
-// You may not use or distribute this file or the code in this file except as
-// expressly permitted under that license.
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-//
-///////////////////////////////////////////////////////////////////////////////
-
-if (!window.Silverlight)
-{
- window.Silverlight = { };
-}
-
-//////////////////////////////////////////////////////////////////
-//
-// _silverlightCount:
-//
-// Counter of globalized event handlers
-//
-//////////////////////////////////////////////////////////////////
-Silverlight._silverlightCount = 0;
-
-//////////////////////////////////////////////////////////////////
-//
-// __onSilverlightInstalledCalled:
-//
-// Prevents onSilverlightInstalled from being called multiple
-// times
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.__onSilverlightInstalledCalled = false;
-
-//////////////////////////////////////////////////////////////////
-//
-// fwlinkRoot:
-//
-// Prefix for fwlink URL's
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.fwlinkRoot='http://go2.microsoft.com/fwlink/?LinkID=';
-
-//////////////////////////////////////////////////////////////////
-//
-// __installationEventFired:
-//
-// Ensures that only one Installation State event is fired.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.__installationEventFired = false;
-
-//////////////////////////////////////////////////////////////////
-//
-// onGetSilverlight:
-//
-// Called by Silverlight.GetSilverlight to notify the page that a user
-// has requested the Silverlight installer
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onGetSilverlight = null;
-
-//////////////////////////////////////////////////////////////////
-//
-// onSilverlightInstalled:
-//
-// Called by Silverlight.WaitForInstallCompletion when the page detects
-// that Silverlight has been installed. The event handler is not called
-// in upgrade scenarios.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onSilverlightInstalled = function () {window.location.reload(false);};
-
-//////////////////////////////////////////////////////////////////
-//
-// isInstalled:
-//
-// Checks to see if the correct version is installed
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.isInstalled = function(version)
-{
- if (version == undefined)
- version = null;
-
- var isVersionSupported = false;
- var container = null;
-
- try
- {
- var control = null;
- var tryNS = false;
-
- if (window.ActiveXObject)
- {
- try
- {
- control = new ActiveXObject('AgControl.AgControl');
- if (version === null)
- {
- isVersionSupported = true;
- }
- else if (control.IsVersionSupported(version))
- {
- isVersionSupported = true;
- }
- control = null;
- }
- catch (e)
- {
- tryNS = true;
- }
- }
- else
- {
- tryNS = true;
- }
- if (tryNS)
- {
- var plugin = navigator.plugins["Silverlight Plug-In"];
- if (plugin)
- {
- if (version === null)
- {
- isVersionSupported = true;
- }
- else
- {
- var actualVer = plugin.description;
- if (actualVer === "1.0.30226.2")
- actualVer = "2.0.30226.2";
- var actualVerArray = actualVer.split(".");
- while (actualVerArray.length > 3)
- {
- actualVerArray.pop();
- }
- while (actualVerArray.length < 4)
- {
- actualVerArray.push(0);
- }
- var reqVerArray = version.split(".");
- while (reqVerArray.length > 4)
- {
- reqVerArray.pop();
- }
-
- var requiredVersionPart;
- var actualVersionPart;
- var index = 0;
-
-
- do
- {
- requiredVersionPart = parseInt(reqVerArray[index]);
- actualVersionPart = parseInt(actualVerArray[index]);
- index++;
- }
- while (index < reqVerArray.length && requiredVersionPart === actualVersionPart);
-
- if (requiredVersionPart <= actualVersionPart && !isNaN(requiredVersionPart))
- {
- isVersionSupported = true;
- }
- }
- }
- }
- }
- catch (e)
- {
- isVersionSupported = false;
- }
-
- return isVersionSupported;
-};
-//////////////////////////////////////////////////////////////////
-//
-// WaitForInstallCompletion:
-//
-// Occasionally checks for Silverlight installation status. If it
-// detects that Silverlight has been installed then it calls
-// Silverlight.onSilverlightInstalled();. This is only supported
-// if Silverlight was not previously installed on this computer.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.WaitForInstallCompletion = function()
-{
- if ( ! Silverlight.isBrowserRestartRequired && Silverlight.onSilverlightInstalled )
- {
- try
- {
- navigator.plugins.refresh();
- }
- catch(e)
- {
- }
- if (Silverlight.isInstalled(null) && !Silverlight.__onSilverlightInstalledCalled)
- {
- Silverlight.onSilverlightInstalled();
- Silverlight.__onSilverlightInstalledCalled = true;
- }
- else
- {
- setTimeout(Silverlight.WaitForInstallCompletion, 3000);
- }
- }
-};
-//////////////////////////////////////////////////////////////////
-//
-// __startup:
-//
-// Performs startup tasks.
-//////////////////////////////////////////////////////////////////
-Silverlight.__startup = function()
-{
- navigator.plugins.refresh();
- Silverlight.isBrowserRestartRequired = Silverlight.isInstalled(null);
- if (!Silverlight.isBrowserRestartRequired)
- {
- Silverlight.WaitForInstallCompletion();
- if (!Silverlight.__installationEventFired)
- {
- Silverlight.onInstallRequired();
- Silverlight.__installationEventFired = true;
- }
- }
- else if (window.navigator.mimeTypes)
- {
- var mimeSL2 = navigator.mimeTypes["application/x-silverlight-2"];
- var mimeSL2b2 = navigator.mimeTypes["application/x-silverlight-2-b2"];
- var mimeSL2b1 = navigator.mimeTypes["application/x-silverlight-2-b1"];
- var mimeHighestBeta = mimeSL2b1;
- if (mimeSL2b2)
- mimeHighestBeta = mimeSL2b2;
-
- if (!mimeSL2 && (mimeSL2b1 || mimeSL2b2))
- {
- if (!Silverlight.__installationEventFired)
- {
- Silverlight.onUpgradeRequired();
- Silverlight.__installationEventFired = true;
- }
- }
- else if (mimeSL2 && mimeHighestBeta)
- {
- if (mimeSL2.enabledPlugin &&
- mimeHighestBeta.enabledPlugin)
- {
- if (mimeSL2.enabledPlugin.description !=
- mimeHighestBeta.enabledPlugin.description)
- {
- if (!Silverlight.__installationEventFired)
- {
- Silverlight.onRestartRequired();
- Silverlight.__installationEventFired = true;
- }
- }
- }
- }
- }
- if (!Silverlight.disableAutoStartup)
- {
- if (window.removeEventListener)
- {
- window.removeEventListener('load', Silverlight.__startup, false);
- }
- else
- {
- window.detachEvent('onload', Silverlight.__startup);
- }
- }
-};
-
-///////////////////////////////////////////////////////////////////////////////
-//
-// This block wires up Silverlight.__startup to be executed once the page
-// loads. This is the desired behavior for most sites. If, however, a site
-// prefers to control the timing of the Silverlight.__startup call then it should
-// put the following block of javascript into the webpage before this file is
-// included:
-//
-// <script type="text/javascript">
-// if (!window.Silverlight)
-// {
-// window.Silverlight = {};
-// }
-// Silverlight.disableAutoStartup = true;
-// </script>
-//
-/////////////////////////////////////////////////////////////////////////////////
-
-if (!Silverlight.disableAutoStartup)
-{
- if (window.addEventListener)
- {
- window.addEventListener('load', Silverlight.__startup, false);
- }
- else
- {
- window.attachEvent('onload', Silverlight.__startup);
- }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// createObject:
-//
-// Inserts a Silverlight <object> tag or installation experience into the HTML
-// DOM based on the current installed state of Silverlight.
-//
-/////////////////////////////////////////////////////////////////////////////////
-
-Silverlight.createObject = function(source, parentElement, id, properties, events, initParams, userContext)
-{
- var slPluginHelper = new Object();
- var slProperties = properties;
- var slEvents = events;
-
- slPluginHelper.version = slProperties.version;
- slProperties.source = source;
- slPluginHelper.alt = slProperties.alt;
-
- //rename properties to their tag property names. For bacwards compatibility
- //with Silverlight.js version 1.0
- if ( initParams )
- slProperties.initParams = initParams;
- if ( slProperties.isWindowless && !slProperties.windowless)
- slProperties.windowless = slProperties.isWindowless;
- if ( slProperties.framerate && !slProperties.maxFramerate)
- slProperties.maxFramerate = slProperties.framerate;
- if ( id && !slProperties.id)
- slProperties.id = id;
-
- // remove elements which are not to be added to the instantiation tag
- delete slProperties.ignoreBrowserVer;
- delete slProperties.inplaceInstallPrompt;
- delete slProperties.version;
- delete slProperties.isWindowless;
- delete slProperties.framerate;
- delete slProperties.data;
- delete slProperties.src;
- delete slProperties.alt;
-
-
- // detect that the correct version of Silverlight is installed, else display install
-
- if (Silverlight.isInstalled(slPluginHelper.version))
- {
- //move unknown events to the slProperties array
- for (var name in slEvents)
- {
- if ( slEvents[name])
- {
- if ( name == "onLoad" && typeof slEvents[name] == "function" && slEvents[name].length != 1 )
- {
- var onLoadHandler = slEvents[name];
- slEvents[name]=function (sender){ return onLoadHandler(document.getElementById(id), userContext, sender)};
- }
- var handlerName = Silverlight.__getHandlerName(slEvents[name]);
- if ( handlerName != null )
- {
- slProperties[name] = handlerName;
- slEvents[name] = null;
- }
- else
- {
- throw "typeof events."+name+" must be 'function' or 'string'";
- }
- }
- }
- slPluginHTML = Silverlight.buildHTML(slProperties);
- }
- //The control could not be instantiated. Show the installation prompt
- else
- {
- slPluginHTML = Silverlight.buildPromptHTML(slPluginHelper);
- }
-
- // insert or return the HTML
- if(parentElement)
- {
- parentElement.innerHTML = slPluginHTML;
- }
- else
- {
- return slPluginHTML;
- }
-
-};
-
-///////////////////////////////////////////////////////////////////////////////
-//
-// buildHTML:
-//
-// create HTML that instantiates the control
-//
-///////////////////////////////////////////////////////////////////////////////
-Silverlight.buildHTML = function( slProperties)
-{
- var htmlBuilder = [];
-
- htmlBuilder.push('<object type=\"application/x-silverlight\" data="data:application/x-silverlight,"');
- if ( slProperties.id != null )
- {
- htmlBuilder.push(' id="' + Silverlight.HtmlAttributeEncode(slProperties.id) + '"');
- }
- if ( slProperties.width != null )
- {
- htmlBuilder.push(' width="' + slProperties.width+ '"');
- }
- if ( slProperties.height != null )
- {
- htmlBuilder.push(' height="' + slProperties.height + '"');
- }
- htmlBuilder.push(' >');
-
- delete slProperties.id;
- delete slProperties.width;
- delete slProperties.height;
-
- for (var name in slProperties)
- {
- if (slProperties[name])
- {
- htmlBuilder.push('<param name="'+Silverlight.HtmlAttributeEncode(name)+'" value="'+Silverlight.HtmlAttributeEncode(slProperties[name])+'" />');
- }
- }
- htmlBuilder.push('<\/object>');
- return htmlBuilder.join('');
-};
-
-
-
-//////////////////////////////////////////////////////////////////
-//
-// createObjectEx:
-//
-// takes a single parameter of all createObject
-// parameters enclosed in {}
-//
-//////////////////////////////////////////////////////////////////
-
-Silverlight.createObjectEx = function(params)
-{
- var parameters = params;
- var html = Silverlight.createObject(parameters.source, parameters.parentElement, parameters.id, parameters.properties, parameters.events, parameters.initParams, parameters.context);
- if (parameters.parentElement == null)
- {
- return html;
- }
-};
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// buildPromptHTML
-//
-// Builds the HTML to prompt the user to download and install Silverlight
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.buildPromptHTML = function(slPluginHelper)
-{
- var slPluginHTML = "";
- var urlRoot = Silverlight.fwlinkRoot;
- var version = slPluginHelper.version ;
- if ( slPluginHelper.alt )
- {
- slPluginHTML = slPluginHelper.alt;
- }
- else
- {
- if (! version)
- {
- version="";
- }
- slPluginHTML = "<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";
- slPluginHTML = slPluginHTML.replace('{1}', version);
- slPluginHTML = slPluginHTML.replace('{2}', urlRoot + '108181');
- }
-
- return slPluginHTML;
-};
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// getSilverlight:
-//
-// Navigates the browser to the appropriate Silverlight installer
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.getSilverlight = function(version)
-{
- if (Silverlight.onGetSilverlight )
- {
- Silverlight.onGetSilverlight();
- }
-
- var shortVer = "";
- var reqVerArray = String(version).split(".");
- if (reqVerArray.length > 1)
- {
- var majorNum = parseInt(reqVerArray[0] );
- if ( isNaN(majorNum) || majorNum < 2 )
- {
- shortVer = "1.0";
- }
- else
- {
- shortVer = reqVerArray[0]+'.'+reqVerArray[1];
- }
- }
-
- var verArg = "";
-
- if (shortVer.match(/^\d+\056\d+$/) )
- {
- verArg = "&v="+shortVer;
- }
-
- Silverlight.followFWLink("149156" + verArg);
-};
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// followFWLink:
-//
-// Navigates to a url based on fwlinkid
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.followFWLink = function(linkid)
-{
- top.location=Silverlight.fwlinkRoot+String(linkid);
-};
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// HtmlAttributeEncode:
-//
-// Encodes special characters in input strings as charcodes
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.HtmlAttributeEncode = function( strInput )
-{
- var c;
- var retVal = '';
-
- if(strInput == null)
- {
- return null;
- }
-
- for(var cnt = 0; cnt < strInput.length; cnt++)
- {
- c = strInput.charCodeAt(cnt);
-
- if (( ( c > 96 ) && ( c < 123 ) ) ||
- ( ( c > 64 ) && ( c < 91 ) ) ||
- ( ( c > 43 ) && ( c < 58 ) && (c!=47)) ||
- ( c == 95 ))
- {
- retVal = retVal + String.fromCharCode(c);
- }
- else
- {
- retVal = retVal + '&#' + c + ';';
- }
- }
-
- return retVal;
-};
-///////////////////////////////////////////////////////////////////////////////
-//
-// default_error_handler:
-//
-// Default error handling function
-//
-///////////////////////////////////////////////////////////////////////////////
-
-Silverlight.default_error_handler = function (sender, args)
-{
- var iErrorCode;
- var errorType = args.ErrorType;
-
- iErrorCode = args.ErrorCode;
-
- var errMsg = "\nSilverlight error message \n" ;
-
- errMsg += "ErrorCode: "+ iErrorCode + "\n";
-
-
- errMsg += "ErrorType: " + errorType + " \n";
- errMsg += "Message: " + args.ErrorMessage + " \n";
-
- if (errorType == "ParserError")
- {
- errMsg += "XamlFile: " + args.xamlFile + " \n";
- errMsg += "Line: " + args.lineNumber + " \n";
- errMsg += "Position: " + args.charPosition + " \n";
- }
- else if (errorType == "RuntimeError")
- {
- if (args.lineNumber != 0)
- {
- errMsg += "Line: " + args.lineNumber + " \n";
- errMsg += "Position: " + args.charPosition + " \n";
- }
- errMsg += "MethodName: " + args.methodName + " \n";
- }
- alert (errMsg);
-};
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// __cleanup:
-//
-// Releases event handler resources when the page is unloaded
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.__cleanup = function ()
-{
- for (var i = Silverlight._silverlightCount - 1; i >= 0; i--) {
- window['__slEvent' + i] = null;
- }
- Silverlight._silverlightCount = 0;
- if (window.removeEventListener) {
- window.removeEventListener('unload', Silverlight.__cleanup , false);
- }
- else {
- window.detachEvent('onunload', Silverlight.__cleanup );
- }
-};
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-//
-// __getHandlerName:
-//
-// Generates named event handlers for delegates.
-//
-///////////////////////////////////////////////////////////////////////////////////////////////
-Silverlight.__getHandlerName = function (handler)
-{
- var handlerName = "";
- if ( typeof handler == "string")
- {
- handlerName = handler;
- }
- else if ( typeof handler == "function" )
- {
- if (Silverlight._silverlightCount == 0)
- {
- if (window.addEventListener)
- {
- window.addEventListener('unload', Silverlight.__cleanup , false);
- }
- else
- {
- window.attachEvent('onunload', Silverlight.__cleanup );
- }
- }
- var count = Silverlight._silverlightCount++;
- handlerName = "__slEvent"+count;
-
- window[handlerName]=handler;
- }
- else
- {
- handlerName = null;
- }
- return handlerName;
-};
-//////////////////////////////////////////////////////////////////
-//
-// onRequiredVersionAvailable:
-//
-// Called by version verification control to notify the page that
-// an appropriate build of Silverlight is available. The page
-// should respond by injecting the appropriate Silverlight control
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onRequiredVersionAvailable = function()
-{
-
-};
-//////////////////////////////////////////////////////////////////
-//
-// onRestartRequired:
-//
-// Called by version verification control to notify the page that
-// an appropriate build of Silverlight is installed but not loaded.
-// The page should respond by injecting a clear and visible
-// "Thanks for installing. Please restart your browser and return
-// to mysite.com" or equivalent into the browser DOM
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onRestartRequired = function()
-{
-
-};
-//////////////////////////////////////////////////////////////////
-//
-// onUpgradeRequired:
-//
-// Called by version verification control to notify the page that
-// Silverlight must be upgraded. The page should respond by
-// injecting a clear, visible, and actionable upgrade message into
-// the DOM. The message must inform the user that they need to
-// upgrade Silverlight to use the page. They are already somewhat
-// familiar with the Silverlight product when they encounter this.
-// Silverlight should be mentioned so the user expects to see that
-// string in the installer UI. However, the Silverlight-powered
-// application should be the focus of the solicitation. The user
-// wants the app. Silverlight is a means to the app.
-//
-// The upgrade solicitation will have a button that directs
-// the user to the Silverlight installer. Upon click the button
-// should both kick off a download of the installer URL and replace
-// the Upgrade text with "Thanks for downloading. When the upgarde
-// is complete please restart your browser and return to
-// mysite.com" or equivalent.
-//
-// Note: For a more interesting upgrade UX we can use Silverlight
-// 1.0-style XAML for this upgrade experience. Contact PiotrP for
-// details.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onUpgradeRequired = function()
-{
-
-};
-//////////////////////////////////////////////////////////////////
-//
-// onInstallRequired:
-//
-// Called by Silverlight.checkInstallStatus to notify the page
-// that Silverlight has not been installed by this user.
-// The page should respond by
-// injecting a clear, visible, and actionable upgrade message into
-// the DOM. The message must inform the user that they need to
-// download and install components needed to use the page.
-// Silverlight should be mentioned so the user expects to see that
-// string in the installer UI. However, the Silverlight-powered
-// application should be the focus of the solicitation. The user
-// wants the app. Silverlight is a means to the app.
-//
-// The installation solicitation will have a button that directs
-// the user to the Silverlight installer. Upon click the button
-// should both kick off a download of the installer URL and replace
-// the Upgrade text with "Thanks for downloading. When installation
-// is complete you may need to refresh the page to view this
-// content" or equivalent.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.onInstallRequired = function()
-{
-
-};
-
-//////////////////////////////////////////////////////////////////
-//
-// IsVersionAvailableOnError:
-//
-// This function should be called at the beginning of a web page's
-// Silverlight error handler. It will determine if the required
-// version of Silverlight is installed and available in the
-// current process.
-//
-// During its execution the function will trigger one of the
-// Silverlight installation state events, if appropriate.
-//
-// Sender and Args should be passed through from the calling
-// onError handler's parameters.
-//
-// The associated Sivlerlight <object> tag must have
-// minRuntimeVersion set and should have autoUpgrade set to false.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.IsVersionAvailableOnError = function(sender, args)
-{
- var retVal = false;
- try
- {
- if (args.ErrorCode == 8001 && !Silverlight.__installationEventFired)
- {
- Silverlight.onUpgradeRequired();
- Silverlight.__installationEventFired = true;
- }
- else if (args.ErrorCode == 8002 && !Silverlight.__installationEventFired)
- {
- Silverlight.onRestartRequired();
- Silverlight.__installationEventFired = true;
- }
- // this handles upgrades from 1.0. That control did not
- // understand the minRuntimeVerison parameter. It also
- // did not know how to parse XAP files, so would throw
- // Parse Error (5014). A Beta 2 control may throw 2106
- else if (args.ErrorCode == 5014 || args.ErrorCode == 2106)
- {
- if (Silverlight.__verifySilverlight2UpgradeSuccess(args.getHost()))
- {
- retVal = true;
- }
- }
- else
- {
- retVal = true;
- }
- }
- catch (e)
- {
- }
- return retVal;
-};
-//////////////////////////////////////////////////////////////////
-//
-// IsVersionAvailableOnLoad:
-//
-// This function should be called at the beginning of a web page's
-// Silverlight onLoad handler. It will determine if the required
-// version of Silverlight is installed and available in the
-// current process.
-//
-// During its execution the function will trigger one of the
-// Silverlight installation state events, if appropriate.
-//
-// Sender should be passed through from the calling
-// onError handler's parameters.
-//
-// The associated Sivlerlight <object> tag must have
-// minRuntimeVersion set and should have autoUpgrade set to false.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.IsVersionAvailableOnLoad = function(sender)
-{
- var retVal = false;
- try
- {
- if (Silverlight.__verifySilverlight2UpgradeSuccess(sender.getHost()))
- {
- retVal = true;
- }
- }
- catch (e)
- {
- }
- return retVal;
-};
-//////////////////////////////////////////////////////////////////
-//
-// __verifySilverlight2UpgradeSuccess:
-//
-// This internal function helps identify installation state by
-// taking advantage of behavioral differences between the
-// 1.0 and 2.0 releases of Silverlight.
-//
-//////////////////////////////////////////////////////////////////
-Silverlight.__verifySilverlight2UpgradeSuccess = function(host)
-{
- var retVal = false;
- var version = "3.0.40723";
- var installationEvent = null;
-
- try
- {
- if (host.IsVersionSupported(version + ".99"))
- {
- installationEvent = Silverlight.onRequiredVersionAvailable;
- retVal = true;
- }
- else if (host.IsVersionSupported(version + ".0"))
- {
- installationEvent = Silverlight.onRestartRequired;
- }
- else
- {
- installationEvent = Silverlight.onUpgradeRequired;
- }
-
- if (installationEvent && !Silverlight.__installationEventFired)
- {
- installationEvent();
- Silverlight.__installationEventFired = true;
- }
- }
- catch (e)
- {
- }
- return retVal;
-};
-
-
-////////////////////////////////////////////////////////////////////////////////
-// End of C:/dev/ironruby/Merlin/Main/Hosts/SilverLight/Samples1/../Scripts/Silverlight.js
-////////////////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////////////////
-// Start of C:/dev/ironruby/Merlin/Main/Hosts/SilverLight/Samples1/../Scripts/mss.js
-////////////////////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////////////////
-// When the page is loaded, place a single hidden Silverlight control on the
-// page, which loads the DLR assemblies, and then pulls DLR code out of the
-// HTML page.
-///////////////////////////////////////////////////////////////////////////////
-
-if(!window.DLR) {
- window.DLR = {}
-}
-
-if(!DLR.autoAdd) {
- DLR.autoAdd = true
-}
-
-if(!DLR.path) {
- DLR.path = null
-}
-
-if (typeof HTMLElement != "undefined" && !HTMLElement.prototype.insertAdjacentElement) {
- HTMLElement.prototype.insertAdjacentElement = function(where, parsedNode) {
- switch (where) {
- case 'beforeBegin':
- this.parentNode.insertBefore(parsedNode, this)
- break;
- case 'afterBegin':
- this.insertBefore(parsedNode, this.firstChild);
- break;
- case 'beforeEnd':
- this.appendChild(parsedNode);
- break;
- case 'afterEnd':
- if (this.nextSibling)
- this.parentNode.insertBefore(parsedNode, this.nextSibling);
- else this.parentNode.appendChild(parsedNode);
- break;
- }
- }
-}
-
-if(!DLR.__loaded) {
-
- Object.merge = function(dest, src) {
- var _temp = {}
- for(var prop in dest) {
- _temp[prop] = dest[prop]
- }
- for(var prop in src) {
- _temp[prop] = src[prop]
- }
- return _temp
- }
-
- /*
- * DLR.parseSettings(defaults, settings)
- *
- * @param defaults: an object representing the default settings.
- * @param settings: overrides any default settings.
- * @returns An object ready to be given to DLR.__createSilverlightObject:
- * the DLR-specific options are moved into initParams.
- */
- DLR.parseSettings = function(defaults, settings) {
- // the the full settings dictionary
- var raw_settings = Object.merge(defaults, settings);
-
- // pull out the DLR-specific configuration options
- var dlr_keys = ['debug', 'console', 'start', 'exceptionDetail', 'reportErrors', 'xamlid'];
- var dlr_options = {};
- for(d in dlr_keys) {
- key = dlr_keys[d]
- if(raw_settings[key]) {
- dlr_options[key] = raw_settings[key];
- delete raw_settings[key];
- }
- }
-
- // generate settings.initParams from the rest of the DLR-specific options
- var initParams = "";
- for(opt in dlr_options) {
- initParams += (opt + "=" + dlr_options[opt] + ",")
- }
- initParams = initParams.substring(0, initParams.length - 1);
- raw_settings['initParams'] = initParams;
-
- return raw_settings;
- }
-
- /*
- * DLR.__startup()
- *
- * Creates a Silverlight control (using the current DLR.settings) if the DLR
- * hasn't loaded yet, autoAdd is true, and Silverlight is installed.
- * Also adds a silverlight control for each XAML script-tag
- */
- DLR.__startup = function() {
- if(!DLR.__loaded && DLR.autoAdd && Silverlight.isInstalled(null)) {
- DLR.createSilverlightObject({});
- DLR.__loaded = true;
- }
-
- elements = document.getElementsByTagName("script");
- for(var i = 0; i < elements.length; i++) {
- var element = elements[i];
- if(element.type == 'application/xml+xaml' && !element.defer) {
- settings = {
- width: element.getAttribute('width'),
- height: element.getAttribute('height')
- };
- if(element.id == '')
- element.id = DLR.__defaultXAMLId + DLR.__objectCount;
- settings.xamlid = element.id;
- DLR.createSilverlightObject(settings);
- }
- }
- }
-
- DLR.__defaultXAMLId = "silverlightDLRXAML"
-
- DLR.__defaultObjectId = "silverlightDLRObject"
-
- DLR.__objectCount = 0
-
- /*
- * DLR.createSilverlightObject(settings)
- *
- * @param settings: pre-parsed settings to be passed as 2nd argument to
- * DLR.parseSettings
- *
- * Parses settings and passes them to DLR.__createSilverlightObject.
- */
- DLR.createSilverlightObject = function(settings) {
- settings = typeof(settings) == 'undefined' ? {} : settings;
-
- var xamlid = settings.xamlid;
- DLR.__createSilverlightObject(
- xamlid,
- DLR.parseSettings(DLR.getSettings(), settings)
- );
- }
-
- /*
- * DLR.__createSilverlightObject(settings)
- *
- * @param settings: Already-parsed settings to create the Silverlight control
- * with.
- *
- * If settings.xamlid points to a valid DOM element, the Silverlight control
- * is added as a sibling afer. Otherwise it's appended to the body.
- */
- DLR.__createSilverlightObject = function(xamlid, settings) {
- settings = typeof(settings) == 'undefined' ? {} : settings;
-
- var spantag = document.createElement("span");
- if(settings.width == 1 && settings.height == 1) {
- spantag.style.position = 'absolute'
- spantag.style.top = '0'
- spantag.style.left = '0'
- }
- var sibling = null;
-
- if(xamlid)
- sibling = document.getElementById(xamlid);
- if(sibling && !sibling.parentElement && sibling.parentNode)
- sibling.parentElement = sibling.parentNode;
-
- if(!sibling || !sibling.parentElement || sibling.parentElement.tagName == "HEAD")
- document.body.appendChild(spantag);
- else
- sibling.insertAdjacentElement('afterEnd', spantag);
-
- if(settings.id == DLR.defaultSettings().id && DLR.__objectCount > 0)
- settings.id = DLR.__defaultObjectId + DLR.__objectCount
-
- slHtml = Silverlight.buildHTML(settings);
- spantag.innerHTML = slHtml;
- DLR.__objectCount++;
- }
-
- DLR.getSettings = function() {
- return Object.merge(DLR.defaultSettings(), DLR.settings);
- }
-
- DLR.defaultSettings = function() {
- return {
- width: 1,
- height: 1,
- onError: 'Silverlight.default_error_handler',
- reportErrors: 'errorLocation',
- source: DLR.path != null ? DLR.path + '/dlr.xap' : 'dlr.xap',
- id: 'silverlightDlrObject_DOMOnly'
- };
- }
-
- if(!DLR.settings)
- DLR.settings = {}
-
- if(window.addEventListener) {
- window.addEventListener('load', DLR.__startup, false);
- } else {
- window.attachEvent('onload', DLR.__startup);
- }
-};
-
-
-////////////////////////////////////////////////////////////////////////////////
-// End of C:/dev/ironruby/Merlin/Main/Hosts/SilverLight/Samples1/../Scripts/mss.js
-////////////////////////////////////////////////////////////////////////////////
-
View
BIN  silverlight/dlr.xap
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.