Tag | Javascript Posts

I decided to completely redesign my website www.galasoft.ch (yes, it's about time, I know). For this process, I decided to inspire myself (loosely) from my good friend Robby Ingebretsen's site, which is both simple and beautiful. Read the rest of this entry » ...
Aha! New blog... I think I will start by posting the solution (or, rather, a solution), to a problem which has been troubling me for the best part of a day. To replicate the problem, simply download and run the AJAX Control Toolkit sample website, and navigate to the Reorder List sample page using IE7. You can drag and drop the list items, and all works as expected. Now go to the site's master page, and comment out the HTML DocType declaration at the top of the template markup, and run the ReorderList ...
GridViews and SharePoint Programming for SharePoint poses some challenges to the .NET developer. Of course first you should be familiar with .NET, I will be using c# in my examples here. One of the main development paths for SharePoint is to create modular functionality in Web Parts. Web Parts are great little chunks of a web page that you can cram anything you can think of into; however you won’t have the nice visual tools you are used to working with. For a simple “Hello World” type application ...
So, I've been on a mission, to show that we can port our mobile portal application suite over to iPhone. We've long been using a Windows Mobile delivered portal that takes Sharepoint, Dynamics NAV and a host of other line of business system (LOB) and delivers them to our mobile workforce. The core of our business at Anglia Business Solutions (www.angliabs.com) is to allow our consultant's, sale staff and support engineers to work remotely. For any service based company our lifeblood is accurate time ...
So, I have been writing here for over a month, and I have never really introduced myself. I think it's about time that you guys get to know a bit about me. Well, I am Stephanie Grima and I come from a little island called Malta. It's right in the middle of the Mediterranean Sea, in Europe of course. I doubt that many of you are familiar with Malta but, it's a really sunny island especially in summer. Tourists go crazy over our beaches, good food, history and nightlife. Imagine, we have a whole town ...
I tried to dial in to the teleconference, but kept getting an invalid number. <Update:> Nathan Brouwer was able to get into the press conference and wrote up a nice transcript as it was going. He has posted that on his blog here: Silverlight 2 Final (RTW) Available ... thanks for the email and note-taking, Nathan! </Update> I refreshed the Press Release page at 9:00, and there it was! It will be available on October 14, and current Silverlight users will be updated. Here is a bit of information ...
Not very amazing or technical but thought I'd post a bit about it anyways. Anyone that gets asked how to show a repeating decimal in Word, for example representing the fraction 1/3 in decimal is 1.33333333 with 3 repeating to infinity. Normally there would be a line above the last 3 (the line is called a vinculum). Now to show the 3 with a line above it in Microsoft Word you need to use a field code that superimposes one character over the other. Press Ctrl-F9 to insert the field delimiters then ...
I was forwarded a link to a CIO.com article where they talk about how Microsoft and CompTIA are employing tools to analyze your behaviours when writing a certification test to determine if you have used any braindumps or illegal test preperation material. http://www.cio.com/article/... Interesting to see so many negative comments at the end of the article. I'd like to hear if someone passed an exam and was then incorrectly accused of cheating. ...
We got our first link love from the Microsoft Governance Resource Center today. 

Check out the link to the SharePoint Pod Show on there and thanks again to Rob Bogue for doing a great interview on SharePoint Governance!
If you use Visual Studio 2005 or later and you don't use snippets, you are missing out on yet another time saving feature. Snippets effectively allow you to drive your programming experience even further via Intellisense and keyword combinations, making repetitive tasks such as defining properties, encrypting and decrypting information, and connecting to data as easy as a few keystrokes. Yesterday I was thinking about how much snippets make sense from the perspective of programming. I remember when ...
It’s time to start talking about the next SMB in Minneapolis/St. Paul! We’re going to be meeting at the Deluxe corporate headquarters in Shoreview, MN on Oct. 31st. What better way to wrap up the month of October and start your Halloween weekend than to meet up with your local social media peeps? How about how about a chance to talk social media with the bestselling author of the hit book The New Rules of Marketing & PR: David Meerman Scott? In addition we’ll have a chance to talk with startup ...
According to Joe Brinkman from DNN Corp, the new version of DotNetNuke will incorporate jQuery. Microsoft has already announced that jQuery will be in the next version of Visual Studio. The new version of DNN will include widgets which are JavaScript widgets. This is new to the framework and won't be available right away according to Joe. Technorati Tags: DotNetNuke, jQuery ...
If you're using AJAX UpdateProgress control, you may find it difficuilt to set the best position where you should put it on the page, because user will not see it if he scrolls down (or up) from it. Here is a simple solution which will make your UpdateProgress more user-friendly, because it will set the position on the screen according to user's movement of the mouse. And you will prevent user to click on any button until the postback finishes execution. So, you killed two flies with one punch! You ...
I need to give a shout out to the SharePoint Pod Show, because it is another resource you guys could utilize aside from blogs. It is an entire podcast dedicated to SharePoint. Here is the URL: http://www.sharepointpodsho... So far they have an interview with Eric Shupps, one with Robert Bogue, and an old interview with Patrick Tisseghem. They cover such topics as governance, design for performance, and enterprise search. I think that Rob Foster has a really good speaking presence and for anyone ...
I came across JQuery some time back and i can say Wow !! It is a Javascript full on Library. Its great to here that microsoft will be shipping with ASP.NET MVC and will be coming with Visual Studio later you can read more here at Scott's site And as i understood you can use it together with Ajax Control Toolkit etc.. Sweet and Enjoy ...
Boyan Mihaylov on SL/Amazon, David Hyde with SL Stock Portfolio, Chris Anderson with SL LOB app, Jesse Liberty on Content Presenter and Isolated Storage, Shawn Burke on ExpandoHeaderControl, Brad Abrams on CSLA and SL, Matthias Shapiro on ListView Styles, Manish Dalal on Combobox in DataGrid, Jeff Wilcox on SL & JS, David Anson on LayoutTransform, Terence Tsang with a simple text effect, and Lee with Combobox in DataGrid The SilverlightShow Write and Win Contest is ready for your votes! Three ...
The news took the community by surprise and the reactions are overwhelmingly positive: Microsoft is going to ship jQuery with the ASP.NET MVC framework (very soon) and with Visual Studio (in a near future). For more details, ScottGu and Scott Hanselman are talking about that in a very complete way. Read the rest of this entry » ...
As you may or may not be aware, I am a moderator on the Bytes Technology Forums, overseeing classic ASP forums but kicking around other areas like HTML/CSS, JavaScript/AJAX, SQL Server, Access, and .NET forums - basically a bit of a jack-of-all trades. Recently the mod team has been discussing a desktop assistant for drafting and composing posts from a background app that sits dormant in your status bar until you decide you want to use it. My online colleague insertAlias (aka Curtis) has just finished ...
What this new blog is about Tech - I'm going to blog about technical stuff that interests / excites / confuses / frustrates me. Meta-tech - I'm going to blog about over-arching concepts and issues related to software development. Philosophical, architectural, social... I hope this blog will have an interesting slant because I started a new career as a software developer at the age of 33. It’s been a roller coaster ride over the last 2 years (so now you know my age) and I’ve had a chance to reflect ...
Website: http://cvnug.wi-ineta.org Date: October 9 Location: Chippewa Valley Technical College - Room 176 Presentation Information: Mike Benkovich from Microsoft will show us how Visual Studio 2008 enables developers and IT operators to dramatically reduce the amount of time, effort and code required to develop and deploy real-world Web applications. ASP.NET 3.5, Visual Studio 2008 and IIS 7 each provide much improved administration and management support, on top of dramatically improved performance. ...
A couple people in the community have heard me complain a lot about my best friend's wedding. I was hoping I could get a get out of jail free card by not being in the wedding, but several months ago I got sucked in with everyone else. I have known Leah for about 8 years. We went to high school together, but did not start hanging out until my senior prom (her junior prom). That was the first time I stayed at her house. Little did I know it was the beginning of a very long and successful friendship. ...
The jQuery Javascript library has gotten a significant amount of attention from Microsoft developers this year in large part to its nice fit with the new ASP.NET MVC framework. I myself was totally new to jQuery and I started using it with MVC because I wanted to see what the big deal was. Sure enough, I became a true believer like many others. And I found myself suddenly having "JavaScript envy" because I couldn't do all the cool jQuery stuff in traditional ASP.NET (i.e., non-MVC) web applications. ...
I can describe my feeling of mgration from TFS 2005 to TFS 2008 in one word-NIGHTMARE. Summary of recommendations. 1.Create combined TFS 2008+SP1 setup as described in http://www.woodwardweb.com/... and in the latest Team Foundation Installation Guide 2. Read Team Foundation Installation Guide ,Upgrade TFS 2005 to 2008 , Tips for upgrading from TFS2005 to TFS2008 3. If you are using fully-qualified domain names (FQDN, e.g., tfsserver.mycompany.com) , replace the FQDN with NetBios ...
Hi guys, Well, the portfolio page has changed a bit! I've added this really cool Javascript effect known as FancyZoom, and extended to work with Prototype and Scriptaculous. As an aside, DotNetNuke has native compatibility with two Javascript/AJAX frameworks - Project Atlas (or ASP.NET AJAX) and Prototype, but can't be made to work with any other frameworks like Mootools, jQuery and so on. Funky little way of saving space on the page with a nice UI effect. Only downside is no AJAX, but DNN works ...
A few days ago I posted a comparison of C# vs Ruby. So I thought what about adding some more populair programming languages to the graph. And what to we see below: c# 2.05 ruby 1.00 php 3.65 perl 0.75 java 7.65 The other languages (php, perl, java) has the same drops during the weekends as C#. Ruby on the other hand stays stable during the whole week. So can we say: That Ruby isn't very common language at 9-5 Mon-Fri jobs, so it more used by hobbiest then by professionals. Ruby programmers can't ...
Phillydotnet.org 3rd code camp for 2008 will be held at the DeVry University campus in Fort Washington, PA on Saturday, October 11 from 8:30-5:00. Please register on our web site.-->Detailed directions are on the DeVry web site. sold out. There will be another Code Camp in May.--> Lots of code, just say no to slides! 8 hours 50 sessions (8:30, 10:00, 12:30, 2:00, 3:30) 10 tracks including new IT Infrastructure and Enterprise 500 seats with tables (laptops welcome) Free breakfast, lunch, and afternoon ...
Since .NET 2.0 Asp.net webforms has protected the programmer from cross-site scripting by validating all input sent to the server. Unfortunately, this does not happen in Asp.net mvc. I tested my application by typing 'alert("xss");' surrounded by script tags in the first name textbox. The form saved successfully and I got a javascript alert box with the message "xss". In asp.net mvc it is the programmers responsibility to validate all input. Calling Request.ValidateInput() in a controller tells the ...
I recently battled brittleness of a test project I created to provide some demo data and charting for a customer. I would make a change to one section and then duplicate (yes, I said it) to the other demos. This went on for a couple of days due to me justifying that it was just a demo. I finally had had enough and questioned "Why am I doing this?" only to find that I had let fear of refactoring control me. I was shamed into admitting that I fell into the same trap that I chastise others about. So ...
While working with Visual Studio 2008, I would constantly get exceptions thrown at me while working with any ASP.NET AJAX page. I also had no Intellisense when working with JavaScript which was a pain. I found an issue to the problem from Josh Berke on his blog here. It seems that there is a conflict with using a fingerprint reader while you are working with AJAX (they are somewhat related, aren't they?). You have to open up your processes (ALT + CTRL + DEL) and kill DPAgent.exe. Doing this immediately ...
Thanks to everyone who came out to the Twin Cities Languages User Group meeting the other night to see my talk on HLSL. I promised I'd post the links to the powerpoint and the code. PowerPoint CODE NOTES: The Powerpoint is a version of an older one that I will hopefully update in the next few days, the link will stay the same though. Also, that code is the full code of the demo I wrote so if you're only looking for the code I presented at the group, focus your attention on Graphics.cpp and lightingshader.fx ...
Earlier this evening, I was working on another NINE Questions interview and the interviewee sent me two Flickr links of pictures to choose from. Unfortunately, Flickr had some sort of weird protection that prevented me from dragging, copy & pasting or saving the photo I needed. I kept getting this 1x1 pixel transparent image named spaceball.gif. I really needed this picture, and I had permission to use it from the interviewee, but she wasn't available at the time to just send me a copy, so I ...
The following snippet below will display the original Image size in new window when clicking on the image thumbnail using JavaScript.. JAVASCRIPT FUNCTION <script type="text/javascript" language="javascript"> function DisplayNewImageInWidnow() { var img = document.getElementById('&l... Image1.ClientID %>').src; html = "<HTML><HEAD>&l... + "</HEAD><BODY LEFTMARGIN=0 " + "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTE... + "<IMG ...
I decided to write this article because I always encounter this kind of problem in the ASPNET Forum frequently. So here's a simple (one way) solution on how to invoke the Button Click event when pressing the ENTER key in the TextBox control. ASPX Mark Up and JavaScript function <head> <title>Untitled Page</title> </style> <script type="text/javascript" language="javascript"> function controlEnter (obj, event) { var keyCode = event.keyCode ? event.keyCode : event.which ...
Well, like most, I downloaded Google Chrome and gave it a whirl. So far, I like it. There are things that bother me - but overall - I like it. Here are some of my likes: It is faster. It does seem to deal with JavaScript quite a bit faster than other browsers. Pages load faster than before for me. This is probably the biggest plus of the whole thing really. The look and feel of the application is more modern looking (again, from my perspective) and it provides more real estate for browsing by default ...
It's been a while since my last post.... So what have I been up to? Javascript - up to my eyeballs Silverlight - which will be really cool, in a couple more releases. v2-b2 is nice, but needs some oomph. Code reviews - a tech lead's life is all about telling other people why their code sucks Interviews - hiring good people is a full time job. Finding web developers with real Javascript/CSS/.Net knowledge is very difficult. Every bozo who writes a web page includes javascript/css on their resume, ...
I just posted an article, tutorial, and code on how to crop an image using asp.net and a javascript library. 

You can check it out here!

Tags: ASP.NET Image Crop, ASP.NET Photo Crop, .NET Image Crop
It's well known that JavaScript is similar to C++/C#, but doesn't required explicit declaration of the variables. However, it worth to read specification(e.g. http://jennifermadden.com/j... ) to understand subtle differences. I didn't know, that a variable implicitly declared within a function is a global variable. For example, function foo() { g= 17;//it's global, will be visible outside the function after the function will be executed var x = 17;//local, not visible outside ...
When it comes to programming time critical applications in Windows, life of a programmer can become much more easier if he/she knows a few tricks One has to understand that setting only the thread's priority does not help. It is the magic combination of the process's priority class and the thread's priority level that decided the final priority of the thread's execution. Below is a link to microsoft's detailed explanation on the above topic. http://msdn.microsoft.com/e... But ...
I have been monitoring the site www.x-tensive.com for a while, waiting to see the new release of DataObjects.NET because i have been looking for a very good ORM for .NET, something that would be better than ADO.NET Entity Framework and better than Developer Express XPO and better than CSLA by Rockford Lhotka. One of the main problems i found by using stored procedures (used by Lhotka) as part of the architecture is that they are very limited in the number of parameters they can take. Especially in ...
This functionality was added to TFS 2008, and you need the Power Tools to do it: http://msdn.microsoft.com/e... DestroyWITD Command Use the destroywitd command to destroy a work item type. Currently, work item types can only be deleted. Destroying a work item type means that work items of that type are physically deleted and cannot be restored ...
Google Chrome I downloaded Google Chrome on my Windows XP SP2 machine tonight and played around with it. Great First and foremost, I dont have to restart my computer after the installation, which is not the case with IE beta 8. Microsoft are you listening. This is 2008, I dont have to restart my computer for the install to complete. Docked elements like "find, download, etc.," they are awesome. if you want them as free floating, you can drag them out of their dock. Neat idea, (though not invented ...
It is a very nice browser.. is the feeling, I got after using it for an hour or so. So the first impression is good. But I can't write this blog post using it. So there is lot to be still done. For example it doesn't shows the RichEditBox toolbar as shown below over the Post Body entry box. Similarly it is unable to show XML content as XML and renders it as html (without tags). These just some examples, I am sure Google will incorporate all such features in coming releases. The things which I liked ...
My summer astronomy continues. Although a cold front and the remnants of Gustav are making it cloudy for the next few days, last night was pretty good, even from my backyard in the city. I spent about an hour watching the shadow of a Jovian moon traverse across the face of Jupiter. A moon will look like a star next to Jupiter until it crosses in front of it, whereas you can see the shadow on the face of Jupiter. According to this Javascript utility on Sky and Telescope's website (with a good article), ...
Ok, as a Web Developer I am interested in Google Chrome.  I really was having issues getting their download to work.  I finally got it to work in Firefox using this link:

http://dl.google.com/update2/installers/ChromeSetup.exe

Enjoy!
Normally I’d look at any new announcement from Google like a kid unwrapping a present on Christmas morning: they’re typically cool, and at worst good for 10 min of attention until I put it aside to focus on something else. But their announcement of Chrome made me want to pick up my iMac and throw it out the window. One of the biggest banes to a web developer’s existence has always been the plethora of browsers that we have to test our applications against. Keith Elder recently blogged about how CodeZone ...
Check out my new live search component to the right here -> I came across this on Heather Solomon's blog, thought it was cool so had a play and set one up for my blog. To start with get yourself over to http://search.live.com/site... select the advanced option. I think it only works if you have your blog on a custom domain like blog.steveclements.net as www.geekswithblogs.net/stev... doesn't work. I also created a live search macro for geekwithblogs.net and used and existing one for msdn ...
I was installing Search Server express 2008 on my WSS v3 server. Everything was looking good until i came across this ugly error when trying to delete a SSP from the Shared Services Admin from the Sharepoint Central Admin site An object in the SharePoint administrative framework, "SharedResourceProvider Name=SSP Parent=SPFarm Name=SharePoint_Config", could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. ...
Click here to see a Video version of this article If you have worked with URL Rewriting in ASP.NET, you would have figured out that it is pretty difficult to sustain since the ASP.NET Form tag's Action attribute cannot be overridden or manually set until you do some plumbing work. In simple terms, you couldnt do a form1.Action = "Your Friendly URL" even though with URL mapping, the URL users see in the browser seems to be friendly. What is the issue with the Action tag would be your question? Well, ...
I came across this posting on Ed Eliot's blog and had NO idea this existed but it made my life a lot easier. Full credit goes to him on this - the below is cut and pasted directly from his blog so I know where to find it in the future. The URL for this post on his blog is: http://www.ejeliot.com/blog/63 .box { background: #00f; /* all browsers including Mac IE */ *background: #f00; /* IE 7 and below */ _background: #f60; /* IE 6 and below */ padding: 7px; color: #fff;} I think it speaks for itself. ...
This post is a comment on JP's post on redability. JP asks what the community thinks about the readability of this piece of code: Run.the<wire_up_global_e... .then<initialize_the_con... .then<initialize_the_use... .then<initialize_the_ui_... .then<initialize_the_mai... .execute(); My first feelings: only JP writes like this ;-) After reading it with full attention, I realize it clearly ...