Tag | jQuery Posts

The first bug I was asked to fix, here, was a bug in the Q Framework. Our websites use a little pop-up, calendar datepicker (I believe it's the jQuery datepicker, but I'd have to check). The problem we were experiencing is when we added a UK client. As most of you know, the UK displays dates in DD-MM-YYYY format as opposed to the US MM-DD-YYYY format. This trivial detail actually has a wide range of implications. First of all, any US-oriented datepicker is going to have a conniption if you pass it ...
Scenario: Hijack all my save buttons via the script below to override the value, from Save to Saving...., and then also disabling the button so they cannot hit it 1000 times. $(document).ready(function() { form.find(':submit').each(f... { $(this).attr("disabled", "disabled").val("Saving...."); }); }); The Issue: I have several submit type buttons on the page, like Save, Sand and Proceed, Delete, etc, so I use the Request.Form object to see what button was pressed to decide what to do. Well, ...
We’re less than a month away from the Software Development and Evolution conference, and I wanted to send an update on a few things. Student Pricing If you’re a college and university student, we want to make it affordable for you to come out so we’re offering a $75 student rate starting today! Be advised that if you register under the student rate, you must present valid college or university issued identification when you arrive at the event. Visit the event website for more info, or go straight ...
For many customers the ROI on software licences is one of the key factors when purchasing software, so when deploying an e-Commerce solution the level of return for frameworks, and CMS platforms such as Commerce Server and MOSS are quite justifiable, however it is the extra features – such as the Store Locator that is difficult spending licensing money on. The current store locator within CS 2009 is based on a commercial Microsoft Virtual Earth web-service, which is provided for non-developer used ...
Goal: jQuery AutoComplete in ASP.NET MVC Framework with callback to customize result Platform/Environment: Asp.Net Mvc version 1 jQuery 1.3.2 Autocomplete - jQuery plugin 1.0.2 Quick Solution: Here I am simply returning a list of account names: $('#Name').autocomplete( $('#ajaxListMatchingAccount... { delay: 10, minChars: 3, matchSubset: 1, matchContains: 1, cacheLength: 10, autoFill: true, mustMatch: false, selectFirst: true, max: 15 } ); ajaxListMatchingAccountName... - this is a ...
Normal 0 false false false 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-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"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Issue: I have a grid which I have what I can only describe as containing “Core” data and “Minor” data. What I'd like to be able to do is to show the Core data in the main grid view but to allow the user to add/edit/view the Core and Minor data when they open the relevant dialog. In essence this would be like having hidden columns that were viewable/editable when the dialogs were opened with form editing/viewing. The Minor data is only of interest to some users, so I don't want to show it in the main ...
In a previous post, I showed how to submit an AJAX form in MVC with the jQuery Thickbox and the built-in MVC AJAX helpers. If you read that post first, it will show the complete context for how to simply submit an AJAX form that is being rendered inside a jQuery Thickbox with built-in MVC AJAX helpers. But what if you want to stick to a pure jQuery solution? That is also simple enough to do. Instead of using the Ajax.BeginForm() method, you can use the jQuery Form Plugin. The code is almost identical ...
A relatively common scenario you might want in your application is the ability for a user to click a link that pops up a little dialog to submit some information. For example, let’s say you have this form where the user could click the “Contact this person” link: After clicking this link, it pops up the following dialog where the user can type in their message: Finally, once the user submits their message, it shows a little confirmation: This scenario can be implemented with MVC with very few lines ...
Scenario: You have a drop down box or list box in your jQuery jqGrid plugin and you edit the row via the form edit modal dialog but the form fails to show your selected option(s) in the drop down or list box. The reason: The jqGrid SELECT element binds the selected option(s) innerHTML (not the value) with the name value in the colModel. Example: In the JavaScript file I have a function that I call to setup the grid: function jqGridAccountContact(item, listURL, editURL, $rows, hideGrid) { //get all ...
On October 14th, 2009, Winnipeg will be the site of the first annual SDEC09 – Software Development and Evolution Conference, hosted by Protegra! We’re really excited to put this on and think its going to be an awesome event! The cost of the conference is $100 until September 18th and $150 after that. What do you get for that low admission fee? Three Tracks of Sessions: Development Foundation Skills Learn best practices on how to use developmental skills such as test driven development, SOLID principles, ...
The scenario: You have some text that is too long in for example a textarea and want to be able to truncate it client-side and only display a maximum amount of characters. You also want to add the ability for the user to dynamically expand the text by clicking the "more..." link appended to the text. The concern: This is not Ajax enabled and the entire text is rendered to the client and the text extending beyond the maximum is hidden. If the text you want to hide is very large it may suffice the ...
This is a part of EXT JS Tutorial To successfully carry out everything that has been described in this article you need: Normal 0 21 false false false PL JA X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standardowy; 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:0cm; mso-para-margin-bottom:.000... line-height:115%; ...
In my previous blog post, I have discussed about how to get asynchronous JQuery treevew to work with ASP.NET Webservices, and we identified that, to make a successful ASP.NET webservice call using JQuery the request must be POST request, the content type of the request must be “application/json; charset=utf-8”, and the data parameter of the the $.ajax() method must be passed as a string. We also looked at the tweaks that we need to do to the jquery.treeview.async.js file to get that working. However ...
Was doing some research this morning, as usual, and came across a post from Giulio Bai on jQuery performance tips. A lot of his tips are things I’ve heard elsewhere (no offense!), but one that I haven’t seen anywhere and for some reason surprised me is that using a the JavaScript provided for() loop is considerably faster than using jQuery’s each() function. In fact, it can be several orders of magnitude faster depending on what you’re doing. Interesting. Link to his post Technorati Tags: jQuery,performance ...
I had one of those problems that I had trouble resolving with a search engine this past weekend. Once it was pointed out to me what I did wrong, it was really quite simple. Basically, I needed the enter key to fire a function from a certain input textbox. I wrote up a jquery script, and it worked for IE, Chrome, and Safari, but it did not work for Firefox. Here was the script. $("#Location").keydown(func... { switch (event.keyCode) { case 13: findFresh(); break; } }); Do you see the problem? ...
I didn’t leave work until 8PM this evening. I was wrestling with a JavaScript/JQuery problem and it became a personal battle to bend this application to my will. (Maybe in some future post I’ll talk about how horrible that is.) So I didn’t get it before I left, but I came home and started hitting it here on a test project. There seems like there are probably some scripting conflicts in our project (we have the JQuery stuff and prototype in there), so it didn’t take be but about a half-hour at home ...
I realize I have been quite quiet lately. This is due to three main things: One, I started a new job with AdventureTech Group, Inc.. I am consulting again, and I am liking it much more this time around. AdventureTech is an awesome company and everyone I’ve met has been outstanding. All the developers are top-notch and I can’t wait to get a chance to learn from all of them. Second, I’ve been preparing my presentations for the St. Louis Day of Dot Net. I am totally excited about going to St. Louis ...
So today I poked the proverbial sleeping bear that is the web-dev community by making this statement on Twitter: I'm a day in to using jquery and I'm already questioning why having an abstraction over a script-kiddie language is a good idea. This of course resulted in a flood of tweets in response asking if I was joking, suggesting that I fill my purse for the ensuing fight, and Caleb Jenkins yelling “One Flag”. I think I convinced people to put down the pitchforks and douse the torches (us Canadians ...
Translation of original post by Scott Guthrie: / Tlumaczenie oryginalnego posta napisanego przez Scott’a Guthrie: http://weblogs.asp.net/scot... Zespól ASP.NET wlasnie opublikowal pierwszy preview nowej wersji ASP.NET MVC – MVC Version 2. Mozesz pobrac go tutaj. Preview 1 dziala w srodowisku .NET 3.5 SP1 i VS 2008, i moze byc zainstalowane równolegle z ASP.NET MVC 1.0 (co oznacza, iz nie pojawi sie miedzy nimi konflikt, a dotad dzialajace ...
Yet another internal .NET Team email in my current company, Injazat Data Systems, that I sent yesterday, and am sharing with you as well. jQuery: · Simplify calling ASP.NET AJAX services from jQuery · Use jQuery and ASP.NET AJAX to build a client side Repeater · Reordering invoice lines using jqGrid and TableDND extension · LA.NET jQuery Posts/Articles Agile · Implementing Scrum ASP.NET · Web Development With ASP.NET Learning Material (Course - Source: MSDN Ramp up Learning Program) · ASP.NET Articles ...
Incorporating the jQuery Grid With ASP.NET MVC Scenario: You have an ASP.NET MVC application and don't want to custom build smart controls like the ASP.NET GridView, ListView, etc, that support sorting and paging, as well as filtering and searching for data, and all of this using Ajax. Solution: The jQuery Grid plug-in. What tools/plug-ins do I need? jQuery version 1.3 and up jqGrid version 3 and up (this post references version 3.4.4) A strong cup of coffee In the past you had to also add the jQuery ...
Hi all , I recently was working with a client that implemented a telerik navigation control as a quicklaunch. They decided to split up all the sub-sites into their own site collection. They wanted to place quotas on subs sites, and if you don't know, you can only set quotas on site collections and not sub sites. This switch or splitting of sites posed some interesting problems. 1) Telerik Control now needed to be added to each sub site for navigation. The control specifics were added to a master ...
Normal 0 false false false 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-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"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Normal 0 false false false 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-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"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Allow me to quote here some emails I sent to the the Dot NET developers group in my company, Injazat, or, as we call ourselves, Ninjazat. I thought it’ll be useful to share some with you as well. · ASP.NET MVC - 20 Hours of FREE Video Tutorials · LINQ FAQ o LINQ FAQ for Newbie’s o LINQ FAQ Part 2 · How we handle application configuration · ScottGu ASPNETMVC Session Video Available Now (Part 1/2 & 2/2) · Web Validation: Best Practices and Tutorials · Building a Single Sign On Provider Using ASPNET ...
Tomorrow I will be giving a presentation at Southern Maryland .NET User Group on WCF 3.5 REST. This demo-heavy presentation will cover both building and consuming WCF 3.5 REST services. We will dive into many of the new APIs available in the WCF REST Starter Kit with a nod to new features on the horizon in WCF 4.0. Consuming REST services will be explored through a pure AJAX jQuery client as well as a Silverlight client. The session will also give a brief introduction to ADO.NET Data Services ...
Recently I had to display some hierarchical data in a treeview. I looked around and found JQuery treeview can transforms an unordered list into an expandable and collapsable tree, and supports both location and cookie based persistence. Fig: JQuery Treeview As I was dealing with a large amount of data I needed something that will allow me to navigate through the data asynchronously, and I found jQuery Treeview fits well for my purpose. I found this demo of Lazy Loading Tree and I needed to implement ...
Normal 0 false false false 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-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"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
A list of my favorite technical books that I found very useful over the years. Most of them are related to CSS, jQuery, DHTML, Ajax, and ASP.NET C#: <A HREF="http... _fcksavedurl=&q... ...
You are using the jqGrid search option but in one instance you want to enable the search but on another you want to disable the search for the same grid. The problem: This cannot be done, in short, by setting the properties dynamically, like so: gridComplete: function() { setGridParam({ gridModel: true, gridNames: false, gridToolbar: true, autosearch: false, enableClear: true, enableSearch: true, toolbar: [true, "top"] }); } Setting the search option dynamically during a loadComplete, or gridComplete, ...

Recently  discovered the following:

Klaus Hartl - Stilbüro : Cookie Plugin for jQuery

Building web-apps using the new MVC-framework for ASP.NET can be challenging if you need to build the boiler-plate code for the SMART controls that come standard with ASP.NET, like the GridView, ListView, etc. However, jQuery's (see jQuery in Action for an excellent resource) plug-in, jqGrid, makes this easy. Although it can be time-consuming to setup the template that specifies the requirements for the grid, it is easy to duplicate once you have it set up. So basically you specify the columns you ...
The scenario: A web app is using the OutputCacheAttribute to set a cache duration for data that has different life spans. The IDE: ASP.NET MVC with Visual Studio 2008 The environment: Web-App on IIS The data that is being retrieved varies greatly in terms of their lifespan: Some data is very static like States, Countries Other data is more fluid, especially during end-user testing, like the load of scripts that have to be fixed occasionally and pushed to production during the day. Especially early ...
Network Monitoring Your web app on the server has plenty of tools and ways to measure performance, as well as tools like SQL-Server Profiler for SQL databases. But how do you trace, track and debug client-side code interactively? The use of alerts has been useful but does not support an interactive way for you to interact with the web-page on the fly. To make matters worse, even if you place some traces into your js code to help find the slow functions, etc, network latency may be another cause of ...
This podcast accompanies the July 1st, 2009 edition of the MSDN Flash newsletter. It includes an interview with Gary Short discussing technical debt and the roll refactoring can play in repaying that debt, plus a discussion of my teams new YouTube channel. Show Notes: Three Men and a Whiteboard discuss ASP.NET MVC Fun look at IE8 web accelerators with Tesco Anti-Patterns to Avoid in Entity Framework N-Tier Applications Web Site Improvements Using jQuery and jQuery UI Great screencasts on WCF, Silverlight ...
In this Issue: Erik Mork, Fons Sonnemans, Ian Blackburn, Lee, and Timmy Kokke. From SilverlightCream.com: Commanding and Adding Commands in Prism Erik Mork has his latest Prism Hypervideo up ... this one is on Commands and commanding ... great job on all these, Erik! ImageSlider in Silverlight 2.0 Fons Sonnemans came across a blog of cool JQuery tutorials and decided to give one of them a shot in Silverlight ... looks like he stuck the dismount to me ... keep them coming, Fons! Pushing Data From ...
The ASP.NET MVC framework was just released as a preview when I started to write my first book (ASP.NET 3.5 Social Networking). In the early days of design decisions for my book I was faced with the problem of building with the MVP pattern or the new MVC pattern/framework. At that time there was next to nothing regarding the use of the ASP.NET MVC framework (proper or improper). Shortly after I got started with my project (which I chose to do in MVP) I was asked to do a review for the ASP.NET MVC ...
Flot is a pure Javascript plotting library for jQuery. It produces graphical plots of arbitrary datasets on-the-fly client-side. The focus is on simple usage (all settings are optional), attractive looks and interactive features like zooming and mouse tracking. The plugin is known to work with Internet Explorer 6/7/8, Firefox 2.x+, Safari 3.0+, Opera 9.5+ and Konqueror 4.x+. If you find a problem, please report it. Drawing is done with the canvas tag introduced by Safari and now available on all ...
JQuery includes powerful ajax features for enriching the experience of a web application. This post will describe the simplest case, using ajax to replace part of a page with new content from the server...

Read the full article

 

So, somehow within the past five years I’ve mapped out my life to lead to a point where I’m sitting here blogging on GeeksWithBlogs.net. I never would have guessed it…lol There’s no need for me to sweat it though. I’m a 23 year old IT college graduate that has a full time software development job, an amazing family, a loving girlfriend, and incredible friends. As one of my co-workers recently put it: “I’m livin’ the dream” :) I'm a former employee of iPay Technologies and currently work for Republic ...
I needed lightbox 2 functionality for a project I'm working on, but didn't want the overhead of having to include prototype, scriptaculous, et al that comes with it since we are already using JQuery. I found the excellent JQuery lightbox plugin written by Leandro Vieira Pinho and works well, but I needed to be able to set the max height and width so I had to mod the code as follows: settings = jQuery.extend({ maxWidth: null, maxHeight: null, ... function _resize_container_image_box... ...
I was trying to implement a simple autocomplete behavior on a textbox using JQuery and the JQuery Autocomplete plugin but it wasn’t as simple as I expected. The basic idea was to get the options from a WCF web service as the user typed. The first obstacle was preparing the Service to accept the calls from the plugin. The plugin accepts a url as the data source and invokes it with two parameters (and a timestamp), q is the query and limit the maximum number of results to return, so I created the following ...
The Dashboard Designer in PerformancePoint Server 2007 gives you the ability to set a number of the properties for the font of a given column in a scorecard including the font-family and the font-size. You can see these settings change in the designer and you can preview the scorecard and see how your scorecard will look when it is deployed. I changed the font in the screenshot above to Wingdings so that you could easily see the difference. In practice this is probably not a typical change, but you ...
The LiveMeeting Q&A session with ScottGu was, as usual, very exciting. As promised, here are some of the highlights from his answers. Microsoft’s Development Process In terms of the development process at Microsoft, Scott said that more projects will be developed with openness, transparency, more frequent releases, relying on customers’ feedback and with OSI open source licenses as in the case of ASP.NET MVC. Silverlight In regards to Silverlight 3 release date, it might be around the July 10th. ...
Here’re the code and slides from my talks on NHibernate and jQuery. And some links mentioned during my talks: NHibernate: NHibernate Documentation NHibernate Mailing List NHibernate in Action NHForge NHibernate Dimecasts Summer of NHibernate NHProf ActiveWriter (for codgenning mappings) jQuery: jQuery UI Next version of my jQuery slideshow RubyMine jQuery Plugin Repository ...
This Saturday I’ll be speaking at Chicago Code Camp which to my initial dismay is not actually in Chicago but an hour or so north. This is probably best since I’ll feel less nerdy for talking about technology all weekend instead of checking out the city. I’ll be giving two presentation: jQuery Magic Get Rolling with NHibernate If you haven’t signed up yet, there’s still time ...
Last Saturday (the 23rd of May), I had the privilege of attending DDD South West at Queen’s College in lovely Taunton. The venue was beautiful, the presentations educational and fun, the company convivial and the food plentiful and delicious. I only wish I’d had more sleep and less beer the night before. I had wondered if the presentations would contain a lot of material from DDD7, but as far as I could tell there was no overlap. I attended sessions on the DLR and dynamic languages, jQuery, refactoring, ...
In this Issue: Nigel Sampson, Jonathan van de Veen, Rod Paddock, Alex Knight, Arturo Toledo, Tim Heuer, Justin Angel, Lee, and David Anson. Shoutouts: There are probably more by now, but at last look, both Jesse Liberty and Alex Golesh had not only dowloaded and installed VS2010, but they're also building Silverlight apps out there... sweet! From SilverlightCream.com: Silverlight 3 Navigation and Google Analytics Nigel Sampson pinged me on this post. I blew right past it two days in a row! Nigel ...
Most awaiting Visual Studio 2010 and .NET 4.0 Beta 1 is available for download now, which include ASP.NET 4.0 enhancements, support for SharePoint development , more support for parallel programming , Cloud computing etc., Here is the quick list of features for developers in Visual Studio 2010 1) Inline Call Hierarchy for better code understanding : This one of the most interesting features of the Visual studio 2010 for developers. This features enables developers to understand the code easily. This ...