Tag | AJAX Posts

Scenario: The user wants to save something and hits the Save button (type=submit). The event performs an Ajax call to send the request to the server. The user, being unaware or not sure if their request is being processed or if they clicked the Save button properly, click it again, and again, causing several Ajax requests, which could be a real problem, if the update is to, for example, transfer funds to your ex-girlfriend's account The solution: Prevent the user from being able to click the Save ...
I had looked up the LoadControl(“”) method earlier today, and came upon a short website entry that quickly discussed how to load a web user control (.ascx) dynamically onto a page. The link is: http://www.codeproject.com/... It mentioned inside that a CMS (content management system) could be built using this method + a database table to track these controls. It got me intrigued, so I decided to pursue it. It’s pretty simple, and actually adds a lot of cool functionality ...
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 ...
In this Issue: Rick Barraza, Colin Blair, Joe Stagner, Chris Klug, Andrea Boschin, Laurent Bugnion, and Al Pascual. Shoutout: Blendables announced a New Desklighter Build in Labs , but I can't seem to get the link to open for me... give it a shot and see how it looks :) From SilverlightCream.com: Advanced Render Techniques with WriteableBitmaps If you ever wanted to wipe that smirk off the Mona Lisa, now's your chance... I thoughtRick Barraza's last post was fun to play with but wow is this cool... ...
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 ...
I will be speaking at next few Code Camps in FL. Writing Widgets for WindowsMobile 6.5 “How to write a basic widget & use Widget API. How to use AJAX to talk back to your .NET application.” Here are the dates: 1. Jacksonville Code Camp - Saturday, August, 29, 2009 http://www.jaxcodecamp.com/... 2. Tallahassee Code Camp - Saturday, September 5th, 2009 http://www.tallycodecamp.or... 3 SW Florida Code Camp - Saturday, ...
Yes I know it's been a while since I blogged about my *favorite* development tool... but that's only because I haven't had to touch it! That smooth series of events was shattered yesterday with me experiencing the Thrill of Victory and Agony of Defeat in multiple cycles... and as you can guess it involved Crystal Reports. So here's the deal... I'm working inside what a fellow developer called a 'Draconian' environment. .NET 2.0 is the 'standard' although I installed 3.5 SP1 on this box (and either ...
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 ...
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 ...
MyTimelineOnline is a unique blogging website featuring advanced controls that allows users to document their life, or the life of a loved one and to share their collective experiences within their social network and with the world. MyTimelineOnline features a control originally designed by MIT and converted to .NET by Rob Chartier. The timeline view allows users to quickly navigate several years' worth of postings to explore what events occurred in their own life or the lives of others. The site ...
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 ...
UPDATE dated August 17, 2009 Once I posted this entry, there is a lot of interest that has been shown and few queries as well. So I thought I need to update this post. This is only the first post in the series on ASP.NET 4.0 fetaures. There are lot of ground breaking things and other enhancements that are pretty exciting. To the folks who asked for "why MS changing dev platform once in 18 months" There is no change. there are a few enhancements. Post .NET 2.0 there have been a lot of additional APIs ...
(this is a repost since the initial post had a few issues that couldn’t be corrected) I am playing with the ASP.NET 4.0 QueryExtender released as a part of the Visual Studio 2010 Beta 1. It provides endless opportunities for working with data without writing much code and when you combine it with a few Ajax features, gives a truly great user experience with very less effort. To begin with you need the Visual Studio 2010 Beta 1 and .NET Framework 4.0 Beta 1. You can install both from http://msdn.microsoft.com/h... ...
1. Create a CSS Class that allows you to highlight invalid inputs and display messages in a pretty way input.error { background: #fed; border: 1px solid red; } 2. Create validators.js. Here are the contents from that file: ValidatorCommonOnSubmit = function() { ClearValidatorCallouts(); var result = SetValidatorCallouts(); return result; } ValidatorValidate = function(val, validationGroup, event) { val.isvalid = true; if ((typeof(val.enabled) == 'undefined' || val.enabled != false) && IsValidationGroupMatch(val, ...
"...Flexible software systems require a foundation that supplies the basic system services that's easy for developers to use, yet powerful enough to support complex and flexible systems—in other words, a framework..." The second article by Bogdan Zamfir written & published on DevX continues to develop the Mini CMS system with the Visual WebGui Web & Cloud Platform (a followup article to: Creating a Prptotype) which will get some base components that represent the actual workplace. "...These ...
Jestem programista .Net. I jestem programista wygodnym. Lubie poswiecac czas na szukanie narzedzi, które w przyszlosci pozwola mi oszczedzic czas. No i najwazniejszym pytaniem jest oczywiscie – czy to jest oplacalne? Czy wiecej czasu zaoszczedze uzywajac tych narzedzi/projektów/przydatnych kodów zródlowych, niz strace na ich wyszukiwanie? Do tego trzeba tez doliczyc obciazenie spowodowane przystosowaniem do nowych technologii i poswiecenie jednego projektu na pastwe losu (bo zawsze moze sie nie udac ...
Problem: I have a FormView inside an update panel inside a repeater. When i change the FormView to edit mode, and update text in my textbox (also with inserting text), the text that is inserted isn't adding in the linebreaks i input. If i set EnablePartialRendering="False" for the page it works correctly. This makes me think it's an error with AJAX and the update panel. I have checked the database to see what is being inputted and it seems the difference between using IE and Firefox/Safari is that ...
I would like to direct your attention to an interesting article targeted for Web developers and more specifically ASP.NET developers who would like to learn a way to focus their development efforts on algorithms, requirements and business logics using a new, highly productive, boosted web development paradigm which provides maximal flexibility, interoperability and interactivity with any other web applications, controls set and architectures. The article compares between traditional web development ...
My general rule of thumb (which I actually read on some other site or blog, or maybe in a book or on the msdn?) is that if you plan on using a control once or twice, use a web user control. If, however, you want to use it all over your program, you should invest the time to make it a server control. They are much easier to use in the program (in the long-term), since they allow you to drag and drop them from the toolbox and you can pass them between programs easier as a DLL instead of a .ascx file. ...
A while ago I was building a tree and I decided that it would be a great idea to load its branches on demand. At the moment, the best way I could figure out to do this was using some JavaScript and my beloved PageMethods. After coding and coding I got it working, and it worked wonderfully... The day came when my tree was moved to the production environment, where it would use a big data hierarchy. The main issue was that some of the branches loaded lots of data, and when I expanded one of them I ...
The SES Investigator application is a tool developed to allow law enforcement investigators to store case information in a central repository that is accessible and shared with other investigators in the task force. The main reasons that lead for the development of this new version of the Investigator application was the requirement to move from a single user version to a multi-user version that would also allow the system to be used while still in the field. The first version of the application ...
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 ...
In this post, I will explain you how can we show Loading message in asp.net ajax without using Update Progress. Now some one may asked, why do I want to skip Update Progress ? Well, there can be several reasons for this, fist of all you have to work on every single page, and on every update panel to get the update progress working. There are basically three methods of meeting this requirement. Using Master Pages : A very smart way, but not all of us are using them .. right ? Extending Page Class ...
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 ...
The following post is taken from an article that explore the differences, pros, cons and usages scenarios of the Server empowered web architecture of Visual WebGui and on the other side the Client empowered web architecture features by solutions such as Classic AJAX, Flex/Flash, Classic Silverlight, Java Applets. Both server and client empowered solutions can support any kind of UI look & feel using Silverlight or rich AJAX. Client empowered applications support the highest performance in applications ...
While testing an AJAX enabled web app I sometimes stumbled upon this script error: 'this.get_element().style' is null or not an object. It was a hard nut to crack this one. This was the actual message (in dutch, sorry ): 12.00 Normal 0 21 false false false NL-BE X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standaardta... mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; ...
When I set up my first KiGG site, I was surprised to discover that I had to manually publish articles. I assumed it would be an automated process that would run once a day. Since there are times I may not be able to log into my website, I set about figuring out how to automate the process. I should note that during this process, I didn’t use best practices. I had one requirement: make a program that I can schedule to publish stories on KiGG. I wasn’t really sure what I would need to go about doing ...
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 ...
Where Have I Been? I got to checking out old blog posts today and realized it’s been months since I’ve had the time to sit and put up a post. That’s not to say that a lot hasn’t been going on so I figured it’s time to post. Since my last post (which, btw, was posted while I was in Las Vegas for Mix09 in March I have been: Traveling – I’ve spent time touring Rome, Italy, working in Bangalore, India, and working on projects in Denver, CO and Reno, NV. My job doesn’t generally call for travel so when ...
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 ...
I went to the Twin Cities Languages User Group meeting last night. The topic was Esoteric Programming Languages and it was quite interesting. Jason Bock (also the UG leader) showed several different examples of languages that you'll never use in your day job, but were still pretty cool (mostly.) The one I was most interested in was Befunge (Wikipedia: http://en.wikipedia.org/wik... which is a 2-dimensional interpreted language that can modify/generate its own code while running. The whole ...
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;} ...
After a year of answering questions at the WebParts and Personalization forum section, I consider the following items below as “frequently asked questions”. I decided to write this so that I can point them to this post whenever I find a question that can be found here. The following are the list of items that I consider as FAQ: 1. How to Get Started with ASP.NET WebParts? ASP.NET Web Parts Overview ASP.NET WebPart Controls Implementing ASP.NET WebParts with Different Authentication modes Video: Utilizing ...
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... ...
Following my FUNdaments presentation tonight to the East Bay .NET user group on the options available to ASP.NET developers for using AJAX type methods for grabbing information/content from a server from the client side browser, the code can be found here and the presentation can be found here. Once again Beth Massi rocked on the main presentation about VB10, C# 4.0 and Visual Studio 2010. Lots of goodies to look forward to. That said it cracks me up that MSFT is adding more capabilities to facilitate ...
Hey everybody! This is my first post so I guess I should start by introducing myself. My name is Sebastian, actually is Sebastián since I'm from Argentina, and as many of you guys, I develop software, not only for a living, but also for the mere joy of building things! I've been working with ASP.NET for over a year and a half, and I really enjoy developing web apps, specially when it comes to using JavaScript to bring flexibility and agility to the websites! My idea is to use this blog to share some ...
Being ASP.NET based Visual WebGui is coded, parsed and executed on top of .NET and is most native application nature for Windows Azure, Amazon and other cloud providers. Having an optimized received & sent data actually concludes in lowering the transportation and the costs when it comes to cloud deployment. The highest request-per-second compared to any other AJAX infrastructure proves the simple fact!, the CPU is much less occupied with allocations & disposals of objects and results again ...
If you’ve ever written a standard .NET ASMX web service before, you know the drill. You make your service, build out your web methods, publish your service, make your consuming web project, point your project to your service via a web reference, and voila! You get strongly-typed proxy classes auto-generated for your web service consumption pleasure… But this comes at a great cost. WSDL is slow, clunky, and bloated. All that proxy code that is generated results in serializing, packaging, unpacking, ...
More often than not i see redundant code for displaying popups with AJAX and encapsulated markup in copy/paste html containers. This might seem like an easy and fast way to program at first, but as soon as you need to change the popup location of those 50 dialogs, or change the blue backgrounds to green on those 30 rounded-corner containers, you (should) start thinking about how you can improve these tasks. Templating allows us to reuse our controls and to avoid the mess that copy/paste code creates. ...
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 ...
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 ...
Scenario: You are using the jqGrid to edit rows that contain fields that are of HTML tag type "SELECT". Problem: You do not want to hard code the values of the select tag like in the jqGrid samples. For example: editoption: { value: "FE:FedEx; IN:InTime; TN:TNT" } Solution: For example to load a list of countries dynamically, define the variable before the definition of the jqGrid: //get all countries var countries = $.ajax({url: $('#ajaxAllCountriesUrl').v... async: false, success: function(data, ...