Tag | Javascript Posts

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 ...
If you want to show the progress bar please refer back to this post on how to get an AJAX Progress Bar to work with SharePoint: http://www.mosslover.com/ar... For the next step you want to create a Javascript Function in your user control or web part that looks a little bit like this: <script type="javascript/text" > HideButtons() { var Button1 = <%= Button1.ClientID %>'; document.getElementbyId(But... ...

HTML Color Codes description and Tables shows html numbers for different colors

JavaScript Color Show can do the opposite- show color of specified number.

First off it rocked...Special thanks to Lee Brandt, Blake Thiess, Joe Loux, Timothy Wright, and John Alexander. These guys were my teammates and what I would consider some of my new friends. They are some of the best band-mates a girl could ask for in Rockband also. So here is a little bit of my experience in general: I was looking forward to this event for a month. I was incredibly excited, because I love helping a good cause and felt like I had not done enough to give back to the community. I love ...
A new preview of the ASP.NET Dynamic Data Web Site was made available on April 23, 2008. Some new nice features for Dynamic Data Wizard and routed URLs were included in this release. The Visual Basic language support was added for the first time as well. In this quick blog post, we will take a look at some of the enhancements to the wizard template. First off, download the latest release from the following URL http://code.msdn.microsoft.... ...
Introduction I guess that it's time to write about it, after making a few people curious at the MVP summit in Seattle. This article is to be taken as a proof of concept, and (I hope) as a way to "motivate" Microsoft to integrate this ability into Silverlight. As soon as I started playing with Silverlight, I saw the great potential that this technology has. As a RIA technology, it provides extended functionality over the web. As a WPF subset, it allows me to leverage the knowledge I already acquired ...
I found couple code sample in Javascript to parse QueryString: Passing Parameters Via Query Strings The Read Function QueryString - get parameters from URL with JavaScript Is any in ASP.NET AJAX client library ...
In my previous installment of recapping the events from ALT.NET Open Spaces, Seattle, I covered pretty much the opening ceremonies as it were. The weather was definitely interesting the entire weekend. Who would believe that we had snow, hail and rain for most of the time we were there in the latter half of April? Mind you it didn't stick, but if you believe in God, there is something to be said of ALT.NET coming to town. Coverage Galore Jeffrey Palermo was gracious enough to capture the opening ...
You've been there. "It works on my box!" Our new SharePoint web parts don't work in production! This project called for a suite of data entry grids inside custom SharePoint web parts. The customer already owned Infragistics' NetAdvantage for ASP.NET so I used their UltraWebGrid. Very slick and easy to deploy with your custom web parts. The primary feature they wanted was the cool Excel-like cut-n-paste functionality but that wasn't working in our production environment. At the beginning of the project, ...
C# Excel Export from ASP.NET Page ----------------- --web Page - ExcelExport.aspx ----------------- <%@ Page Language="C#" MasterPageFile="~/MasterPag... AutoEventWireup="true" CodeFile="ExcelExport.aspx.cs" Inherits="Forms_Techniques_... Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="Conte... Runat="Server"> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> <br /> <asp:LinkButton ID="LinkButton1" runat="server" ...
If you've ever tried to find a way to display an ESRI ShapeFile on a Virtual Earth map, you'll have probably noticed how little information there is on the Internet about how to accomplish this apparently arduous task. As a matter of fact, I needed to do exactly this while adding some collateral features to the software Serena and I are developing for our thesis, but after some Googling, I found that there was (and there still is) almost no useful information on how to achieve integration between ...
Now that Unity has been released into the wild, there has definitely been a bit of interest swirling around it. One of my key wants for a good IoC container is basic interception capabilities. My criteria for evaluating a container usually comes down to the following: Configurability (XML, DSL, Code) Dependency Resolution, usually opinionated Lifetime Management (Per Thread, Pooled, Singleton, Transient, etc) Extensibility for Interception So, I realized that Unity was missing some of these things ...
In my previous project i was using window.showModalDialog to open a modal window (ASPX Page) from parent ASPX page using JavaScript. But whenever the postback occurs in the modal window during <save > button click, it would spawn off a new window. When searching turned up my Colleagues with same problem who managed to work with window.open.Finally i found a solution which is very simple by just including below tag line in the <head> html of the modal window. <base target=_self> ...
I 've created GridView with HyperlLinkField columns. But I wanted to have link click to postback to the same page. I looked at some solutions like in a thread:GridView HyperLinkField with call to a javascript function It seems not working, I have a link as : <asp:HyperLinkField DataTextField="Field1" HeaderText="ID" SortExpression="Field1" NavigateUrl="javascript:ret... datanavigateurlfields="Fiel... target="_top"/> One of possible approaches described in Steps to ...
Michael Washington provides a Hello World SL2/DNN, Karen Corby has part 1 of 2 on SL2 and Networking, Laurent Bugnion talks about SL2/JS/Unit Testing, DeepZoom Composer Forum from Expression BLog, Andy Beaulieu's material from a SL2/Data CodeCamp talk, Adam Kinney on SL2 Sidebar Gadgets on Vista 64, and LeeOnTech with a Silverlight Wizard. From SilverlightCream.com: DotNetNuke Silverlight Hello World Michael Washington decided to start at Hello World with a DNN/Silverlight 2 series... he's been doing ...
And so the Twin Cities Code Camp came to an end yesterday, and Jason and his team did a phenomenal job once again. The turnout was even higher than last year, and the presentations and speakers were a who's-who of talent from Minnesota and the surrounding states. I was able to connect with a few new faces, like Javier Lozano, Chris Sutton, Bryan Sampica, and Chris Johnson, among many others. It was a great community event. My afternoon presentation on Developing ASP.NET with MVC without the MVC Framework ...
I am currently writing a Silverlight class library which I want to use in a project, and decided to try Test Driven Development for this class. This is a really nice way to work, and the Silverlight development team made this very easy by providing a unit test framework easy to integrate into Visual Studio 2008. Read the rest of this entry » ...
Formatting numbers for currency display and more. Formatting numbers so they conform to a specific format can be deceivingly tricky. For example, one of the most common tasks is to format a number for currency display- an integer followed by two decimals. There are more subtitles in such a task than many might think. In this tutorial, I'll discuss formatting numbers in JavaScript, such as number rounding, formatting a number for currency display, and more. Number rounding in JavaScript Lets first ...
Congratulations Mr. Copy & Paste Blogger Guy I'm awarding this clipboard barf blogger with our 3rd More On Alert: http://geekswithblogs.net/G... What has he done to deserve such an honor? Allow me to list his qualifications... Not posting a single original thought in nearly 2 years. Even the blog tagline is an unattributed quote. Blatantly ripping off other people's content (CTRL-C, CTRL-V) without giving any credit ANYWHERE. Vomiting all over the GeeksWithBlogs main feed with ...
UDPATE: October 2, 2009 There is a better way of doing it with Ajax Control Toolkit version 3.0.30930 which works with .NET 3.5 SP1 and Visual Studio 2008 SP1. Please read this post for a step by step instruction One of the common queries I get across my sessions is that, the File Upload control doesnt work inside an Update panel. All of us would like to implement a Gmail File Upload kind of interface and when you try to implement a similar thing using UpdatePanel (which works like a charm for other ...
Hello there! So I have gotten a tattoo (a tribal sun), and I have managed to get a new traffic generating site up called www.iarenotwant.com It can also be accessed from www.irnotwant.com. Basically it will be a picture a day to keep the misery away :-p (catchy, I know) It shows off some cool javascript coverflow, and I am still working on getting the reflection to work. Currently, the js coverflow was written by someone else, and they had a php file they used to do the reflection. I need a .ashx ...
I realize it's been a while since my last post on Inversion of Control containers and looking at Unity as one of them. Since that time, Scott Hanselman linked to some of the comparisons that I did for IoC containers here. I'll be the first to admit that the look was a bit naive, but to get you all interested in looking at IoC container and how they can improve your applications. It was suggested here that my posts weren't a complete comparison, although in my previous posts I covered a lot of those ...
In this article I would like to present simple application with MultiScaleImage control and generated images from Deep Zoom Composer application. I hope my English is enough to understand this text but just in case I will put a lot of pictures. I will show you how to create application with very deep zoom and put it inside Silverlight 2.0. First we have to generate project with images, therefore we have to download Deep Zoom Composer application. This process has 3 steps: "Add Image…" Create new ...
I was doing some documentation today on this site that is part of a collection of customized sites. It has JavaScript (yuck) and web parts galore. I get to this site that deals with Affiliated Items for this particular site and I notice that there are 5 web parts. I am wondering why do you need 5 web parts when you take in a query string and provide a list of items. What you really only need is a Query String Web Part connected to another Web Part or a Web Part that reads the Query String. For some ...
Very recently I wrote an application where I had to deal with DataSet from a Web Service. Please note, I have no control on the Web Service and I ended up writing a small function which converts DataTable to JSON. I understand I haven't gain anything on the web traffic, but it surely simplified my JavaScript programming. Let me go through what I did Step 1. Extract the XML Schema. DataTable has two handy methods to extract Xml and Xml Schema. I extracted the Xml Schema to be able to generate a C# ...
Another month and another highly successful DC ALT.NET meeting. I want to thank Kevin Hegg for hosting the event as he was a very gracious host. We had a better than expected turnout which was very cool. It's good to associate names to faces after chatting, emailing and whatnot. I also want to thank Phil McMillan for stepping up to the plate at the last moment to backfill for the lack of the scheduled speaker. It's even more refreshing to not have any Death By PowerPoint (DBPPT) (TM). I appreciate ...
So I just finished spending approximately an hour and a half trying to figure out why my very simple javascript code wasn't working... function changeColor() { mb.style.backgroundColor = "#000000"; } Basically, I had an image in the html page, when the mouse went over the image it called that function, which would change the background color of the TD named mb to Black. I opened up IE and it worked. I opened up Firefox...and nothing happened. Finally after searching and searching, I found the culprit. ...
Brad Abrams posted links the the SL2 poster, Shawn Wildermuth has links out to a discussion of a Cross Domain policy bug, Steven Smith gives us the link he used to resolve his SL2 install issues, Jesse Liberty takes on a JS question in SL2, Delay has HTMLTextBlock up in SL2, and Michael Sync shows how to find the DataGrid in Expression Blend 2.5 then gives us a Web Service example in SL2. From SilverlightCream.com: Silverlight 2 Developer Poster Last week we had the DeepZoom version of this poster ...
Jeff Paries with OOJS part 2, Chrishayuk with a fix to a listbox stretch problem, Karen Corby gives up FlickrViewr, Mike Ormond details the mouse wheel, Shawn Burke discussing the SL2 controls and downloads, Cameron Albert on Multi-Threading SL, SilverlightSDK on the SL docs, and Tim Heuer on SL2 and Web Services. From SilverlightCream.com: Object-oriented Javascript Part 2 Jeff Paries comes back with part 2 in his OOJS sequence and getting into stuff I need to read too! Stretches that don't work ...
Making ASP.NET AJAX calls to web services has become increasingly popular these days. This approach not only provides a good separation of concerns but also makes it possible to create a truly ajax'ed web site with JavaScript's power on the client side. However, you may in some situations want to move one or more web methods to ASPX pages. You often have methods that are logically dedicated to specific ASPX pages, and you don't really want them to be exposed to the public through the ASMX file. Generally, ...
Early 'Cream: Cameron Albert on overriding the SL splashscreen, Shawn Wildermuth's learning source, Bill Reiss has two SL2 tutorials up, and Jeff Paries on OOP with JS. From SilverlightCream.com: asp:Silverlight Override I actually saw this first on Pete Brown's blog, then I saw Tim Heuer's reference, but this is straight from the author, and good stuff... the sort of thing I think we're going to be seeing more of as the .NET folks embrace SL! I'm adding Cameron to my BLogRoll, btw :) Source Code ...
Pete Brown is giving a WebCast tomorrow on SL2 and LOB apps... still time to sign up then come back to read, Tim Heuer helps us understand Calling JS from SL2, Jesse Liberty weighs in on Routed Events, Andrew Duthie describes Vertigo's Hard Rock DeepZoom app, and Adam Kinney blogged about the Mix08 Mobile session. From SilverlightCream.com: Silverlight 2 for Business Applications Webcast Pete Brown is giving a WebCast tomorrow March 19th at 2pm EST on SL2 and LOB... sounds like a good thing to be ...
So, I decided to put my custom GridView in a AJAX UpdatePanel. This was my first serious exposure to AJAX (asp.net). I discovered that I was having major problems. I kept getting an "unspecified error". Because it occurred whenever I clicked on a row, I assumed it had to do with the JavaScript I wrote for the GridView. I did tons of web searching about how to properly use script in a controlled wrapped in an update panel. I tried a few things, including embedding the script and registering the script ...
A few nights ago I decided to work on a custom GridView. My goal (derived from a customer request) was to build some additional behavior into the GridView without having to write a whole bunch of client-side or code-behind code. These are the things that I am focusing on: Select a row when the user clicks on it (no CheckBox) Allow the user to select multiple rows (using Shift and Ctrl keys) Bind display settings to site preferences Column header text Bind display settings to user preferences Columns ...

Pretty full room. Sorry VERY full room. Glad I cam not too late, even managed to find a plug for my laptop.

Read the rest of this entry »

Applications interact with the outside world. mmm? Mashups and such. ok Many types of outside data.... Images RSS Business services Intranet services Mashup API's silverlight1.1 xaml and fun -no easy way to connect to other services. What does client code look like? Custom services. Recommended uses of services in silverlight Using silverlight front end connecting to webservice or database directly. Using C# void list<product>getproducts (string searchstring) Create service Define What does ...
If you ever encountered any of the problems with Visual Studio 2008 listed below, you might want to apply the latest path to your VS 2008. Bugs in HTML Source View performance • In Visual Studio 2008, you have a page that contains an ActiveX control. The ActiveX control has more than two levels of subproperties. When you type inside the page, the source editor stops responding for several seconds. • The View Code command in Visual Studio 2008 is not available for a long time. • When you open large ...
  • Expression Studio V2 is coming this April.
  • It will include V2 of Expression Design!!! (Yes, finally)
  • Expression Design V2 allows selecting a "slice" of your design and export it to XAML directly. Seems that the export process improved a lot. Not sure about roundtrip export-import though.

Read the rest of this entry »

(wrote this in the plane from JFK to Las Vegas)

In a previous post, I mentioned that it's not possible to pass empty strings from JavaScript to a Silverlight application. It seems that it was not correct, or at least not complete:

Read the rest of this entry »

I was given a wonderful opportunity to make an appearance on DotNetRocks TV (dnrTV) last week. I'll use Carl Franklin's words to describe my appearance: "Jim Duffy comes to the dnrTV screen this week with a great presentation using Microsoft's Virtual Earth in ASP .NET. Jim shows you how to incorporate live maps in your applications complete with push pins, lines, shapes, links and more." While it doesn't say it specifically, I also covered how to import GeoRSS data feeds into Virtual Earth providing ...
Right, the virtual server is up and running...time to soak up some SharePoint...get some dnrTv episodes down my throat. Sahil Malik recorded a series of SharePoint episodes, 4 in fact. He starts with what happens when SharePoint is installed and finishes with some massive XML files for a Business Data Catalogue application. Tip: They are an hour long, so watch it in fast mode, the talking speed is still good and it only takes 30 mins to watch. Session 1 Session 2 Session 3 Session 4 Note: You can ...
For quiet some time, I wanted to understand JSON (JavaScript Object Notation) and its advantages. Always after hearing about it, I thought, it is some advance form of JavaScript, but after studying it today, I was surprised to know the advantages of JSON. In the present world, where companies are providing SAAS (Software Applications As Services) over the Web, and applications are mashing-up with other applications... in such scenarios everyone wants to make applications, to be able to exchange data ...