Tag | Javascript Posts

This week we switched to using Declude Interceptor as our anti-spam solution. We looked at 3rd party sites like postini and others which are actually very inexpensive at a few bucks a user per year. But because have thousands of users the costs were too high. So I found that Declude's new Interceptor product was exactly what we needed. It runs as an anti-spam inbound gateway server in our data center that filters the spam before it gets to our mail servers. It was much, much cheaper than Barracuda, ...
Check this site, http://pikdev.free.fr/ for PIC development in Linux and then check this one Piklab on your Linux Package install manager Well, I am trying to find an IDE for PIC Microchip on Linux. Specially for PIC18. It is nice to be able not to depend on MS Windows anymore and just use my Linux OS full time. Now, Piklab seams to contain all the parts/options I am looking for except that it needs a compiler to use! What? so it is just an Editor that I can write my code in and then I need to send ...
This example simulates on how to display a loading message with gif image when the page loads in ASP.NET. <html xmlns="http://www.w3.org/19... ><head id="Head1" runat="server"> <title>Load Wait Message Demo</title></head... type="text/javascript" language="javascript"> if(document.getElementById){ // IE 5 and up, FF var upLevel = true; }else if(document.layers) { // Netscape 4 var ns4 = true; } elseif(document.all) { //IE 4 var ie4 = true; } function ...
This simple JavaScript function validates the TextBox input that allows only numeric values to be entered. <script type ="text/javascript" language="javascript" > function ValidateText(i) { if(i.value.length>0) { i.value = i.value.replace(/[^\d]+/g, ''); } } </script> In your textbox add the onkeyup event or onkeypress. <asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_Tex... onkeyup = "javascript:ValidateText(th... Note: If you wan't ...
This example shows how to limit the number of characters to be typed into the TextBox using JavaScript and display the remaining characters in a Label Control. <script type="text/javascript" language="javascript"> function validatelimit(obj, maxchar) { if(this.id) obj = this; var remaningChar = maxchar - obj.value.length; document.getElementById('&l... Label1.ClientID %>').innerHTML = remaningChar; if( remaningChar <= 0) { obj.value = obj.value.substring(maxchar... alert('Character ...
Having a marquee on a page is not a big deal but what if somebody wants user to adjust the speed of the moving text. So the idea is we have many marquee in one page and we want to adjust their speed using two javascript Buttons called “Speed Up” and “Speed Down” The logic is very simple, the marquee tags which you want to control with the help of buttons give them name in my case it is “Scrollers” (Remember it is name not id, so you can give same name to as many controls). Now call the following ...
According to Joe Brinkman's blog today, look for Monday, February 23rd for  the release of DotNetNuke 5.0.1. A number of fixes have been made to the product.
Joe also announced that the new roadmap for our 2009 development which will be updating shortly on the DotNetNuke.com website.
I just started using AllWebMenus Pro version 5.1. Trying to figure out how to generate the Menu execlusivly in code was a challange because in the documentation they had refrences to styles that I could not find in the generated Java Script from their tool. The Short and Sweet Blog version: The default menu.js will not contain any styles you define if you dont create a menu item prior to generating the menu with the AllWebMenus Tool. The Tool doesnot generate these styles even so the second option ...
You know you are a geek when things like this seem of any importance. It may comfort you to know that there are others who are excited about the buzz. It may disturb you. Make of it what you will: On Friday, February 13th 23:31:30 UTC 2009 the time_t structure would contain the the number 1234567890 The time_t is measures seconds past midnight of January 1 1970 (see Unix Epoc, POSIX time etc) You might celebrate UTC time - those of you not stuck in traffic in New York or at work in California. Or ...
Last night, the Ann Arbor .Net Developers group held annual elections, and made new director appointments. The new leadership team is: President: Jay Harris Vice President: Scott Zischerk Secretary: Darrell Hawley Treasurer: Eric Bratton Director of Programming: Mike Woelmer Director of Membership: Dennis Burton Director of Sponsorship: Brian Genisio (me!) With my new role, I will be soliciting companies for sponsorship. This will require me to get out there a bit more than I am used to, which is ...
More than a year ago I wrote a post Code Render Blocks does not work inside HEAD server controls about the problem, that prevented me to update URL of CSS file, when version of assembly incremented. Now I've created a function /// <summary> /// /// </summary> /// <param name="page"></param> /// <param name="cssFileHref">e.g. "~/StyleSheet.css"</para... /// <returns></returns... public static HtmlLink AddStyleSheetLink(this Page page, string cssFileHref) ...
I stumbled upon this site that is pretty interesting. It shows some detail that I was looking for on how sites market keywords and some possible spending trends. It is somewhat accurate. I was able to benchmark the site against a few of the clients that I have done work with. (Keyword spy) http://www.keywordspy.com/o... I put a link to look at my blog. You will notice that I don't pay for any keywords for this blog (ha ha), that is because I don't make money off this blog. ...
Today I was faced with an unusual task: I needed to find a way to nullify an element's style attribute, i.e.: <br style="clear: both"> The style's clear:both was causing some unnecessary whitespace. I couldn't change the style attribute directly because it was on a Master page that I didn't have the permission to modify. I am not sure if there is a way to do this using CSS alone (element style takes precedence over any css class). My Solution Step 1: Hide the offending <br> element // ...
Anne Thomas Manes has an interesting post stated that SOA is dead. Despite the dramatic eye-catching writing style, she does get a little bite on the issue. "Successful SOA (i.e., application re-architecture) requires disruption to the status quo. SOA is not simply a matter of deploying new technology and building service interfaces to existing applications; it requires redesign of the application portfolio. And it requires a massive shift in the way IT operates. Does this sound familiar to you? ...
This is the most demanded scenario for the one who are using Asp.net AJAX Control Toolkit, I mean I have seen most of the people asking for this feature on asp.net forum. Unfortunately, we have no such functionality provided in Modal Popup because the control get rendered once the page is loaded and the Modal Popup is just a JavaScript which work is just to display a div which is hidden. Here is a little work around for those who wants to pass parameter to user control using Modal Popup. Basically, ...
A couple of weeks back I attended a session on Unobtrusive JavaScript (UJS) and jQuery by John Teague. This was probably the biggest thing I took from the Houston TechFest. Recently, I found the opportunity to put my new knowledge to good use. I haven't reach the unobtrusive part of John's presentation, but jQuery is my first step. Documentation I found the jQuery API documentation to be invaluable. At first, as a reference, it was a little difficult to find what I need. For example the "val()" function. ...
I have been allocated an account in Windows Azure Developer Portal for CTP - and very excited. Now i'm looking into the corridors of Windows Azures and downloading the SDKs. Am looking at these sites Deploying a Servce on Windows Azure http://msdn.microsoft.com/e... Windows Azure SDK http://www.microsoft.com/do... Microsoft SQL Data Services SDK http://go.microsoft.com/fwl... Using ...
In the UK I am the technical editor for the MSDN Flash. This weeks edition was a special focused on free software. I gathered together some of the best downloads based on recommendations from friends, colleagues and customers (which in case you were wondering is an overlapping group of individuals) plus a few of my personal favourites. I have tried to get something for everyone. From fairly generic utilities such as Free Download Manager and Unlocker, specialist tools such as SketchPath for XPath ...
Today, while creating some javascript popup I had a condition in which I place onclick function on body tag. I had an other button which also implement onclick. So the code looks like as follows 1: <body onclick="disappearPopup()"> 2: <a href="#" onclick="ShowPopup()">Show me</a> 3: </body> So, what happen is whenever link is click the body clicked even called automatically. Practically speaking, we need to cancel the body onclick even each time we click the link click. And ...
Today begins the Get Fit in February Challenge from Facebook. If you haven't already signed up - check it out while the month is still young and compete against over 100 other geeks for an MSDN subscription and other prizes! :) Here's my first blog entry concerning the challenge. I'm starting the challenge at 210 lbs...yeah I ended up putting on some of what I lost last year after giving up soda completely. I was down to 195 for a while but I guess the holidays and then not really paying attention ...
My current project involves integrating legacy Prototype code with jQuery. Normally the solution would be to just change all the $(object) references to jQuery(object). However, one of the constraints was I couldn't modify any of the jQuery code, and Prototype does NOT give you any way to rename the $ variable. I discovered this hack while trying to find a way around this: <script type="text/javascript" src="jquery-1.2.3.min.js"&g... <script type="text/javascript" src="prototype.js"></... ...
The following is a simple checklist you can use when building web applications. Much of this still applies to other technologies and can easily be extended. I try not to get too specific on technology or methodology, but it is definitely leaning toward ASP.NET. If you can think of something I am missing or disagree, please leave a comment. Detailed information follows the checklist. How much of the checklist you follow will depend on the project. If its just a hobby site, you may skip items like ...
I just got back from a business trip and sitting there on the counter was a copy of my latest book from Wrox! This book (my 20th) is titled Professional ASP.NET 3.5 AJAX. This was a fun book and I wrote this with some great co-authors including Matt Gibbs, Dan Wahlin, and Dave Reed. Amazon says that the book will be available on February 3rd (not too far away). Here is some of the introduction I wrote for the book: ----------------------------- ASP.NET revolutionized Web application development. ...
I realized after a discussion at work today that I don't view news and information sites in a browser that often. I find that I use an RSS reader more than actually going to the sites. I did not think about this too much until a co-worker was discussing Twitter as a service does not get that much direct traffic (people going to their site) most twitter users use a 3rd party software or tool to tweet or follow people. I realized how true this was when I realized that I had not gone to www.twitter.com ...
I've had a tip off to check two killer apps. First is JQuery. It was plugged to me as the new mootools! Completly supporting older browsers, it's on-site samples and documentation are ment to be excellent. It is also compatible with Google's JTools. Second is IETester. Useful if you need to test your sites on multiple IE versions and their equivilent JavaScript engines. It is a "free WebBrowser that allows you to have the rendering and javascript engines of IE8 beta 2, IE7 IE 6 and IE5.5 on Vista ...
I swear that Microsoft are trying to force developers to move their sites from Classic ASP to ASP.NET. Not that I have anything against ASP.NET - I like it and I like Classic ASP less. But in reality, many sites work perfectly well in Classic ASP and don't need converting - even if a budget was available (which there usually isn't!) OK. Many of us are aware of the dropping of friendly colours from VS2008 for .ASP. This was reintroduced in SP1 after the development community kicked up a huge fuss. ...
In my previous two posts, Building a Simple Photo Gallery in ASP.NET MVC Framework and Returning Thumbnails With the MVC Framework, I built a simple photo gallery on the ASP.NET MVC framework. In this post we are going to start making this a little prettier. To start with, we are going to leverage an JavaScript project called Lightbox.js To read more about this and the rest of the project, see my post at Adding Lighbox.js to the Simple Photo Gallery ...
I love the new version of IIS. One of the great elements of Server 2008 is that it has IIS7 installed. A great aspect of the new IIS is that you can now run very common applications (wordpress, and photo gallery) on Windows. These applications are PHP based and typically are hosted on Linux Servers. IIS 7 allows for you to host these applications on Windows with some great performance A new tool from Microsoft allows you to install all of these applications with little or no configuration. (Web Application ...
In my last post, we put together a quick and simple photo gallery. This post will be building on that. Depending on the size of your photo, however, it didn't have the worlds greatest user experience. I'll be playing with the CSS, JavaScript and a ton more over time. Today, however, I'm going to be just returning a thumbnail rather than the full picture to show in the view. I don't want to have to physically create each of the thumbnails so we'll generate those dynamically on the fly. Read the full ...
So, for the past 10 months I've been working in ASP.NET, which is a first for me I'm been a desk top / middle tier developer for 99% of my developer career and thing that I don't like about the current application I support is this calendar control we have. The developer before me created a small calendar control that the user click on a icon and the window pops up. Problem with this is the calendar control has no business logic in it, to use it you have to call back the to the server, compile the ...
I think that some well planned auto-tabbing on a web form can really make a page feel polished. Suppose we have some lovely aspx markup like this: <form id="aspnet_form" runat="server"> <label>Social Security Number:</label> <asp:TextBox ID="PartOne" MaxLength="3" runat="server" />- <asp:TextBox ID="PartTwo" MaxLength="2" runat="server" />- <asp:TextBox ID="PartThree" MaxLength="4" runat="server" /> </form> It would really be nice if the user didn't have ...
I need to show popup info message with single close button, but content is located in separate html file. The current implementation using window.open not working for many users with popup blockers. My question is which tool/framework should I use. Initially I considered to use UFrame (see CodeProject article:UFrame: goodness of UpdatePanel and IFRAME combined )inside ASP.NET AJAX ModalPopup. Then I found question http://stackoverflow.com/qu... ...
I changed the "welcome message" on my website www.galasoft.ch and thought I would also publish it here :) ---- Update: In addition to the talks listed below, I will also talk in TechDays Geneva. More details here. Read the rest of this entry » ...
Last year I had the pleasure of receiving a copy of the book Entity Framework Tutorial by Joydip Kanjilal from Packt Publishing and I recently got the time to read it so I thought I'd share my impressions on it. I have to confess to having great expectations from the book: it was from Packt, the publishers of the excellent Programming Windows Workflow Foundation by K Scott Allen and it was on Entity Framework, a topic which I had been meaning to read up on for a while. Like the WF book, EF Tutorial ...
In november 2007 our old desktop finally passed away. In the midst of our grief we were faced with the need for a new machine. To support my wife's mobile lifestyle we decided to get a notebook. In our hurry we purchased a 15" MSI notebook and upgraded the memory. All told the cost was about AUD $1400 . By february I needed a new notebook myself. I bought a Dell Inspiron 6400 - probably the ugliest notebook on the market at the time. The Dell cost me AUD $998. The MSI was expensive, has been unreliable ...
I attended the Houston TechFest today, and am now finding it difficult to sleep with all of the new knowledge and relationships filling my mind. I finally decided to get out of bed and put some of my thoughts in writing. The Fest was great. There are a few good reasons to attend an event like this. It's free. You get to meet new people with common interests. Employment opportunities are there if you are looking for them. You almost certainly learn something (if not many things). There are lot's of ...
Normally we use the term postback when an ASP.NET page submits it's content back to that page itself.But there can be situation when a page needs to submit it's content to a different target page.This is known as cross page postback.In this post we will discuss about how to handle and implement cross page postback scenario. Now to make a page postback to another page we have set the PostBackUrl property as shown below: <asp:Button ID="Button2" runat="server" Text="CrossPagePostback" PostBackUrl="~/TargetForm.a... ...
In this issue: Russell Greenspan, Andrej Tozon, Patrick Keating, Timmy Kokke, csharpsean, John Stockton, Mike Snow, Terence Tsang, Ning Zhang, and Lee. From SilverlightCream.com: Microphone access in Silverlight via Flash and JavaScript Russell Greenspan shows us how to get past the no microphone in Silverlight thing by going through Flash or Java along the way.... great idea and since I've never coded Flash, good info... thanks Russell! Silverlight TreeView: MVVM and editing [1] Andrej Tozon was ...
Yesterday, one my my friend ask me a query about sending some 500+ emails using an asp.net page. Sending bulk email using asp.net is obviously an issue. I mean, You cannot keep the page on the post back state for the five minutes. Your page will get expired and even if you increase the Request Timeout period it is still not a good approach. So for that, There are couple of approaches like 1. You can have a table in which you store all the emails and create a Windows Service or Schedule Task to read ...
While http://en.wikipedia.org/wik... outlines some limitations of SQL Server Express, there are some specifics that are missing for Reporting Services. One such example is what I discovered today while at a client that uses DB2 for its RDBMS. SSRS that comes with the Express Edition only supports creating reports against the local SQL Server data source. Be aware of this when considering SQL Server Express in your system design. http://www.microsoft.com/te... ...
TFS has a wonderful feature whereby it marks files as changed, even though there are no changes. These files show up in the Pending Changes window in Visual Studio (VS 2008). To work around this, add the following external command to your VS tools: First you need to install TFS Power Tools In VS go into Tools - External Tools and click Add Enter the following details: Title: Unchange Command: C:\Program Files\Microsoft Team Foundation Server 2008 Power Tools\tfpt.exe Arguments: uu /recursive /noget ...
Updated the post with the XML File I had used. I posted this article originally in March 2006 when the ASP.NET 2.0 TreeView had just been released. This article has received tremendous response (35000 views for this particular post) and also many recommendations / suggestions / corrections as comments. The script then supported checking/unchecking of children/parents when selecting/deselecting a particular node. However, in cases of having multiple children and de-selecting one of them, the parent ...
I was asked on Friday by a friend how one can consume JSON in Silverlight. At the time, I just said start with the System.Json namespace and I’ll get you a sample later. Well, here’s a sample and a peek into my head because I couldn’t just stop with creating the sample that he needed. In the end, I did a couple of different Silverlight examples including leveraging the JsonObject and LINQ. Then I ended up doing samples in raw JavaScript, MSAjax, Prototype and JQuery. Finally I ended it all up by ...
Regina.NET is participating in the INETA SQL PASS sponsored SQL 2008 launch. We have 2 sessions at this years event on January 22nd at the University of Regina. What is a community launch? Microsoft and others provide registered speakers with Web Casts, PowerPoint, code sample and / or hands on labs for a number of areas in the promoted product. The beauty of this type of event is that ANYONE can qualify to be a speaker. As a registered speaker, you are provided guidance in the launch topic. Speakers ...
OK. When the …\User Agent\Post Platform key (explained in the prior post) has too many items and the total length exceeds 260 characters, what happens is the javascript function windows.navigator.userAgent reports back as MSIE 6.0. As follows – using the http://www.fiddlertool.com/... test page: With a HTTP_USER_AGENT string exceeding 260 characters: getComponentVersion says you are running Internet Explorer 7,0,6001,18000. window.navigator.userAgent: [Mozilla/4.0 (compatible; MSIE 6.0)] window.navigator.appMinorVe... ...
Just for quick reference, I listed down all the BizTalk server 2006 R2 Technical documents. Developers Guide to Troubleshooting BizTalk Server 2006 Troubleshooting BizTalk Server SOAP Adapter Developing Integration Solutions using BizTalk Server 2006 and Team Foundation Server BizTalk Server 2006 Developer Guide for OAGIS Consuming and Hosting WCF Services with Custom Bindings in BizTalk Server Using the Windows Communication Foundation (WCF) Adapters in BizTalk Server Business Activity Monitoring ...
Tech Ed 2008 Software Quality Panel

http://www.dotnetrocks.com/default.aspx?showNum=358
Recently, installed a bunch of new Windows Live components such as Messenger, etc. That update extended my HTTP_USER_AGENT string to beyond 260 characters, which unfortunately IE then, when asked via javascript, reports itself back as IE 6 – this causes the Modal dialog boxes in SharePoint for things like adding web parts to zones to report a message that “Not enough storage is available to complete this operation”. So, since this is an x64 machine, I need to trim down the string which is taken from ...
Ciao, I'm Valter Minute, I'm a software developer working for Fortech Embedded Labs (www.fortechembeddedlabs.it), in Saronno, Italy. I'm Italian, and this should explain my poor english and excuse it, I hope. I was born in 1973 and I work on Windows CE since the beginning of this century (sounds like a lot of time written in this way). I started developing application on version 2.12 of the OS and then moved to BSP, drivers and other low-level stuff from version 3.0 on. I try to provide some helpful ...
I've been invited to contribute to an exciting new project called Digital Meld .  Please check it out as this site provides great information from experts on a wide range of technology.  I will continue to update my geek blog from time to time, but for now will focus on assisting with getting D|M off the ground.  Please check it out and offer any feedback you can think of.

-Tray