Tag | Javascript Posts

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 ...
Former President of India APJ Abdul Kalam at Wharton India Economic forum , Philadelphia, United States March 22,2008) Question: Could you give an example, from your own experience, of how leaders should manage failure? Kalam: Let me tell you about my experience. In 1973 I became the project director of India's satellite launch vehicle program, commonly called the SLV-3. Our goal was to put India's "Rohini" satellite into orbit by 1980. I was given funds and human resources -- but was told clearly ...
We are using asp.net Menu control and wanted to have some delay before sub-menu popup to avoid annoying popup, if user just move mouse through menu area. After some search on Google I found the solution submitted by yupinggang on the thread delaying the menu control. I've slightly modified it( put in a separate JS file,call initMenuMouseHoverInterceptors just in the same file,added handling of the case if no menu on the page etc.) Another possible solution- override PreRender in derived from Menu ...
Title: Developing with AJAX in SharePoint Register: http://www.clicktoattend.co... Must Register for Prizes ) Sponsor: Levi, Ray & Shoup, Inc. - Food Provider for the June Meeting Presented: Becky Isserman Date: Thursday, June 5th (Each meeting will be on the 1st Thursday of the month) Time: Food at 5:30pm; Presentation from 6:00pm - 7:00pm Location: Centriq Foss Training 8700 State Line Road, Suite 200 Leawood, KS 66206 Phone: 913-322-7000 Description: AJAX (Asynchronous JavaScript ...
This is problematic with ASP.NET AJAX. The main Script Components are NOT sent to the client when in :Legacy” mode. This is “By design” in ASP.NET AJAX, although it is a clear limitation!! I’m investigating the problem for other solutions and will be sending an update soon. Thank you, Iman Halawany, for making me note this. I’ve been working on WCF services and ASP.NET MVC stuff lately than normal webforms, so, didn’t realize this obvious showstopper. To all my readers, I owe you a BIG apology. The ...
If you have ever thought that the famous if(Page_ClientValidate("val... {/*JS Code*/} and myValidator.ValidationGroup = "validationGroup"; are sure not enough client side capabilities in ASP.NET validators, you are right. The list of client side API for ASP.NET Validators can be found on this MSDN page "ASP.NET Validation in Depth": http://msdn.microsoft.com/e... Look for subtitle: "Client-Side APIs". Thanks Simone Chiaretta for mentioning ...
One of the greatest features of WCF 3.5 is direct accessibility of WCF Service on ASP.Net page. Before that there is no direct way to call WCF 3.0 Service on ASP.Net page and you have to create a communication bridge in the form of Web service. Here you find on my blogs how to call AJAX-Enable WCF service from ASP.Net page. Here is my interface called IoperationService and its implementation class OperationService. namespace AJAXEnableServices { [ServiceContract(Namespace = "AJAXServices")] public ...
If you have the requirement to make your website accessible, unless you were given that requirement before you began the project, you will probably be converting an existing site. This was my task. After a lot of research, some work with blind users, and working with JAWS myself, here are the recommendations that I am presenting to our development team to make our ASP.NET 2.0 application more accessible. In another post, I will give some more detail about some of the specific solutions we developed. ...
Here is the meeting information: Title: Developing with AJAX in SharePoint Register: http://www.clicktoattend.co... Must Register for Prizes ) Sponsor: Levi, Ray & Shoup, Inc. - Food Provider for the June Meeting Presented: Becky Isserman Date: Thursday, June 5th (Each meeting will be on the 1st Thursday of the month) Time: Food at 5:30pm; Presentation from 6:00pm - 7:00pm Location: Centriq Foss Training 8700 State Line Road, Suite 200 Leawood, KS 66206 Phone: 913-322-7000 Description: ...
Lot geeks facing this problem, how to enable intellisence support in Visual Studio 2008 of ASP.NET AJAX client-script. Actually by default only JavaScript native intellisence support is available in Visual Studio 2008. Follow the Following steps to enable ASP.Net AJAX Client-script intellisence. Steps 1. Create Web Project in Visual Studio 2008. 2. Add Script Manager Control from toolbar on Default.aspx page. 3. Goto Script View and write the following function ...
Property Naming Guidelines recommends to consider creating a property with the same name as its underlying type. For example, if you declare a property named Color, the type of the property should likewise be Color. Enumeration Type Naming Guidelines recommends do not use an Enum suffix on Enum type names. I found this recommendation conflicting if I want to declare Enum within class and have a property of the type of this enum. I've tried to create something like the following:. public class Control ...
I am reading about Windows Workflow and have a question: If I created a workflow with a few activities (While,If etc) and want to convert it to custom composite activity with ability to insert new activities inside blocks, how can I do it? Analogy in ASP.NET is strightforward- just a few steps(see How to: Convert Web Forms Pages into ASP.NET User Controls ) . Is something similar available for WF? Related links how to write Custom activities: Creating a Custom Composite Activity – Morgan Skinner's ...
Something that stumped me a few years ago was trying to code a Javascript window (i.e. alert, confirm) from the code behind. I’ve listed some code below on how I did it in VS2005 using VB. For VS2003 the idea is the same but use Page in place of ClientScript and remove the GetType(String) parameter. One thing you do lose when doing it this way is any execution control that goes along with let’s say a confirm window. The window will appear but the rest of the code in the code behind sub or void will ...
In 2004 I discovered Visual Studio 2003 and the WebMatrix tool. Having avoided Classic ASP in the days of VB6, I could not wait to sink my fingers into the new tool. I found the IDE to be quite daunting at first but quickly brought myself to speed. At about the same time, Photoshop also crashed landed into my newbie life. I found myself stuck between development and design. Eventually, I went for the whole deal, I wanted my apps to look slick and polished, so I hit the web and stuffed my 40Gig HD ...
Below is a helper function to insert javascript to Navigate To Named Anchor Page should have anchor with the passed name <a name="anchorName"></a... // from http://www.webdeveloper.com... ///<summary>/// ///</summary> ///<param name="page"></param> ///<param name="anchorName"></p... ///<remarks>Page should have anchor with the passed name <a name="anchorName"></a... /// If there are more than one call ...
I came across a situation where another web application is calling a web application I have. The calling application is limited to the javascript that can be used to pass information to my application. So the parameters are passed through a querystring GET. The resulting web page from my application appear as a new web page tab in IE7. The desired result is not to have the new window appearing. I tried to use window.close(); in the body onload event but it prompts the use to confirm the closing. ...
*Moved to: Post Event: MSDN Roadshow (Glasgow)Spent the day yesterday at the MSDN Roadshow in Glasgow. It was a very good day that provided me a deeper insight into the ADO.NET Entity Framework, Data Services and Silverlight 2 (Which I like even though I did not like Silverlight 1... no JavaScript). The last session on Team Suit was a little marred by Neil Kidd being rather ill...get well soon Neil...but I followed it anyway, but I do think that other attendees became lost fairly quickly...we all ...
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs. The service pack of Visual Studio 2008 has really interesting stuff. Highlights I'm interested in are performance improvements in HTML editor, collection of JavaScript intellisense hotfixes plus new ones enabling better JavaScript intellisense for libraries like jQuery, JavaScript Code Formatting, ASP.NET Routing engine (the one used in ASP.NET MVC, it is actually developed as separate component), ...
I just finished my presentation about consuming Google Maps at BarCampKC. Thanks to everybody who attended. We talked about the three different ways of using Google Maps in your applications or websites. Static Map Image API My Maps JavaScript API The slideshow is available via Google Docs or dowload the PPT The code is available for download here, make sure you change your api key ...
I am going to speak about some of the AJAX Page Loading User Controls that I have created. I am going to talk about how a developer would go about converting the SharePoint Application to work with AJAX. Here is my bio and Abstract: Abstract: AJAX (Asynchronous JavaScript and XML) allows developers to create loading screens easily without a great deal of development in SharePoint 2007. In this session we will walk through how to create various page load events using the AJAX toolkit, Web User Controls, ...
I recently ran into an interesting challenge in QTP. I am scripting out a page that uses Javascript to make some controls invisible based on values selected in other controls. For example, if Field1 is selected to specific value, javascript runs something like this: document.getElementById("Fi... = "none" Or document.get\ElementById("F... Interestingly, QTP doesn't recognize that anything has changed; it sees the visible/non-visible objects as completely ...
Peter Matuchniak on a PodCast, Tamir on making Silverlight 'Air', Page Brooks on Disabling JS debugging, John Stockton on Textblock Mouse Event Issues, chrishayuk deeper in Isolated Storate, and Dan Wahlin/Spike Xavier with the Silverlight Song! From SilverlightCream.com: Podcast about Live Streaming Media System Peter Matuchniak from Technicolor shows off a Live Streaming Media System he's been single-handedly working on... in an interview from Infragistics. Peter's system is awesome... lots of ...