<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blog.4penny.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Javascript</title><subtitle type="html">Stuff that everyone needs to know about Javascript</subtitle><id>http://blog.4penny.net/blogs/javascript/atom.aspx</id><link rel="alternate" type="text/html" href="http://blog.4penny.net/blogs/javascript/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blog.4penny.net/blogs/javascript/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20611.960">Community Server</generator><updated>2007-06-11T12:04:00Z</updated><entry><title>Used Javascript to check a radio box</title><link rel="alternate" type="text/html" href="http://blog.4penny.net/blogs/javascript/archive/2008/05/21/used-javascript-to-check-a-radio-box.aspx" /><id>http://blog.4penny.net/blogs/javascript/archive/2008/05/21/used-javascript-to-check-a-radio-box.aspx</id><published>2008-05-21T14:30:00Z</published><updated>2008-05-21T14:30:00Z</updated><content type="html">&lt;p&gt;In a recent project I needed to check a radio button based on whether or not a text field was populated. &lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;script language=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"javascript"&lt;/span&gt; type=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (document.frmCreateAccount.EMail.value==&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;)
      {
        document.frmCreateAccount.OKToEMailYes.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;checked&lt;/span&gt;=true;
      }
    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;else&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (document.frmCreateAccount.EMail.value!&lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt;&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;""&lt;/span&gt;)
      {
      }
&amp;lt;/script&amp;gt; &lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=1023" width="1" height="1"&gt;</content><author><name>Crystal</name><uri>http://blog.4penny.net/members/Crystal.aspx</uri></author></entry><entry><title>Debugging Javascript in Visual Studio 2005</title><link rel="alternate" type="text/html" href="http://blog.4penny.net/blogs/javascript/archive/2007/06/11/debugging-javascript-in-visual-studio-2005.aspx" /><id>http://blog.4penny.net/blogs/javascript/archive/2007/06/11/debugging-javascript-in-visual-studio-2005.aspx</id><published>2007-06-11T22:40:00Z</published><updated>2007-06-11T22:40:00Z</updated><content type="html">&lt;p&gt;This post is taken verbatum from &lt;a href="http://waltritscher.com/blog/ramblings/archive/2004/09/19/211.aspx"&gt;http://waltritscher.com/blog/ramblings/archive/2004/09/19/211.aspx&lt;/a&gt;. It&amp;#39;s a great resource and a great technique; and I&amp;#39;m afraid I&amp;#39;ll lose it - so I copied it here. Kudos to Walt. &lt;/p&gt;
&lt;p&gt;ASP.Net makes it very easy to write and debug server side code.&amp;nbsp; I&amp;#39;ve found when talking to ASP.Net developers that many of them don&amp;#39;t know that you can debug client side script with VS.NET &amp;nbsp;too.&lt;/p&gt;
&lt;p&gt;This week I was working on a client web site and needed to write some client-side JavaScript.&amp;nbsp; This reminded me to post a quick how-to on client side debugging.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Steps&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;1. Enable client-side script debugging in Internet Explorer &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open Microsoft Internet Explorer. &lt;/li&gt;
&lt;li&gt;On the Tools menu, click Internet Options. &lt;/li&gt;
&lt;li&gt;On the Advanced tab, locate the Browsing section, and uncheck the Disable script debugging check box, and then click OK. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;2. Close Internet Explorer.&lt;/p&gt;
&lt;p&gt;3. In your JavaScript function add the keyword debugger. This causes VS.NET to switch to debug mode when it runs that line. &lt;/p&gt;
&lt;p&gt;4. Run your ASP.Net applicationin debug mode.&lt;/p&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=414" width="1" height="1"&gt;</content><author><name>Steve Gray</name><uri>http://blog.4penny.net/members/Steve-Gray.aspx</uri></author></entry><entry><title>Include Javascript in a project</title><link rel="alternate" type="text/html" href="http://blog.4penny.net/blogs/javascript/archive/2007/06/11/include-javascript-in-a-project.aspx" /><id>http://blog.4penny.net/blogs/javascript/archive/2007/06/11/include-javascript-in-a-project.aspx</id><published>2007-06-11T16:04:00Z</published><updated>2007-06-11T16:04:00Z</updated><content type="html">&lt;p&gt;I went to a greate Microsoft MSDN event last week, and as usual, Russ (&lt;a href="http://www.russtoolshed.com/"&gt;www.russtoolshed.com&lt;/a&gt;) was excellent. One of the tips that he gave had to do with stepping through Javascript in Visual Studio 2005. I haven&amp;#39;t been able to get it to work, but one of the things that had to be done was to include the JS in a separate file, not in the main .aspx page. This piece of code will do the include for you:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;src&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;~JobProgress.js&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;As always, your comments are welcome.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;img src="http://blog.4penny.net/aggbug.aspx?PostID=413" width="1" height="1"&gt;</content><author><name>Steve Gray</name><uri>http://blog.4penny.net/members/Steve-Gray.aspx</uri></author><category term="Javascript" scheme="http://blog.4penny.net/blogs/javascript/archive/tags/Javascript/default.aspx" /></entry></feed>