Currently Browsing: JavaScript
Posted by Eric Polerecky in ASP.NET, ASP.NET MVC, ASP.NET MVC Futures, AutoMapper, CruiseControl.NET, Entity Framework, Facebox, Feedreader, FxCop, LINQPad, MSTest, SVN, SourceMonitor, Spark, Unity, Visual Studio, WebSVN, iTextSharp, jQueryJun 1st, 2009 | No Comments
Most of my work so far this year has been with one client. This client was a Java shop for quite some time and is pretty green to Microsoft. Also, they don’t seem to ever have had real success with building enterprise class systems. That’s not to say that they haven’t wrote very large and very complex systems. They have done it all with either the bare minimum in tooling or a incorrect implementation of the tooling.
In fact; one of their primary reasons for moving to .NET was to perform a tooling reset. They decided it was too hard to use technology like OR/M, DI, Messaging, and MVC. The...
Posted by Eric Polerecky in ASP.NET, ASP.NET MVC, Microsoft, jQuery, mvcMay 15th, 2009 | 2 Comments
I have to admit I am total bias towards MVC but hear me out. I have yet to work in an organization that implements an OOP or even MVP when using WebForms. It’s all been directly bound controls to data readers/sets/tables. No object model, no business object layer, page_load is used and abused, etc. It can’t be stated enough that MVC will not save a project from the bullshit code that is forms over data crap but at least there is hope in the form of a tiny amount of guidance from Microsoft. </rant>
Introduction
In the .NET world the MVC pattern is relatively new but it has been the staple...
Posted by Eric Polerecky in ArcGIS, JavaScript, mvcMar 13th, 2009 | No Comments
Today Oakland County launched Golf and Trails, or GAT, their first ArcGIS Server Web Application based on the JavaScript API.
Over the past 2 years I, as a consultant via Technology Aces, have been part of a team of developers working on a very large GIS web application. So large and so complex that its first public appearance is as the underlying framework that powers GAT.
I am happy to say that one of my projects with Oakland County finally released to the public, even if it is a “light” version.
Posted by Eric Polerecky in ASP.NET, ArcGIS, Dojo, JavaScript, developmentFeb 13th, 2009 | No Comments
As part of developing a project I created a Cross-Domain Proxy to consume the payment service. My Cross-Domain Proxy, Payment.asmx, is exposed via the JavaScript end point. Any ASP.NET web service can open the JavaScript endpoint by uncommenting line #7 in the asmx file.
Once the ScriptService line is uncommented you can test that your service is exposing the JavaScript endpoint by calling a URL similar to:
1: ~/WebService.asmx/JS
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space:...
Posted by Eric Polerecky in JavaScriptFeb 6th, 2009 | No Comments
The arguments passed to a JavaScript function are available in a function encapsulated variable named “arguments”
1: test = function(arg1, 'test', arrayArg){
2: console.log(arguments);
3: }
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color:...
Posted by Eric Polerecky in ArcGIS, JavaScript, Mashup, jQuery, twitterJan 31st, 2009 | 1 Comment
I did a search the other day for the a new blog post I saw fly by on Twitter about the top 100 twitter applications and ended up re-reading a post from RRW about the top 10 twitter applications. Now the post is from 2007, so I am sure that the top 10 has changed quite a bit. What I took away from the article was a note about Twitter Atlas.
What’s it missing? The ability to get only your Twitter group’s tweets shown on the map.
First thought: really, that’s so silly there has to be a fun little mashup for that…and I on went to check out the top 100. Once there I pulled...
Posted by Eric Polerecky in JavaScript, jQueryJan 13th, 2009 | 2 Comments
Ok, why in gods name can’t I figure this out!
Adding simple elements to the DOM works…no problem.
1: new_elem = '<a href="#" onclick="alert(\'alert\')">MyAdd</a>';
2: var test = $(new_elem);
3: $('#home_column').prepend(test);
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op...
Posted by Eric Polerecky in Air, JavaScript, development, jQuery, twitterJan 9th, 2009 | No Comments
Really, why have I waited so long to jump into a platform that is based on JavaScript…and HTML and CSS. Really, after spending 1.5 hours with Air I am totally amazed at my own stupidity. Oh’ and I started on YAAATC (Yet another adobe air twitter client) yaht-C…its like expresso and espresso…
Its rather late and I have to get up early…to go to work and code more Air stuff I guess…
Posted by Eric Polerecky in development, facebook, jQuery, pinggr, twitterJan 1st, 2009 | 2 Comments
Or just what I coded to I could lean how to use facebook connect…
Background
When facebook connect was released I wanted to code something to see how it all worked. I wanted to code something I could prop up relatively quick. Partly due to my lack of time but also because I have not released one single piece of software all year! I decided that, since I was just hopping into the land of twitter and I found it complicated to manage my twitter status and my facebook status, that I would write a small app that would allow me to update the status of each site either concurrently or independently.
Specifications
support...
Posted by Eric Polerecky in ASP.NET MVC, CTE, SQL, jQueryDec 3rd, 2008 | 4 Comments
Note: This code does not support caching or security trimming. It is simply a way to build something that compares to the .NET TreeView control using the MVC pattern.
Recently one of my clients had the "perfect storm" of requirements, restrictions, deadlines and policies that lead to the need to develop a MVC TreeView(ish) control.
Requirements:
Database storage – Site administrations needed a simple interface into editing and I was not about to write something to update XML files.
NOT use the SQL Service Broker for easy SQL caching support – Security concerns….I...