Tag | Javascript Posts

I was having an discussion with my wife on things to come in computer software and silverlight. below is a brief snippet: My wife holds an computer engineering degree and is passionate about new innovations. She is a prolific programmer though she ONLY codes when she feels like(or finds a problem worth her attention) and thus is NOT a regular coder like mortals like me who are ... well, just coders, who codes for money:D Wife: What is this buzz around Silverlight? Subodh: Because we need smarter ...
Go to the forum control panel, Templates. If want to modify the ForumView, click on it and insert your Adsense code after the very first [BREADCRUMB], ie: <%@ Register TagPrefix="am" TagName="ForumJump" Src="~/DesktopModules/NTFor... <%@ Register TagPrefix="am" TagName="Stats" Src="~/DesktopModules/NTFor... <%@ Register TagPrefix="am" TagName="WhosOnline" Src="~/DesktopModules/NTFor... [BREADCRUMB] ...
Well, for a long time I have been a big fan of open source software, and although I'm not specifically a .NET developer, it's my main focus, as everything I do work related is .NET. I've known about The Mono Project for a while, and I typically run Ubuntu as my OS of choice, with XP running in a VM for when I really need it. Well, I haven't booted up Ubuntu for a while, having been really busy doing work stuff, so today, I decided that it was time to take Ubuntu's Latest version, Jaunty Jackalope ...
All right, so it may have been a day or two since my last post. I was hoping I'd have the option to post-date to make it look like I was a much more diligent blogger than I really am, but oh well. Apart from just wanting to look like I blog more regularly than once a quarter, there's actually a lot of material to cover. I'm not sure exactly how I want to accomplish this, so there might be a spate of blogs close together just to cover all the things I've worked on so far and the challenges involved. ...
For many customers the ROI on software licences is one of the key factors when purchasing software, so when deploying an e-Commerce solution the level of return for frameworks, and CMS platforms such as Commerce Server and MOSS are quite justifiable, however it is the extra features – such as the Store Locator that is difficult spending licensing money on. The current store locator within CS 2009 is based on a commercial Microsoft Virtual Earth web-service, which is provided for non-developer used ...
Remember when a program was termed a “GUI Application” - a program with a Graphical User Interface? It had features like menus that “dropped-down” (or “popped up”), scroll bars to reveal more of the virtual surface area, a pointing device (still called a cursor), and lots and lots of Drag & Drop. Thankfully, that moniker has mostly died. Now it is time another term to fall by the wayside – the Web Application. What is a Web Application? Just what is a web application, anyway. An application delivered ...
This is a topic that has been beaten to death. I know it, you know it, but I'm still going to give my version of it, just because I can. One thing I'm going to try to do different from every other "implementation" of this topic, as actually make it practical. It's great that for good design you should follow <insert design pattern of choice here>. And for the crowd that's going to comeback with "The design pattern isn't as important, so long as your code follows the SOLID Principals", well, ...
So, today I was working with the ASP.NET Report Viewer Control. If you don't know what that is, it's an ASP.NET control that comes with .NET, and what it does is allows you to display a SSRS Report on your website. True to ASP.NET, it seems very simple at first, drag, drop, set parameters... and then of course, there's the fallbacks on the things it cannot do. A major thing to me, when I'm developing a website, especially recently, is performance. I hate going to a website, and waiting more than ...
I had looked up the LoadControl(“”) method earlier today, and came upon a short website entry that quickly discussed how to load a web user control (.ascx) dynamically onto a page. The link is: http://www.codeproject.com/... It mentioned inside that a CMS (content management system) could be built using this method + a database table to track these controls. It got me intrigued, so I decided to pursue it. It’s pretty simple, and actually adds a lot of cool functionality ...
Below are a few thoughts on the upcoming framework 4.0. I am not sure if the feature set is finalized, but I’ll comment on what I think are some of the more interesting features being planned for this release, as seen in the beta. Managed Extensibility Framework Plug-in architectures are a fairly common pattern for many scenarios, and I have seen quite a few over the years. MEF seems to be a nice combination of plug-in/IoC container/Dependency Injection framework. It’s use in Visual Studio 2010 should ...
Pretty straightforward this one - you can see an example here <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... xmlns="http://www.w3.org/19... <title>Simple spinner</title> <script type="text/javascript"> function RotateSpinner(spinnerId, up) { document.getElementById(spi... = up ? parseInt(document.getElemen... + 1 : parseInt(document.getElemen... ...
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Issue: I have a grid which I have what I can only describe as containing “Core” data and “Minor” data. What I'd like to be able to do is to show the Core data in the main grid view but to allow the user to add/edit/view the Core and Minor data when they open the relevant dialog. In essence this would be like having hidden columns that were viewable/editable when the dialogs were opened with form editing/viewing. The Minor data is only of interest to some users, so I don't want to show it in the main ...
In a previous post, I showed how to submit an AJAX form in MVC with the jQuery Thickbox and the built-in MVC AJAX helpers. If you read that post first, it will show the complete context for how to simply submit an AJAX form that is being rendered inside a jQuery Thickbox with built-in MVC AJAX helpers. But what if you want to stick to a pure jQuery solution? That is also simple enough to do. Instead of using the Ajax.BeginForm() method, you can use the jQuery Form Plugin. The code is almost identical ...
This is a part of EXT JS Tutorial In this part of the Ext JS tutorial I would like to show the Ext.MessageBox class. In the first part, where I showed how to add Ext library into MVC project, I have put there a Ext.Msg.alert to test the installation. Actually the Ext.Msg it is an alias for Ext.MessageBox class. Both can be used interchangeably. Ext.Msg.prompt Ok, so let’s create a first dialog to see how it’s look like. Let it be a Ext.Msg.prompt. This method displays a message box prompting to user ...
Scenario: You have a drop down box or list box in your jQuery jqGrid plugin and you edit the row via the form edit modal dialog but the form fails to show your selected option(s) in the drop down or list box. The reason: The jqGrid SELECT element binds the selected option(s) innerHTML (not the value) with the name value in the colModel. Example: In the JavaScript file I have a function that I call to setup the grid: function jqGridAccountContact(item, listURL, editURL, $rows, hideGrid) { //get all ...
VS 2008 requires you have VS 2008 Test Edition to see the results of a Generic Test, this wasn't sufficient with out current project as a lot of developers don't use test edition. I put together this custom xslt transform to convert the .trx test result file to an html report anyone can view, complete with collapsable sections...Here is a link to the latest version of the XSLT: http://yourcomputer.com/TRX... is the TrxConverter.cs file I use to Generate the html.http://yourcomputer.co... ...
For those of you who missed the chat today, here is the raw transcript. By raw, I mean that I copied and pasted the discussion without any edits. This is divided into two parts, the top part is the answers from the Microsoft Experts and the bottom part is the discuss (questions) from the audience. Answers from Microsoft: RajeevDu[MS] (Expert): Hi, This is Rajeev Dubey, Bluetooth Program Manager. Sue Loh [MS] (Moderator)[12:02]: Hi, I’m Sue Loh, a developer in the Windows Devices Core team at Microsoft. ...
Ext JS is a very powerful javascript UI library which allows you to create a rich internet applications. Ext JS is very easy in use, in learn and has very intuitive API. Supports all major web browsers (IE, Opera, Firefox, Safari). Starting with this post I would like to initiate a series of articles explaining the nuances of how to use a basics Ext aspects in web developments with ASP.NET MVC and how to create a great-looking user interfaces in web apps. Links to all related articles to this tutorial ...
This is a part of EXT JS Tutorial To successfully carry out everything that has been described in this article you need: Normal 0 21 false false false PL JA X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standardowy; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... line-height:115%; ...
Hey All, I know of the conditional CSS code you are supposed to use when modifying css on a per-browser basis. Recently I ran into an Issue with IE8 only, a search box was not aligning vertically with the search button next to it. This was working in FF2, FF3, IE6, and IE7. IE8 was the odd man out. In this case, conditional css was out of context. Then I found this article: http://www.ironpaper.com/cu... AMAZING Works ...
Originally Posted Here: http://www.thegrubbsian.com... I’m almost positive someone has come up with this pattern before, but it was a big help on a recent project so I thought I’d share it. The basic goal of the pattern is to make the setup and teardown work of test classes reusable. We found this to cause particular pain for integration tests written against a database where multiple dependent records needed to be created before the actual test could be performed. ...
In my previous blog post, I have discussed about how to get asynchronous JQuery treevew to work with ASP.NET Webservices, and we identified that, to make a successful ASP.NET webservice call using JQuery the request must be POST request, the content type of the request must be “application/json; charset=utf-8”, and the data parameter of the the $.ajax() method must be passed as a string. We also looked at the tweaks that we need to do to the jquery.treeview.async.js file to get that working. However ...
Was doing some research this morning, as usual, and came across a post from Giulio Bai on jQuery performance tips. A lot of his tips are things I’ve heard elsewhere (no offense!), but one that I haven’t seen anywhere and for some reason surprised me is that using a the JavaScript provided for() loop is considerably faster than using jQuery’s each() function. In fact, it can be several orders of magnitude faster depending on what you’re doing. Interesting. Link to his post Technorati Tags: jQuery,performance ...
A few days ago I got an error report to fix. Some web application that I now maintain was inserting duplicate records. After a quick look it became obvious that the users where double clicking the submit button and that made the page post twice and so a duplicate record would appear. A quick fix dor this problem using javascript: <script language="javascript" type="text/javascript"> var haveSubmitted=false; function FirstSubmitOnly() { if (haveSubmitted) return false; haveSubmitted = true; ...
This example shows the basic way on how to access control from external javascript file (.js). Normally, we use the following line below when accessing control within our JavaScript method in the page. document.getElementById('&l... TextBox1.ClientID %>'); AFAIK, Using Inline expression like <% %> will not work within external js files. As a workaround we can pass the id of the control (eg. TextBox) to the funciton as a parameter instead like: External JS file: function GetControlValue(obj) ...
In this Submittal-only Issue: Davide Zordan, Michael Washington, Charlie Robbins, Alex Golesh(2), Pencho Popadiyn, and Danijel Stulic From SilverlightCream.com: Silverlight 3 / Expression 3 behaviors for enabling Multi-touch gestures Davide Zordan provides two Behaviors for gestures with a Multi-Touch device. Don't miss Tim Heuer's article he references, and if you're a WPFer, he also has a companion post A WPF custom control for enabling Windows 7 Multi-touch gestures Silverlight 3 Drag and Drop ...
I had one of those problems that I had trouble resolving with a search engine this past weekend. Once it was pointed out to me what I did wrong, it was really quite simple. Basically, I needed the enter key to fire a function from a certain input textbox. I wrote up a jquery script, and it worked for IE, Chrome, and Safari, but it did not work for Firefox. Here was the script. $("#Location").keydown(func... { switch (event.keyCode) { case 13: findFresh(); break; } }); Do you see the problem? ...
There is a compilation of quite a few "How Do I?" videos related to windows mobile here. Take a look in your free time, some videos might be of interest to you. Videos I liked: How Do I: Use Bing inside a Windows Mobile Application? How Do I: Create Localized Applications on Windows Mobile Devices? How Do I: Use the GPS Intermediate Driver to Retrieve Location Information? How Do I: Associate an Application with the Hardware Buttons on a Windows Mobile Device? How Do I: Schedule an Application to ...
I didn’t leave work until 8PM this evening. I was wrestling with a JavaScript/JQuery problem and it became a personal battle to bend this application to my will. (Maybe in some future post I’ll talk about how horrible that is.) So I didn’t get it before I left, but I came home and started hitting it here on a test project. There seems like there are probably some scripting conflicts in our project (we have the JQuery stuff and prototype in there), so it didn’t take be but about a half-hour at home ...
1. Create a CSS Class that allows you to highlight invalid inputs and display messages in a pretty way input.error { background: #fed; border: 1px solid red; } 2. Create validators.js. Here are the contents from that file: ValidatorCommonOnSubmit = function() { ClearValidatorCallouts(); var result = SetValidatorCallouts(); return result; } ValidatorValidate = function(val, validationGroup, event) { val.isvalid = true; if ((typeof(val.enabled) == 'undefined' || val.enabled != false) && IsValidationGroupMatch(val, ...
Usually the style you organize code is just that A MATTER OF STYLE, in javascript however it’s not. If by any chance you end up writing the following code: var display = function() { this.x = 10; return { alert: function(message) { window.alert(message); } } } you might be in for a surprise but it won’t return anything because by default the javascript interpreter inserts ; after every line that doesn’t already contain it or }. Instead you should write: var display = function() { this.x = 10; return ...
When we develop our silverlight widget the sample page that we use normally is a nice servier side control called asp:Silverlight, that’s quite nice if you use ASP .net 3.5 SP1, but… what if your widget has to run on ASP .net 2.0, or PHP, or a plain HTML page… Well… the first thing to note down is just that asp:Silverlight control is a nice server side control that is translated into HTML, no more no less. You can as well define directly an OBJECT tag and instantiate the control. What are the main ...
When building RIAs there is sometimes both the need for complex rich interfaces and simpler standard html interfaces. This is more common when introducing the rich experience into an existing web application where it makes sense to maintain some of the existing functionality and introduce the power of Silverlight in targeted functions. In such a circumstance when we have business functionality in Silverlight and in ASP.NET/HTML pages - wouldn't it be great if we had the ability to interop between ...
In my continued exploration of C# 4.0, I wanted to put together a simple example of using the C# 4.0 “dynamic” keyword in conjunction with IronRuby. I’ve been shocked at how difficult it was to find code samples on the internet that actually do this. With much persistence (and some significant pointing in the right direction from Justin Etheredge) I got my simple example working. Given that there aren’t many great examples of calling IronRuby from C# 4.0 out there, I figured I better post the code. ...
The need As certain as the sun rising tomorrow, there will come the point where you will want to display a list or grid with paging. While many solutions exist, and many component developers are coming in with robust solutions, a simple and satisfactory solution can be created fairly easily. Implementation Why create a pager from scratch? Several reasons: 1) You want to control the pager completely – display, style and all. 2) You don't like the idea of JavaScript paging, which will load your hundreds ...
In my last blog I talked about the new site around SharePoint 2010 and the sneak peak videos. I got a chace to watch them and here are my notes: SharePoint 2010 Feature Highlights: New User Interface including new Ribbon Web Edit Silverlight Web Part Rich Theming Browser support for Safari, Firefox and IE Visio Services SharePoint Designer enhancements Business Connectivity Services (BDC evolution) SharePoint Workspaces (formerly Groove) or offline libraries Richer Media Support SharePoint 2010 Admin ...
Ok it seems that lot’s of members at the forums is asking on how to display multi-line text in a JavaScript pop up box. So I decided to write this example so that other developers can reference it or if I encounter such a post in the forum then I can simply point them in this example. Check the following code blocks below: <html xmlns="http://www.w3.org/19... <head runat="server"> <title>Untitled Page</title> <script type="text/javascript" language="javascript"> ...
My general rule of thumb (which I actually read on some other site or blog, or maybe in a book or on the msdn?) is that if you plan on using a control once or twice, use a web user control. If, however, you want to use it all over your program, you should invest the time to make it a server control. They are much easier to use in the program (in the long-term), since they allow you to drag and drop them from the toolbox and you can pass them between programs easier as a DLL instead of a .ascx file. ...
Originally posted here: http://www.thegrubbsian.com... I was listening to a recent Hanselminutes podcast episode in which Scott spoke with Michael Feathers of ObjectMentor on the topic of legacy code. They touched on a number of really effective techniques for approaching a legacy code-base and I wanted to echo some of their thoughts and add a few of my own. First, the definition of legacy code (as was discussed in the show) is really much broader than the face value ...
Translation of original post by Scott Guthrie: / Tlumaczenie oryginalnego posta napisanego przez Scott’a Guthrie: http://weblogs.asp.net/scot... Zespól ASP.NET wlasnie opublikowal pierwszy preview nowej wersji ASP.NET MVC – MVC Version 2. Mozesz pobrac go tutaj. Preview 1 dziala w srodowisku .NET 3.5 SP1 i VS 2008, i moze byc zainstalowane równolegle z ASP.NET MVC 1.0 (co oznacza, iz nie pojawi sie miedzy nimi konflikt, a dotad dzialajace ...
This post is the fourth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #4 – List Active Directory Groups and Users This web part will list each user group and its members, as defined in your Active Directory (or other LDAP server) installation. Step one is to make sure you have the RSSBus Web Part installed. See here for instructions. Step two, make ...
A while ago I was building a tree and I decided that it would be a great idea to load its branches on demand. At the moment, the best way I could figure out to do this was using some JavaScript and my beloved PageMethods. After coding and coding I got it working, and it worked wonderfully... The day came when my tree was moved to the production environment, where it would use a big data hierarchy. The main issue was that some of the branches loaded lots of data, and when I expanded one of them I ...
Hello, Finally Microsoft had announced the RTM (Release to Manufacturing) for Windows 7 and Windows Server 2008 R2 on July 22nd. Windows 7 will be available to customer's around Oct 22nd 2009 and Windows Server 2008R2 somewhere around that date. For more information visit here. I have Windows 7 Ultimate installed on my laptop last week and before it gets fully expired Microsoft will have Windows 7 RTM released. Glad to hear that. Thanks, Vishal Mody ...
Another great opportunity to ask Microsoft engineers your technical questions is coming up on Tuesday, June 30th. These chats are your opportunity to get advice and answers from the engineers at Microsoft. You may want to review the transcripts from previous chats to get an idea what these chats are all about. Title: Windows CE Live Chat! When: Tuesday, July 28, 2008 9:00 - 10:00 A.M. Pacific time Add to Calendar Description: Do you have tough technical questions regarding Windows CE or Windows Mobile ...
An old fix but I felt necessary to post If you open IIS on any of your SharePoint servers and it comes up blank, it is because there are too many threads connected to it at the same time. This is due to the wonderful Timer service for SharePoint. There are two ways to fix this: 1. Do an iisreset (temporary fix) 2. Install this hotfix http://support.microsoft.co... (permanent fix) The hotfix should also fix the following events in the logs that would not go away for anything - Event ID 6398 ...
I had to make our site work in SSL mode and ONLY SSL mode. I also had to allow url's that pointed to our site before I forced it work in secure mode. I also had to allow for all the other domain names that we own work in SSL mode. I thought I would share how to get this done right so no matter what it works. Create an HTML page named 403-4.htm. Put it in a folder outside your web site’s root folder. Give the page your company’s logo and some nice looking text that states; The page must be viewed ...
I’ve always wished I could customize the skin on my blog at GeeksWithBlogs.Net. GeeksWithBlogs is built on SubText, and of course its just a skin, but since GWB is hosting my blog and I don’t have control over the skin files myself I am limited to what I can do with it. Well, today I finally did it, after some inspiration from John Resig (@jeresig) and his “Easy Retweet Button”. I added a “Tweet This!” button to the footer of each post. First, I modified the default styling of John’s retweet.js so ...
Having had my brush with SharePoint and its intricacies, and after learning that its original iteration was classic ASP flavored with Javascript and XML, I became intrigued about re-usable web components and how I could go about creating my own. I decided not to bother with .NET, as this was just a little experiment designed to get me into coding-for-fun once again. I decided to go classic ASP with a sprinkling of Javascript and XML and a whole lot of XSLT. My project was a webpart-enabled web portal ...
In this post, I will explain you how can we show Loading message in asp.net ajax without using Update Progress. Now some one may asked, why do I want to skip Update Progress ? Well, there can be several reasons for this, fist of all you have to work on every single page, and on every update panel to get the update progress working. There are basically three methods of meeting this requirement. Using Master Pages : A very smart way, but not all of us are using them .. right ? Extending Page Class ...