Tag | Javascript Posts

I am just starting to work with LINQ to XML and tried to find child document similar to the following: xml.Element("client/child"); But it throw exception System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name. The reason is that LINQ to XML doesn't directly support XPAth Fortunately there are extensions, that allow to use XPath for XElement search/selection. using System.Xml.XPath; and then var clients = xml.XPathSelectElements ( "client/child" ); Consider, ...
A new interesting tool which allows forms, reports and charts to be created using a powerful WYSIWYG visual editor was developed atop the Visual WebGui platform. The tool is an automated environment (IDE) for developing web systems using the methodology DDD (Domain-Driven Development). Automato allows the creation of complex systems like ERP and CRM on a powerful Web applications platform for using the same concepts of desktop applications. This model maximizes the interactivity with the end-user ...
Introduction For my entry for the WinPHP challenge, my personal Blog Engine “BlogSnor”, I wanted to make use of Ajax to retrieve posts, comments, color data and more from the server. I’ve used Microsoft Ajax in ASP.NET before, so why not try that in PHP too. Here’s how… Installing For the simplicity of this tutorial I make the assumption you have php 5.2 or higher running in iis7 and that your localhost points to c:/wwwroot/inetpub. (If you have not, and you have questions about this, just send me ...
So, it takes too long for me to write this post. even though I completed the coding stuff a week back but it is really hard to manage time these days. In this post, I will explain and demonstrate you how to create custom paging in Grid view control. Paging which works like the Google Paging. Let me elaborate more, say for example you have a record set of 500 items and you want to display 10 items per page. Now what happen to the pages numbers. Either you use the default with “..” sign after 10th ...
After the tremendous amount of interest the VPCs of the Visual Studio 2010 and .NET 4.0 generated, the Beta 1 bits would be available for download for MSDN Subscribers later today. The general public would also be able to download the bits starting this Wednesday. Visual Studio 2010 combines the power of .NET 4.0 and the tremendous enhancements done to areas such as Web Development, WPF as well as native development and provides the best so far platform for developers. While some of the features ...
In this post I will explain you, how can we serialize Datatable to JSON. So that, it can easily pass to JavaScript to get the AJAX done. First of all fill a Datatable with some results. DataTable dt = new DataTable(); SqlConnection objSqlCon = new SqlConnection(System.Config... objSqlCon.Open(); SqlDataAdapter objSqlDa = new SqlDataAdapter("select * from Production.Product", objSqlCon); objSqlDa.Fill(dt); Now ...
How’s that for a long blog title? Well, by far my most popular blog post has been about creating a Parent / Child relationship in SharePoint Designer and one question keeps getting asked over and over again: “How do I pass multiple values to the new item screen for the Child?” So, I thought it was about time I actually told you how. :) Are you ready? As stated before, this blog is a direct continuation of a previous blog post Creating a SharePoint List Parent / Child Relationship - Out of the Box. ...
And I don't mean the Diet Coke of Evil (only one calorie, not evil enough). I spent most of today finding out the most stupid of things. All I wanted to do was to create a blasted <img /> tag that had its source attribute set dynamically by XSLT. Seems pretty run-of-the-mill, eh? Here's the XSLT (I've even replaced the xpath with hard-wired text to simplify the scenario): <xsl:stylesheet version="1.0" extension-element-prefixes=... exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.or... ...
I am fortunate to live on a vast network of trails that start literally in my backyard… there is a trailhead two feet from the end of my driveway. These asphalt trails are plowed in the winter and wind through the backyards and parks, around the lakes, and along the streams of my suburban neighborhood. There are 20+ miles of trails available without ever stepping foot onto a roadway. As I was finishing a run a little over a year ago, it occurred to me to wonder why I was running on the street instead ...

I've found an interesting article where they explain how you can use Firebug (Lite) in IE.

Use firebug in IE

It can come in handy sometimes to fine tune javascript...

I was working with identity tags and byte tags today, and the obvious short-comings of both became apparent to me. The identity tags have an enormous number of unique values possible, but there is no tool to create them right now. The byte tags can be created and printed now quite easily, however there is only 256 different possibilities when using a single byte tag. So I threw together a way to add multiple byte tags onto a single object to create far more possible values. 4 byte tags together will ...
This example shows how to show a bigger Image when the mouse is hover into the original image. The trick here is we are just getting the path of the original image and set the actual size to a bigger size then display it in another Div. Check the code blocks below for your reference. <html xmlns="http://www.w3.org/19... <head runat="server"> <title>Untitled Page</title> <script type="text/javascript" language="ecmascript"> function ShowBiggerImage(obj) { document.getElementById("La... ...
In an attempt to improve the user experience modern websites are using javascript more and more. If you are even remotely serious about performance then you need to merge your script files and minify the result. Minification is the process of removing unnecessary characters from a resource to reduce the size of the file. You need to verify your javascript because javascript tries to tolerate errors. I'm going to go out on a limb and say that this is stupid. It can lead to a situation where invalid ...
Gridview is one of the good controls which enables us to produce Excel like output in the webforms.You can learn more about grid view in the following link GridView Documentation We had a scenario where we are supposed to give freeze pane like feature for Gridview. We had a lengthy Grid with some 20 or 30 columns . We had paging for about 20 records per page. So following were the requirements. 1. Grid must have a Fixed header. 2. it should be scrollable horizontally. 3. it should be scrollable vertically. ...
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; ...