Tag | Javascript Posts

Developing and designing AJAX Web applications have always been a complex process that required many different skills and knowledge of various coding languages. Visual WebGui RIA Platform is targeting simplification of AJAX development process by offering a visual development environment that flattened the traditional multi-layered development into a single layer requiring basic .Net development skill set. As a result, building line of business AJAX Web applications became simpler, faster and most ...
Many developers are using JavaScript today. However, the programming JavaScript is not pleasant occupation. Therefore, many JavaScript frameworks (jQuery, ExtJS, Prototype, Moo etc) and libraries appeared lately. Today I wish to tell about jLinq library. Its uniqueness consists that with its help we can do LINQ-inquiries in JavaScript a code. jLinq query is looking as follows. var results = jLinq.from(data.users) .startsWith("first", "a") .orEndsWith("y") .orderBy("admin","age") .select(); Thus, ...
NOTA (2009-06-26): Existe una librería oficial de NHibernate Validator con validadores adicionales específicos para ciertos paises, NHibernate.Validator.Specif... (descargar) y ya cuenta con un validador de CUIT. Gracias Fabio Maulo por el dato. La aplicación en la que estoy trabajando está basada en ASP.net MVC y utilizamos Sharp Architecture como base. Sharp Architecture utiliza a su vez NHibernate Validator para la validación de las entidades de negocio por lo que, continuando con el tema del ...
I don’t do much web development these days (with the exception of when I am thinking about Windows Azure) and I certainly haven’t battled with complex html+JavaScript across multiple browsers for a long, long while. On the other hand, my colleague Mike Ormond is pretty immersed in such things and only today (29th April 2009) published a video on an Introduction to the IE8 Developer Tools and yesterday announced a competition for IE8 developers (Win an Xbox Elite + fame!). I was curious (as was Mike) ...
(This posting is a continuation of this blog posting.) If you want to implement this the OOP way, here you have the subclass code (which I'll use myself). using System.Collections.Generic; // Remember to set this to your proper namespace (or use a using statement in // the class with the LINQ projection) namespace MyNamespace { /// <summary> /// Extension methods for the Dictionary generic class. /// </summary> public class ImprovedDictionary<T1,T2... Dictionary<T1,T2> { /// ...
It uses an array of keywords to search and when found mark them like google highlight search keywords e.g jquery this code searches in complete body tag if you like to do search at a specific place then replace "body" with any of the jquery selector that suits your situations. <script type="text/javascript"> function HighlightKeywords(keywords) { var el = $("body"); $(keywords).each(function() { var pattern = new RegExp("("+this+")", ["gi"]); var rs = "<span style='background-color:#FF... ...
Etiquetas de Technorati: ASP.net,JQuery,JQuery Validator,Javascript,CUIT Hace tiempo que quiero armar un blog técnico para compartir experiencias y cosas de interes para desarrolladores web y finalmente me decidí. Para el primer post quiero empezar con algo útil que tuve que armar para una aplicación que estamos desarrollando. Se trata de rutinas de validación de CUIT/CUIL (Código Unico de Identificación Tributaria / Laboral de Argentina). Hay varios ejemplos en la web en distintos lenguajes pero ...
I attended the Central Ohio Day of .NET (CODON) a few weeks ago and had a great time. I attended Josh Holmes keynote first thing. Josh focused on simplicity and how we should keep that in mind when building solutions. I liked the content and I thought Josh did a good job of delivering it. I then attended Jeff Blankenburg’s CSS talk. Jeff did a really good intro to CSS by showing several of the most common layout samples that you see on the net. After Jeff’s, I saw Leon Gersing’s “JavaScript is Awesome” ...
SO I finally took the plunge and upgraded to DotNetNuke 5.00.01 beta on my live website. Having create a staging site and then tested the upgrade in a protected environment, I discovered a few things had changed since version 4.9: Native jQuery support - YEEEESSS!!! A half-decent Javascript framework has been packed in - notice how the FancyZoom stuf on the portfolio page still works thanks to a great bit of code here; New container/skin architecture that inherits from the improved and re-organised ...
I needed a quick way to cache some data for a feature I’m currently working on. The scenario is that the user should be able to type ahead and be presented with a list of matching options (AJAX auto complete). This data is coming from an external web service and is exposed via the core API of the application which in turn is exposed over WCF. So for AJAX to be able to get to this data it must talk to the WCF service, but this is not directly possible since cross site scripting is not allowed in the ...
Normal 0 false false false EN-US JA X-NONE MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} Robert ...
Seems that SharePoint rocks nowadays :-) Last year, the SharePoint business unit surpassed 100 million licenses and $1 billion in total revenue, according to Microsoft. And as read on the Redmond Developer News site, with the coming of Visual studio 2010: "Microsoft has been scaling up our guidance, and our application and tools, really, really fast," Andrew says, noting that Visual Studio 2010 will fully integrate SharePoint development support. That is something to look forward... :-) ...
Need to turn on or off MSI installer logging? Found the reg setting here http://support.microsoft.co... To enable Windows Installer logging Open the registry with Regedit.exe and create the following path and keys: HKEY_LOCAL_MACHINE\Software... Reg_SZ: Logging Value: voicewarmupx The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows for MSI version 1.1: v - Verbose output ...
In Windows Workflow I had a Replicator Activity inside While Activity. In Replicator _Initialized event handler I've set the InitialChildData property of the activity with the list of my objects, but Replicator didn't invoke any _ChildInitialized event , but went directly to _Completed event (similar problem was reported in the thread ReplicatorActivity shows all children complete when they aren't ). I tried to change a few things without success.It was also confusing that even in Initialized AllChildrenComplete ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... ...
At Mix09, the Microsoft Translator Team announced that they have released a preview of the very exciting in-place Translator Widget that works in conjunction with the current Windows Live Translator Site. They have provided an AJAX API to implement the translation functionality. Currently the feature is in Preview mode only and open to reviewers and testers only by Special Invitation. To see a cool demo of the Translator Widget in action visit Laurent Duveau's Site. As you can see from the code-snippet ...
Alright, I already know what you're thinking after reading the title, but that's why I prefaced it with "Another..." Long story short, I wrote this nice long e-mail to my friend/colleague here at work and I thought maybe it would be of use to one of the three people out there that haven't read 84 different explanations of the abstract factory pattern. Again, it was formally an e-mail so I ran through it and added some clarifications in brackets...hope I made _some_ sense :) A link to an explanation ...
This example demonstrates the basics on how to store and retrieve data between pages using ASP.NET Session. As you may know there are lots of ways on how to pass information between pages and these includes the following: *Sessions *Querystrings *Cross-Page Posting *Cookies *Form Submit *Server.Transfer In this example, I'm going to show the basics on how to store the information in Session and retrieve the value of Session in the next page.. C# protected void Button1_Click(object sender, EventArgs ...
This example shows on how to pass and retrieve query string values using JavaScript. Passsing QueryString to other pages with window.open JavaScript function <html xmlns="http://www.w3.org/19... <head id="Head1" runat="server"> <title>Passing Parameters between pages</title> <script type="text/javascript" language="javascript"> function PassValue() { var paramVal = "Hello ASPNET"; window.open("Default2.aspx?... + paramVal); } </script> </head> <body> ...
I spent hours trying to figure out why my ASP.Net page, which uses a master page with a RadGrid surrounded by a RadAjaxPanel with an AjaxLoadingPanel, would not show the loading message. I would click on the link to the page in the site menu, then IE would sit and spin for a while until it loaded the entire page, rather than loading the page right away but showing the loading spinner until the data was returned. What I had to do was add this javascript (w/jQuery) to the user control that the grid ...
Typically, if Silverlight isn’t installed for the user’s browser, they see this: …or something like that. But what if you don’t want that to display? Maybe you want to actually replace an area with alternate markup, javascript, etc. when Silverlight isn’t available? Or maybe you want to just have your own message letting them know that Silverlight needs to be installed. There’s a built in way to handle this with the Silverlight control. Below is my Silverlight application running in IE: Now, what ...
First of all, thanks to all those brilliant people who made the long arduous journey to the UK (and to all those who just happened to be near by). I know it must have killed you to be so far away for so long. I can only imagine how hard it was for you. All of us that couldn’t go really feel for you and feel your pain. Okay! So, for those of us that couldn’t go, some of these guys really did a tremendous job of twittering what was going on during the conference. They absolutely did not have to do ...
We have been busy organizing a number of community events. I would like to share some events Regina.NET has been working on and other community events. All the below events are free and open to the public. Regina.NET Date: April 8th @ 6 PM Speaker: Rod Paddock Topic: JQuery with ASP.NET Web 2.0 is here to stay. jQuery is a JavaScript library that abstracts away all of the gory details of working with JavaScript for web applicatons. This session will demonstrate how to add jQuery to your ASP.NET applications ...
I was running into an issue with storing javascript as an embedded resource, but had a boolean that needed to maintain it's state. I originally was using a hiddenfield to maintain the boolean via getElementById b/c javascript gets reloaded from the assembly, causing the boolean to get reset. The problem is what happens if something dynamically changes your page values, and your script reliant on looking for specific controls becomes null? A better solution I found was extending controls via ExtenderControl. ...
I’m in conversation with a group that’s using Ext JS for their RIA. As I haven’t used it, I thought I’d go ask at the international water fountain that is twitter about it. Anyone using Ext JS? Thoughts compared to jQuery or Prototype/Scriptaculous?about 3 hours ago from TweetDeck Read the responses I got back from a number of industry leader and JavaScript experts at Antidotal info on JavaScript Library Ext JS ...
Relatively recently it was discovered that the MVC framework was inadvertently leading to some bad practices around deleting resources with HTTP GET requests. Specifically, HTTP best practices (and RESTful best practices) state that GET requests should never modify resources. Some people consider this a “security” hole and, while that may be true, I consider it more of a “best practices” hole. Stephen Walther has a great post on this topic here. In his post, Walther demonstrates two different alternatives ...
Finally, I got my laptop after a long wait of three weeks. Its a Dell Studio 15 with Intel Core 2, 2.4GHz, 4GB of RAM, 320gig hard drive and 256mb ATI Radeon graphics card and last but not the least its gorgeous 15.6inch WLED screen. Well, the looks and the finishing are impressive and I must say that Dell has done a good job on the outside. The 15.6inch WLED screen is, as I said gorgeous and super bright, totally worth the extra buck and I would recommend it to anyone planning to buy one. Got a ...
My journey with jQuery has actually began last month when along with ASP.NET MVC I started exploring the different features provided by jQuery and related plugins.I am simple amazed at the overall design of jQuery core and also by functionalities provided by the various plugins built around jQuery.I am planing to write a series of posts with my observations on jQuery and this happens to be the first in that series. In this post I will discuss about the magical ready() function in jQuery.I always ...
EDIT : Please visit www.wcfstorm.com for th updated tutorials. This is a first in a series for post describing the tasks and the features available inWCF Storm. 1. Getting Started 2. Invoking a service having multiple endpoints. 3. How to create and run a performance test 4. How to create and execute a functional test Ok, so lets get started.... Getting Started : (Invoking a method of a WCF/Web service) Add a service. This can be done by either clicking "File --> Service --> Add" or by clicking ...
Found this hack to allow popups without calling the window.open which is blocked by IE. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Don't Block Me</TITLE> </HEAD> <BODY onunload="pop();"> <object id='launcher' width=0 height=0 classid='CLSID:6BF52A52-394... <script language="javascript"> var popUrl = "http://hotmail.com"; function pop() { launcher.launchURL(popUrl); ...
Recently I was working on a project where the need for rotating ad functionality was needed. The site used Ektron and one of the content blocks was required to rotate between three different pieces of content. The first go at this resulted in an implementation that used the MooTools javascript framework. This implementation achieved the desired functionality, with the different pieces of content rotating between each other. However, this implementation also resulted in a feature (as we developers ...
During the last few months I've been working on a commercial tool for testing WCF services. The knowledge I learned building STORM really helped alot in building this tool. So here it is my fellow coders, WCF Storm. It has more features than its open source cousin, STORM and the best part is it works on both WCF and Web services! EDIT : www.wcfstorm.com is up! Please visit the site for updates and to purchase WCFStorm online System Requirement: .NET Framework 3.0 or higher. Features at a glance: ...
About a year ago, I started to evaluate ASP.Net MVC, but decided to put it aside because it was still in heavy-duty development. With the official release a couple of weeks ago, I decided to check it out once again. MVC has a lot of things to offer, but there are a few critical things that we couldn’t overlook. We have a few web applications that all have quite a lot invested in server controls (both third-party and developed in-house). In ASP.Net WebForms, for something as simple as a GridView with ...
In .NET, When you add an event handler to any of the predefined events in HtmlDocument of WebBrowserContro.Document, it will register a default event handler for all the other events. If the submit button has an onclick javascript event handler. The javascript returns false to prevent the page to postback. However, return false will not work properly if there is another event handler registered. Instead of returning false, the best choice in the HTML page is to set event.returnValue = false. Another ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
A JavaScript object can be of great help when you need to pass multiple values to a Modal Window. E.G.

 var objArgs = new Object();
 objArgs.Value1 = "Value 1";
 objArgs.Value2 = 2;
 var modalWindowFeatures = 'dialogHeight:600px;dialogWidth:600px;scroll:no;status:no;resizable:no';
  url = 'relative/path/to/page';
  var returnValue;

  returnValue = window.showModalDialog(url,objArgs,modalWindowFeatures );
This demo shows on how to dynamically adding /removing ListItems in the ASP.NET DropDownList control using JavaScript. Here’s the mark up and the JavaScript code block below: <html xmlns="http://www.w3.org/19... <head runat="server"> <title>Dynamic DropDownList</title> <script type="text/javascript" language="javascript"> function AddItemInList() { var list = document.getElementById('Dr... var box = document.getElementById('Te... var newListItem ...
“When checking your page in various browsers, you may find Safari displaying a bright red text color for your page anchors (links), overriding the colors you've specified in your CSS selectors. First, look for a CSS document that may not be uploaded to your server. It will be returning a 404 (page not found) error. The simplest way to do this is to use the Web Developer's Toolbar extension for Firefox (by Chris Pederick) and simply click on the CSS > View CSS menu item. The page that appears will ...
Looking for a simple datepicker that uses AJAX.NET (to avoid full-page postbacks), for your date fields? Look no further! I was on the same "hunt", and ended up writing my own code for it (inspired by other examples/code I was looking at). The code does all the work using ASP:NET, nothing is done using JavaScript. Below is the code for the solution. This could (and should) be made into a UserControl if you need to use in more than one place In the .aspx file, put this: (As you see, I am referencing ...
Check out the 2009 Microsoft SOA & BPM Conference presentation on Microsoft ESB guidance 2.0, Oslo, BAM, REST with WCF, Customers case studies etc... 1. Keynotes, Lunch Sessions and Customer Case Studies 2. Technical Offerings Track 3. Best Practices Track ...
I ran into an issue with my SharePoint Central Administration website recently. This was in a my development Virtual PC, using IE7. I would open the SCAW which appeared to be fine, but some of the functionality wasn’t working. I’d click on certain buttons and nothing would happen. I then noticed that IE was reporting javascript errors. I tried using FireFox. Some of the errors that I saw in IE weren’t in FireFox, but some of SCAW (usually popups) didn’t work. Rather try to figure out what I did (I’m ...
Why did I start a Blog? welcome to my world of blogging, this is my first. Why did I start a Blog? First to express myself and to also contribute to the medium that has support my career (Internet). it is also my goal to achive MVP status soonest. What do I plan to cover here? Almost everything related to the technology and developer community. I will be writing .NET code snippets, talk about javascript, fiddle with jQuery, cover new product releases, write about new technologies as I encounter them, ...
I thought it was about time I imparted some actual information, instead of just reporting on where I've been, so here goes... Suggestion #1: Quicker access to the Bash History with Ctrl+R Find your self constantly hitting up and down buttons when logged into a UNIX terminal, trying to locate the last command entered in the history for rebooting the cable modem, backing up the internet or shutting down the HAL 9000? There are much quicker ways to do it! My personal favorite is hit Ctrl + R, then type ...
This morning I received an email that posed a question so interesting that I thought I would blog about the answer. The question was, essentially, how can we invoke a partial update (using ASP.NET AJAX triggers), from an on(up) button handler in Flash? There are a few different ways to approach this problem. I believe the method I’m going to write out here is what I like to call the “path of least resistance” – it’ll get you there quickly. However, it will create some interdependencies among your ...
Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
Stephanie Grima’s Curriculum Vitae Introduction As a person, I consider myself as capable to work alone and with a team easily. I am very hard working, and do whatever I set my mind to doing. I am currently at MCAST ICT, during my last year of my studies reading my Higher National Diploma. I also hold an A-Level in IT as well as a National Diploma in Computing. I see myself working in IT as a web developer or software programmer while I continue furthering my knowledge by doing exams such as MCTS ...
I did something stupid against all my beliefs and should have never done it. I tried to deploy something on Friday. It was the dumbest mistake. First off I had no idea what type of master pages were in the environment. I assumed there was only one master page in the entire environment and I used the most disgustingly wrong program for a developer, SharePoint Designer. I pasted in this fix for AJAX Update Panels with FireFox (<script type='text/javascript'>_... = document.forms[0].action; ...
I think that Microsoft is missing a large opportunity with the Microsoft Office product. I’ve been thinking about this for some time now. To me, it has been evolving in the wrong manner over these last few releases and it has bothered me greatly. You might be saying, “what is Bill talking about here, they just did a major and well-received upgrade to Microsoft Office with the Office 2007 release!”. I do have to say that you are right in that regard – but what I am talking about is Microsoft Office ...
I gave another lightening talk Lightening Talk, this time at ColArc: No video footage to got with it this time, I left my camera behind, sorry! I have to admit, I struggled a little delivering this one, probably because its a subject I'm less fluent in, and it was a bit longer than my last presentation. But that said, it was good practice for me, and I think I got the subject matter across, just about ...