<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dotnetdeveloper.co.uk/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'javascript'</title><link>http://dotnetdeveloper.co.uk/search/SearchResults.aspx?o=DateDescending&amp;tag=javascript&amp;orTags=0</link><description>Search results matching tag 'javascript'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>MSCRM - Finding an entity type code</title><link>http://dotnetdeveloper.co.uk/blogs/mscrm/archive/2008/07/28/mscrm-finding-an-entity-type-code.aspx</link><pubDate>Mon, 28 Jul 2008 08:56:00 GMT</pubDate><guid isPermaLink="false">86eca113-8d7a-4e3e-acb1-20f766f1d10b:54</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Microsoft have a naming convention for entity codes which you can find on the net &lt;/p&gt;
&lt;p&gt;However what if you want to find out a code for a custom entity?&lt;/p&gt;
&lt;p&gt;This is the simple solution&amp;nbsp;I use.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Goto &lt;strong&gt;Settings &amp;gt; Customization&lt;/strong&gt;&amp;nbsp; and choose your entity&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click &lt;strong&gt;Forms and Views&lt;/strong&gt; and double click on the main form&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click &lt;strong&gt;Form Properties &amp;gt; On Load Event&lt;/strong&gt; and then click edit&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Paste the following code into the text area&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&amp;quot;type code: &amp;quot; + crmForm.ObjectTypeCode);&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Tick the Event is enabled tickbox and click OK and on the next screen OK again.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;On the top menu select &lt;strong&gt;Preview &amp;gt; Create Form&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Now you get a nice popup box with your entity type code&lt;strong&gt; &lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Make sure you quit without saving.&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>text box input to 'live' text output</title><link>http://dotnetdeveloper.co.uk/blogs/aspnet/archive/2008/06/15/text-box-input-to-live-text-output.aspx</link><pubDate>Sun, 15 Jun 2008 16:12:00 GMT</pubDate><guid isPermaLink="false">86eca113-8d7a-4e3e-acb1-20f766f1d10b:50</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I recently saw his post on my favourite if rather geeky forums.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thought id just wack the answer on here since its simple but yet if you don&amp;#39;t know the answer its not.&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp;i hope i can explain what i am after with this,&lt;br /&gt;&lt;br /&gt;I want a text box on the web page that a user types numbers into, i can do this in most cases,&lt;br /&gt;&lt;br /&gt;I then want some maths done with this number, not to difficult in most cases,&lt;br /&gt;&lt;br /&gt;This is where i fall down&lt;br /&gt;&lt;br /&gt;rather than the result being fed some where on the click of a button or some thing similar, i want an instant live display next to the text box,&lt;br /&gt;So as the user types a result is appearing next to the box.&lt;br /&gt;&lt;br /&gt;For example if the maths that have to be done are &amp;#39;user number&amp;#39; + 5&lt;br /&gt;and the user is going to type 15, once they type 1, then 6 will appear in the space next to the box, and then as they type the 5 for the 15 it changes the output to 20.&lt;br /&gt;&lt;br /&gt;I have seen this sort of thing in use a few places but have no idea how it is done&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;well theres 2 realistic ways of doing this one is using ajax and doing the mathematics server side.The other simplest method is to use javascript.&lt;/p&gt;
&lt;p&gt;The following method in my opinion is the easiest way to do this though it is intentionally basic it could be tidied up to be useful..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;copy paste into the head of document&lt;br /&gt;&lt;br /&gt;&amp;lt;script language=javascript type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;function calculate()&lt;br /&gt;{&lt;br /&gt;document.all.box2.value = parseInt(document.all.box1.value) + 5;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;copy paste into the main area of the page&lt;br /&gt;&lt;br /&gt;&amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;&amp;lt;input id=&amp;quot;box1&amp;quot; onkeyup=&amp;quot;calculate()&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;input id=&amp;quot;box2&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;hopefully this will help point anybody else that wants to do this in the right direction.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>