Tag | Javascript Posts

For some reason some controls/tags within ASP.NET do not always get rendered/passed to the client. This has happened to me on a number of occasions. It seems limited to <style> and <script> tags - but happens for both raw HTML (within the aspx designer) and dynamically created tags (eg using new HtmlGenericControl("style")... This is happening to controls/tags within AJAX updatepanels within, webforms and usercontrols. Sometimes I can work around this by simply placing these controls/tags ...
I found a new video showing AJAX (Ajax.NET Professional), JavaScript and jQuery. On the Web server they are using ASP.NET. (Note: you need Silverlight for the video player) Download video as WMV ...
Martin Mihaylov on the MultiscaleImage control, Tamir Khason on Visual Tree and thickness, Mike Snow on SL and JS, Donavon West on DeepZoom Obama, Video Player by David, Jesse Liberty's Styles and Templates Tutorial is Up, Frank LaVigne on Swift3D and SL, and Andy Beaulieu resolving Default.aspx being executed. From SilverlightCream.com: Tip: Maximal and minimal zoom level in the MultiscaleImage control Martin Mihaylov resolves a problem I've noticed in DZ apps ... that you either zoom the image ...
What we need in ASP.NET is a change-tracking control. Whenever we modify elements on a form, it would be a good idea to display a popup for user confirmation before navigating away from the page. Right now, I've got some pretty ugly Javascript doing this.

The next version of the AJAX Control Toolkit would really kick a** if it had this control. It could also include bug fixes for the 'focus' issue with the RoundedControlExtender and TextBoxWatermarkExtender.
The following javascript error occurs when trying to use the Telerik controls and you haven't updated your ASP.NET (2.0) web.config file correctly. Error: 'Telerik' is undefined To fix make sure the following lines are within the <system.web> section of your web.config file: <httpHandlers> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.S... System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad36... validate="false" ...
A search comparing the StringCollection to the ArrayList may give you articles that say "the ArrayList works better than the StringCollection" but what you need to know is that a StringCollection is simply extra methods over an ArrayList - there is an actual ArrayList included as a private member within the StringCollection class and it caters to storage needs of StringCollection. In other words, the StringCollection is just a disguised ArrayList! You don't really have to decide between using an ...
I am by no means a search guru, but at work they have tasked me with creating custom search scopes. What they want is the ability to search a bunch of document libraries of a specific name in bunch of office sites. John Ferringer gave me this awesome link: http://blogs.microsoft.co.i... I figured that I could somehow use it to create custom scopes for the document libraries. I started playing around and ...
I've been running a couple of tests on the ArrayList and the StringCollection in .NET 3.5 to determine if the ArrayList still performs better than the StringCollection for insertions. There are a couple of articles on it, this one from 2004 being the one that also presents source code for a simple test that they've performed: http://weblogs.asp.net/just... Initially, I went with a normal-looking test but without creating the string table and that skewed the results. ...
UPDATE: The component controller was removed from the MVC framework before the RTM release. For an updated version of this post, click here. At some point when creating a web app, you're going to want some reusable UI components. This might be because you want the same visual UI snippet repeated more than once on a single page or it might be because you want to use the same component on multiple pages. In a traditional ASP.NET web app, typically you would use a User Control for this type of thing. ...
Due to much frustration and lost time, I'll try to summarize in this post the "naming" conventions to be used when defining and/or referencing IDs (some of which are, in fact, GUIDs, and others contain GUIDs) in Sharepoint 2007. If you're thinking "what the heck?! aren't GUIDs always the same format?!" you're half-right: they should be, but not in sharepoint. So if you're a newbie to sharepoint 2007 (or wss 3.0) like me, the following tips regarding how element id's should be written might save you ...
For some reasons, it took me a few google search attempts to find the following tools: MSDN includes Workflow Monitor Sample -Windows executable to view details of tracked workflows. When downloaded, copy EXE to your bin directory when custom workflow DLLs are located. Ensure that tracking database doesn't have too many instances, to avoid timeouts. Jon Flanders put together the ASP.NET implementation of the Workflow Monitor SDK sample. MSDN Tracking Samples mostly described how to store tracking ...
Visual Studio 2005 SP1 added in a couple of _designer:wfdid attributes into some of my ASP.NET tags and they prevent the project from compiling. Apparently, there's a bug somewhere that didn't get fixed with the service pack.

Removing the attribute fixed the compilation error.
Since the downtime at GWB, I've been cooking up content that has been going onto my BlogSpot mirror and I've been too lazy to paste them all here one-at-a-time so here are the links: Model View Controller (MVC) Design Pattern http://knitinr.blogspot.com... Yet Another Twitter-Cline: Identi.ca launched http://knitinr.blogspot.com... Error Pages: ReddIt and Acromedia http://knitinr.blogspot.com... ...
Michael Washington on prompting for install, Peter McGrattan updated his Stock List Demo, Joel Neubeck on Timeline Markers, Alex Knight DeepZooming, David Anson on LayoutTransoform, and Tim Heuer on Silverlight.js & FF3. Christopher Bennage has an interesting WPF article on TemplateBinding that if not directly related to SL, it's close. A couple days ago I referenced the Silverlight 2 RefCard from DZone, and since then have gotten a copy of the PDF file... this is very nicely done... it has an ...
While GeeksWithBlogs was down, I was able to continue blogging thanks to the blog hosting service provided by Blogger.com for my blog mirror. I posted an article there comparing jQuery Corner with the AJAX Control Toolkit, which you can read about at:
http://knitinr.blogspot.com/2008/07/rounded-corners-comparing-jquery-with.html
We've all done it. More often than we'd like to admit. Yesterday I spent half a day working on an issue where the end result turned out to be SO SIMPLE as to make me ashamed to call myself a developer. There was the feeling as I slogged through the problem that "This shouldn't be this difficult". When the problem resolved with 4 simple lines of code, my giddiness with solving the problem was tempered by my feeling like a complete idiot for having spent half a day producing those four lines. Hearing ...
I just Plurked a little while ago. No, I'm not ill - Plurking is the act of posting a message on Plurk (weird name, I know!). It seems to be like Twittering, except that it doesn't have the mobile (maybe they do and I just haven't found it yet?) or IM elements to it - you have to be at a web browser to use it. Their timeline interface is quite nice and is their unique selling point. I wonder how long it'll keep them ahead though - there are so many browser add-ons, desktop applications and web front-ends ...
Have I got a great resource for all you Plurkers! Plurkable.com has started a weekly Plurkcast to show off the people and events of the Plurkiverse. I am going to be joining the Plurkable team and Mike Templeton on this afternoon's show. I know it is short notice, but come join us anyway. Details: July 2nd PlurkCAST @ 4:00 PM US Central Time Live Chat Room visit the official TalkSHOE PlurkCAST page Call In Phone Number: (724) 444-7444 Call ID: 21651 Hosts: Eric Odom of Plurkable.com and KDFrawg of ...
iStockphoto has a cute error page (though not as cute as Twitter's!). Check it out:

You've probably read my earlier post about setting focus on a form element. All went well. Then, things went to the U.I. guy who went crazy with the TextBoxWatermarkExtender control and now none of your forms have focus on a form element any more :-( I guess the developers of the TextBoxWatermarkExtender didn't think of all the possible ways in which people would use the control - some people actually do want to keep the focus on a control to help their keyboard-loving users. Anyway, I set out to ...
I recently read "Microsoft Silverlight to back Ruby, Python in browser" at http://www.infoworld.com/ar... I'm very curious to see whether Ruby and Python, as alternatives to JavaScript, will have a serious impact in the ISV community. I definitely think the capabilities extended by these two additions will definitely feed the community and drive for the addition of Perl and PHP support within Silverlight ...
This Sunday, I went to dotNETwork 5th gathering to see how interesting it would be to have some Silverlight fun followed by SOA and Patterns and Anti-Patterns goodness. It was a really fun day, and here comes its writing as I saw it. Starting Out (No tech – you can skip) The day started by meeting Mohamed Samy (the SOA guy, and my friend!) at 10 AM, getting some sandwiches (and coffee for me as I didn’t have sleep the night before), then, going to the buses place in El-Sekka club (as neither of us ...
Allowing keyboard navigation and improving the User Experience for users is usually a concern for web developers. Some use Flash frontends while others go the AJAX route but in the end it's the simple things that matter, such as setting the focus to a input element on a form. Setting the focus on an ASP.NET control is quite simple in ASP.NET and there are at least half a dozen ways to do it. Through server-side ASP.NET code, you can: 1. Set the DefaultFocus property of the form (you can also do this ...
There are two things about Twitter that have been giving it a lot of press lately - lots of downtime and really cool images on their error pages. The one thing that keeps them from getting bad press resulting from downtime is the graphic design team. As much as I like their graphics, I really hope this doesn't become a trend - replacing support engineers and developers with graphic designers. In case you haven't caught on to the Twitter wave yet, you can see the error pages here ...
According to the CSS Compatibility report for Microsoft Internet Explorer browser version 5 to 8 published here, Microsoft doesn't intend to support the border-radius attribute of CSS 3 anytime soon - both Internet Explorer 8 Beta 1 and Internet Explorer 8 RTM will not have support for the property that can save us all from having to download tiny images of curves (not *that* kind of curves!) to view rounded borders. Firefox supports the border radius, although it needs the "-moz-" prefix ...
jQuery is a JavaScript library to interact with HTML, create simple animation and add AJAX capabilities. It works across browsers (don't most things do today?), and lets you do more with less. If you're in the web design & development work, you would have heard about it unless you've been living under a rock, figuratively speaking. jQuery was released in January 2006 and is licensed under the GNU GPL and MIT license. In other words, jQuery is open source and available for free! The library itself ...
There's a really cool way to extend an ASP.NET button's functionality in JavaScript and that's by getting ASP.NET to render the button as an Input Button control instead of an Input Submit control - this is done by setting the UseSubmitBehavior property to False. You can call GetPostBackEventReference to get the Javascript to call the onClick event handler for the button if you need it - this is appended to the OnClientClick handler automatically. A practical usage scenario is when you want to use ...
The latest release of the MVC framework provides the JsonResult for Controller actions. I was surprised that I did not find a weatlh of examples for usage so I figured it shouldn't be too hard to get a decent example going. It turns out, it was even easier than I anticipated. I wanted to create an example where I would invoke an AJAX call to dynamically populate a dropdown list. jQuery has recently received a huge surge of interest of the ASP.NET MVC community so I've been getting up to speed on ...
In Visual Studio 2008, the IDE now adds a content placeholder in the header of the master page document by default. In Visual Studio 2005, the IDE would only add the content placeholder within the form tag in the document body and would display the squiggly underline if you tried to add one into the header although it would still compile and run perfectly well ...
The ASP.NET Wiki is down today. It just displays a big Service Unavailable message with an HTTP Error 503. If you've been running 32-bit and 64-bit assemblies on IIS and get the Service Unavailable 503 message on your server, David Wang has a blog entry about it here ...
Hi-ho! I have just found a service to translate English into scurvy pirate lin'o. It be at http://postlikeapirate.com . It can message directly to twittArrr, PirateSpace or email too. Errr... what I meant to say is: Hi! I have just found a service to translate English into Pirate lingo. It is at http://postlikeapirate.com . It can post directly to twitter, myspace or email too ...
If you've been targeting your applications at MS Internet Explorer, you've probably been getting requests to support Firefore 3 since it's got over 8 million downloads (which hopefully translates into 8 million users) worldwide. When starting off with web development for Firefox 3, you'll probably want to get the Firebug and Web Developer add-ons. They have a different feature set than the Internet Explorer Web Development toolbar so you'll probably have moments of doh-I-had-it-in-IE or cool!-IE-didnt-have-this. ...
I have started using Visual Studio Team System (VSTS) 2008, recently. Previously I worked with Visual Studio 2005. As a matter of fact I had to use lots of external tools to perform and speedup my development process. However, while working with VSTS 2008, it's very exciting for me that, I found replacements for most of the external tools there. Here are 10 tools which I left after using VSTS 2008: 1. Database Schema Compare External tool: Redgate SQL Compare VSTS 2008 tool: Menu -> Data -> ...
If you're a fan of symbolic links in *nix, you'll probably be excited to know that we've got them in the Windows world too (and they're called NTFS junction points). The reason most people haven't heard of them yet is because the Windows installation doesn't include the tools to work with them - you have to acquire them either as a Resource Kit or by downloading SysInternals Junction. For most people, Windows shortcuts are good enough since you can just click on them and they mimic the behavior of ...
The most popular robot that made it on another planet was the Mars Pathfinder. It's pretty much something that you would see at a science fair with a few modifications to meet environmental constraints. The Mars Pathfinder used the VxWorks Operating System. The hardware was a IBM 6000 RISC processor with 128MB RAM. The software was written in C and Assembly Language using the XLC compiler from IBM. You can get more information about the physical characteristics of the Mars Pathfinder at: http://en.wikipedia.org/wik... ...
Just in case you didn't know, Visual Studio has Edit-and-Continue support for Web Application projects too. Go to the web application project properties, click the Web tab and check the Enable Edit and Continue checkbox. Have you ever wondered why Microsoft doesn't leave the Edit-and-Continue option for Web Application Projects enabled by default ...
I was thinking about the level of programming abilities lately, as we are starting to interview for an open position. I thought, "Wouldn't it be nice if programmers came in version numbers like software?" This would make it easy to say, I need a version 3 programmer with abilities in languages A, B and C. It's so difficult to say Mid-Level developer, because mid-level is so subjective. Mid between WHO? So here are my thoughts of what the versions for a web programmer might be: Alpha: Has read some ...
Now that I have the solution, it was pretty simple. Here is an example of how to blick an image using Javascript. The image will either be hidden or displayed becase upon the value passed to the function. I'm posting this for reference because I couldn't find any examples of how to blink an image and then leave it either hidden or visible after blinking. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... <html xmlns="http://www.w3.org/19... ...
This piece of code is related to a previous post of JavaScript Window from Code Behind. The idea is the same; I needed to get some JavaScript to run from the code behind. For this example it was to open a new window. The real difference with this and the previous post is using ScriptManager instead of ClientScript. VB.Net Code Dim strScript As String = "<script language='javascript'>" strScript += "window.open('URL Goes Here');" strScript += "</script>" ScriptManager.RegisterStart... ...
I found an interesting article about Clustering in an virtual Environment. Hopefully i could test it at the weekend.

http://blog.opsan.com/archive/2004/11/23/181.aspx
Firefox 3 has had over 8 million downloads. You can get the statistics by geographic location on the Firefox site at:
http://www.spreadfirefox.com/en-US/worldrecord/
Some users on the network have reported problems with Remote Desktop after installing Windows XP Service Pack 3. I couldn't get too many details since I'm in the software development division and the problems are reported to the technical support division and a rollback was already performed for the affected users. My Remote Desktop seems to be working just fine. In fact, I've also got the username and saved credentials information from the SP3 version as seen in this screenshot: Has anyone else ...
I'm banging my head on a wall here, and am looking for some insight. I have an Infragistics UltraWebGrid. It allows users to add Widget's to it (well, it doesn't, but we're going with a Widget metaphor here). Each row contains a Widget ID value and a Widget Type ID value. However, no two rows can have the same combination of Widget ID and Widget Type ID...they all must be unique. So I'm using Javascript and the Infragistics client library to try and get this working. Below is the function... You'll ...
Introduction There are many situations where we need to identify if partial rendering is supported in a page, especially when a control uses javascript, to get the control work in partial rendering mode, the script needs to be registered using a ScriptManager Type instead. A classic example will be Validators. The ASP.NET Page class exposes the Validators property, which is a list of all the IValidator types on the page. A page keeps track of its validators, and registers a javascript array of validators ...
I am going to miss the 2nd Silverlight/WCF User Group meeting today at noon over at Microsoft! =( Is anyone going? Can you give me a follow up on number of people,how the session went, that sort of thing? \ By the way, New Horizons of MN is going to be offering Silverlight training now! Check out our website for complete details, including an outline and dates: http://www.nhmn.com/Courses... Take note, we have a couple of 50% off sessions coming up, so take advantage ...
Minneapolis InDesign User Group Twin Cities InDesign User Group Meeting Wed, Jun 25, 2008, 7:00 PM Minneapolis College of Art & Design (MCAD) 2501 Stevens Ave. Minneapolis, MN 55404 United States of America Directions to this event Invite a friend to this event. Registration http://www.indesignusergrou... Meeting details Acrobat 9 has just been announced by Adobe, and we have Noha Edell from Adobe coming to show us what's new! All InDesign users need to understand ...
A good portion of this week was spent recovering some documents that were deleted by a rogue console application (most likely my fault). I wrote a Console Application to combine some document libraries and I spent a good portion of a week testing it. However, I did not really think of enough scenarios, because it obviously did not move the documents properly. Some libraries were moved and others were not. At any rate I practiced my SQL Restoration skills and wrote another two console applications ...
14 posts in the last 24 hours! -- Silverlight Girl with "Bumble Beegger", Piotr Puszkiewicz on solving the FF3 problem, Ivan Dragoev Animating ListBox items, Richard Griffin with more B1-> B2 goodness, David Anson with XPS Viewer B2, Jeff Paries with B2 Toys for Tweets, Lee with Drag/Drop Grid Rows, Florian Krüsch updated Triangle Control, Jeff Wilcox on UnitTest With SL2B2, Corey Schuman on NBC Olympics Viewer, and Dave Relyea on prettying up the Slider. I've added a couple new finds as bloggers. ...
I needed to get TFS 2008 (both the server alerts and TFS web access) to send emails over a secure SMTP relay. "Easy", I thought. I remembered setting up SMTP username/password during the web access setup, at least, so I'll verify settings, and then it should just work. I couldn't be more wrong. Through peeling back the covers and discovery, I found myself saddened at the SMTP implementation in TFS. I can only hope that this is changed in a future service pack for TFS 2008, or at the very least, Rosario. ...
Mike Eaton, a member of my twitter tribe, is trying to get to know his tweeps better. As part of that, he asks a few questions to get a better understanding of our background. I figured that rather than answer in his comments, I'll post it here instead. Then, I got tagged by Jeff Brand... So the pressure was on!! How old were you when you started programming? Ten years old the first time. 23 the second time. How did you get started in programming? My parents bought a Commodore Vic 20 (they couldn't ...