Tag | Javascript Posts

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 ...
Silverlight makes working with videos pretty straight forward, Microsoft makes Silverlight pretty straight forward with ASP.net and sharepoint is written in ASP.net, so match made in tech heaven!! I wanted a video player web part for sharepoint, that had some simple functionality like play, pause and volume. I started with expression encoder which output a nice media player interface...this is OK, but has a couple of restrictions; 1, its far to rich for what I wanted, animations all over the place ...
Jax CodeCamp crew did an amazing job turning around and getting a new venue last minute due to Fay and still holding a great event. Here is my PPT from the Jax CodeCamp [http://www.jaxcodecamp.com/ ]: "Windows Mobile, SQL Compact and other fun" Nikita Polyakov PPT: http://cid-153154d6f7d12177... Note: There is no code in the PPT. Watch How to Videos for getting started. WM How Do I Vides - http://msdn.microsoft.com/e... I picked ...
Code Camp 10 in Boston is around 4 weeks away and there's still room if you want to attend or if you want to speak. Check out Chris Bowen's blog for complete details or just head over to the web site to register. I have several sessions already planned. See you there ...
Ok, imagine the following situation: You are a developer and you want to keep up with the latest technology, so you update Visual Studio 2008 with Service Pack 1, installing .NET 3.5 Service Pack 1 as part of the update. You then proceed to continue with your ASP.NET application, building a nice neat AJAXy application. Everything works fine on your box, it's awesome, the in-your-cube demos go great, everybody's happy. So you build and deploy your new hotness then sit back and wait for the pats on ...
I haven't been to a PDC since 1997. The big announcement that year was 'ActiveX'. It was a great event and I have high hopes for this years event as well. This year the topic seems to be 'cloud computing'. I'm going to enjoy steeping myself into this technology. I just found out that Don Box is now going to be part of the keynote as well. It's sure to be a great time and there'll be more reports here ...
When designing a page in a web application, I have found that a page is more intuitive for end users if the page has a clear "Edit Mode" and "Read-Only Mode". With this design, the default mode of the screen is Read-Only, and the user clicks an Edit button to make the fields editable. The user then edits values as desired, clicks a Save button to save the values, and if everything saves properly, a success message is displayed along with the page in Read-Only Mode once again. I have seen a number ...
When trying to debug javascript using Visual Studio 2008 there a couple of things you need to do first - otherwise it (debugging) will not work and you'll get the following error when you hover over breakpoint in your javascript: The breakpoint will not currently be hit. No symbols have been loaded for this document. Note that this is only for debugging using IE (6) - not sure about other browsers/versions. Within IE go into Tools - Internet Options - Advanced tab and make sure the 'Disable Script ...
The Sins of Our Education System As we all know, Agilists tend to frown on specialization. I am no exception. I tend to think that I take that sentiment a bit further though. I believe that designers should program and that programmers should draw wireframes. Before you dismiss me out of hand as a crackpot, hear me out. Hopefully by now, most UX designers (and hopefully some developers) have read The Design of Everyday Things. Hopefully those same designers have accepted that their difficulty with ...
MS VS Dataset Designer allows to create a relationship (a DataRelation object) that maintains information about parent-child records in two data tables in a dataset using Relation Dialog Box. It has option to specify type of relationship: Both Relation and Foreign Key Constraint Creates both a relation and foreign key constraint (see below for descriptions). Foreign Key Constraint Only A ForeignKeyConstraint restricts the action performed when a value in a column (or columns) is either deleted or ...
I wanted to implement client javascript to re-calculate summary based on a few options(in drop-down lists) selected by the user . The closest JS sample I found was Complex Client-Side Shopping Cart .But it wasn't exactly what I wanted. I created an array of custom class objects. Class has InitialPrice and SelectedPrice properties as well as this.Diff = function( ) { return this.SelectedPrice-this.Ini... } Each DropDownList calls onchange Event Handler, which updates SelectedPrice value and ...
Update: deadline pushed back (another week?) for the scripting contest. In case you missed it, the guys over at the PowerScripting Podcast are hosting a scripting contest. Hurry though, the deadline is Sunday! They’re giving away free licenses of NetCmdlets and PrimalScript 2007. Technorati Tags: PowerShell, NetCmdlets ...
Phil just announced that Subtext 2.0 is finally out. I haven’t been very active on this release (sorry guys!) but with the plans for 3.0 starting up I will be getting back into things a bit more. The new 2.0 release looks really good and includes some new features and bug fixes that will be nice to have. Now, we just need to convince Jeff and company to upgrade. Some of the improvements are: Enhanced MetaWeblog and WordPress API implementations New CSS-based admin section The ability to set a separate ...
Mark Monster on DynamicProxy and Function Pointers, Emil Stoychev with OlympicShow, Denislav Savkov with weather forecast control, Azret Botash with a MessageBox dialog, Rich Griffin with a Tag Cloud and Dependency Injection, Rob Houweling with SharpZipLib, Alex Golesh on dynamic creation/destroying SL objects, Mario Meir-Huber with a SL blog in German, and James Bacon on Downloading SL errors. I'm back from vacation... no trout, but lots of fish and cool air. This first SC Blog post after vacation ...
I have just heard about a new search engine in town - Cuil. Apparently it pronounces "cool". Immediately I rushed to try it out. I can tell it is worth experimenting with, although the results returned were less relevant than using Google. So Google is a king to me still, but all in all the visual appearance is more appealing to me so I added this engine to my search engines array inside the IE that immediately hang and FireFox 3 that survived this brutality. Anybody up to improving ones searchs ...
Invoking web methods from client scripts is fun. But before you roll out your cool applications into the production, please don't forget to reconfigure the max JSON string length, represented by either the maxJsonLength value in the web configuration file or the MaxJsonLength property of the JavaScriptSerializer class. The maximum length of JSON strings, by default is 2097152 characters, which is equivalent to 4 MB of Unicode string data. This should be good enough for most of the web applications. ...
A solution to the EmptyDataTemplate problem: how to insert via GridView when table is empty. This is Oracle-based and does not use a SqlDataSource. If you have worked with the GridView feature for any length of time, then you probably have had to address the "EmptyDataTemplate" situation, where there are no records in the table from which you are pulling. Here is a sample screen shot of the typical solution when the table is empty. This solution will work, although it is not too elegant. Also, it ...
Okay...so, the post yesterday was clearly not as researched as it should have been. It's true...the Click() event does NOT work in FF...so, the solution I had to utilize the click event had a rather short lifespan. I tried to dynamically add the __onPostBack javascript event onKeyPress as well as onkeydown - to no avail. I'm not sure why it wouldn't work...but, it just wouldn't. (I'm using an image button, .NET 3.5, a lot of JS & AJAX on the page - not sure what, if any of that muddies the waters) ...