20 items found in the Javascript Category

Implementing Google's EU End User Consent Policy

Wednesday, July 29, 2015 9:56 PM

Javascript HTML CSS jQuery

The European Union introduced laws some while ago requiring web sites to obtain consent from EU visitors to allow the use of cookies. Most larger corporate sites have implemented a policy for obtaining consent - or an "implied consent" solution, but countless smaller sites and blogs like mine have not bothered. That's about to change for a number of us who are Google Adsense publishers (we carry Google adverts on our sites) because Google has introduced a new EU user consent policy which must be followed by those of us who use products like Google Adsense (and who want to continue using them). This article is a quick overview of what the policy is about, and how I implemented a quick and effective solution.

Click to read more about Implementing Google's EU End User Consent Policy ...

Viewed 82 times

0 Comments for this item

What ASP.NET Can And Cannot Do

Monday, November 23, 2009 10:26 PM

Javascript General ASP.NET 3.5

If you are new to web development and choose ASP.NET Web Forms as your starting point, you may be forgiven for not understanding how ASP.NET works, and what its role is. This article covers the basics which should help you discover your limits.

Click to read more about What ASP.NET Can And Cannot Do ...

Viewed 51260 times

3 Comments for this item

jQuery Star Rating with ASP.NET MVC

Tuesday, September 8, 2009 1:40 PM

AJAX Javascript jQuery ASP.NET MVC

There are a number of jQuery star rating plugins to choose from. All have their pros and cons. For this site, I decided to implement the one from FyneWorks because it allows for split stars. Here's how I did it.

Click to read more about jQuery Star Rating with ASP.NET MVC ...

Viewed 66579 times

13 Comments for this item

Build your own Whois Lookup with ASP.NET and jQuery

Tuesday, April 14, 2009 10:39 PM

AJAX Javascript ASP.NET 3.5 jQuery

IP addresses can reveal a lot about your web visitors. For an ecommerce site, the owner or registrant of the visitor's IP address can be very useful information. You could paste each visitor IP address into one of the many free IP Lookup sites available, but that can be time-consuming and tedious. Or you could build your own lookup. This article shows how this can be done pretty quickly.

Click to read more about Build your own Whois Lookup with ASP.NET and jQuery ...

Viewed 77777 times

9 Comments for this item

Lazy Loading jQuery Tabs with ASP.NET

Monday, March 2, 2009 7:30 AM

AJAX Javascript ASP.NET 3.5 jQuery

This article looks at efficient use of jQuery tabs when displaying data. Specifically, it covers how to lazy-load data, so that it is only accessed and displayed if the tab is clicked.

Click to read more about Lazy Loading jQuery Tabs with ASP.NET ...

Viewed 134056 times

28 Comments for this item

Persisting the position of jQuery Draggables in ASP.NET

Wednesday, February 4, 2009 10:29 PM

AJAX Javascript ASP.NET 3.5 jQuery

It was bound to happen - you knock up an article on jQuery draggables one day, and the next, someone like Jim ;-) comes along and asks about persisting the position of the dragged item across Postbacks, or even sessions. I suppose it's my fault - I mentioned using draggables in a previous life in the context of saving the position, so it's only fair I share how that's done.

Click to read more about Persisting the position of jQuery Draggables in ASP.NET ...

Viewed 35704 times

16 Comments for this item

Experimenting with jQuery Draggables and ASP.NET

Sunday, February 1, 2009 8:12 AM

Javascript ASP.NET 3.5 jQuery

One of the keystones of modern AJAX-enabled web sites is Drag and Drop. This article looks at the current state of Draggables that form part of the jQuery UI Library.

Click to read more about Experimenting with jQuery Draggables and ASP.NET ...

Viewed 48850 times

6 Comments for this item

Preventing duplicate User Names with ASP.NET and jQuery

Saturday, January 24, 2009 6:18 PM

AJAX Javascript ASP.NET 3.5 jQuery

It's a common problem: you have a registration form, but you want to prevent user names or other values from being used more than once. You need a user-friendly way to prevent duplicate values being submitted. This is where the simplicity of jQuery excels.

Click to read more about Preventing duplicate User Names with ASP.NET and jQuery ...

Viewed 47060 times

24 Comments for this item

Ajax with Classic ASP using jQuery

Saturday, January 17, 2009 11:13 PM

Classic ASP VBScript AJAX Javascript jQuery

My simple article on Ajax with Classic ASP is one of the most popular on this site. So I thought it's about time I updated it to show how to use jQuery to Ajaxify a Classic ASP page. Since I did that, the jQuery version became even more popular but needed to be brought up to date. This latest version uses a couple of suggestions that have been provided by commentors to improve the code. I have also added a download which contains all the code needed to run the samples.

Click to read more about Ajax with Classic ASP using jQuery ...

Viewed 175731 times

14 Comments for this item

Cascading DropDownLists with jQuery and ASP.NET

Tuesday, January 13, 2009 8:47 AM

AJAX Javascript ASP.NET 3.5 jQuery

Cascading DropDownLists or dependent dropdowns are the signature dish for AJAX applications. I spent quite a while fiddling to try to get some to work, before stumbling across a life-saving jQuery plugin that makes working with DropDownLists on the client-side a breeze. This article shows how it all works, and makes use of the WebService I introduced in my previous jQuery article.

Click to read more about Cascading DropDownLists with jQuery and ASP.NET ...

Viewed 135402 times

16 Comments for this item

Handling JSON Arrays returned from ASP.NET Web Services with jQuery

Saturday, January 10, 2009 9:09 AM

AJAX Javascript ASP.NET 3.5 jQuery ASP.NET Web Forms

There appear to be many articles showing how to use jQuery with ASP.NET Web Services around, but the vast majority of them illustrate the use of PageMethods that return a single value - typically "Hello World!" or the current date and time. Not much use in the real world, where you may more often need to call a service that returns a collection of complex objects. Here are a couple of examples that look at playing with more than just simple values.

Click to read more about Handling JSON Arrays returned from ASP.NET Web Services with jQuery ...

Viewed 310746 times

31 Comments for this item

Upload and Crop Images with jQuery, JCrop and ASP.NET

Monday, January 5, 2009 1:54 PM

C# AJAX Javascript ASP.NET 3.5 jQuery

I got given jQuery In Action for Christmas. By nature, I'm kind of a late adopter, and I'm already regretting this fact. jQuery has been around for some time, and I wished I had looked at it sooner. It's a fantastic library that really simplifies Javascript development, and is already attracting a goodly number of plug-ins. JCrop is one such, and while it hasn't yet reached version 1.0, it is remarkably easy to use as a web based image cropper. Here's how to put jQuery, JCrop and a FileUpload control together to allow users to upload images and crop them.

Click to read more about Upload and Crop Images with jQuery, JCrop and ASP.NET ...

Viewed 263265 times

117 Comments for this item

A DataBound Javascript News Ticker for ASP.NET

Thursday, December 25, 2008 2:18 PM

Javascript ASP.NET 3.5

It's funny how requirements come along like buses in the ASP.NET forums - you suddenly get the same thing asked for by two or more people in quick succession. Recently, a couple of people asked for help creating a Javascript ticker, like the one at the top of the BBC News site, which displays a selected number of headlines drawn from a database. I had adapted the code from the BBC site to create a similar widget that displayed the most recent threads in a message board on an old Classic ASP site some time ago. It's about time I dusted it off and updated it for use in an ASP.NET application.

Click to read more about A DataBound Javascript News Ticker for ASP.NET ...

Viewed 47046 times

27 Comments for this item

ViewState, form fields, labels and Javascript

Saturday, August 25, 2007 12:34 PM

ASP.NET 2.0 Javascript ASP.NET Web Forms

An interesting question came up on the ASP.NET forums asking why a TextBox which has its value changed by client-side Javascript persists those changes across postbacks, while a Label does not. And in a nut shell, this question covered two of the biggest causes of confusion among newcomers to ASP.NET: the difference between ViewState and IPostBackDataHandler; and the difference between client-side operations and server-side operations.

Click to read more about ViewState, form fields, labels and Javascript ...

Viewed 53633 times

5 Comments for this item

Javascript functions for form fields

Saturday, May 12, 2007 10:54 PM

Javascript

A number of useful functions for accessing various properties and values of form fields.

Click to read more about Javascript functions for form fields ...

Viewed 10408 times

3 Comments for this item

Recent Comments

Justin Kusuma 7/24/2015 3:38 AM
In response to Posting Data With jQuery AJAX In ASP.NET Razor Web Pages
Hi Mike, thanks much for sharing such an article :) Really help me a lot... further, I'd like to...

Michael Easterbrook 7/22/2015 5:35 PM
In response to Inline Razor Syntax Overview
I removed the @ symbols and I am still getting the same error. It only occurs when I have an "if" a...

Sujay 7/22/2015 1:36 PM
In response to ASP.NET MVC, Entity Framework, One-to-Many and Many-to-Many INSERTS
can you explain how to link two tables so that it forms many to many relationship?(Article and...

Max G 7/21/2015 9:29 PM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
Hi, I've opted for this solution in one of my applications but i've found that the apppool is and I...

Michael Easterbrook 7/20/2015 4:31 PM
In response to Inline Razor Syntax Overview
When I have the following code: @foreach (var procRow in procRowDecade) { if (@procRow[3] +...

Shanice 7/18/2015 10:58 PM
In response to A Better Way To Export Gridviews To Excel
Hi. I'm working with mvc. I need to add the above code in the business logic layer, however the...

Matt 7/18/2015 6:29 PM
In response to Nested Layout Pages with Razor
Cheers sir, nice explanation :)...

Keshavan 7/17/2015 9:06 AM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
Hi Mike, I have followed exactly as illustrated in blog, I get error "StdSchedulerFactory.cs" not...

Paul Thiel 7/16/2015 5:17 PM
In response to ASP.NET 5 By Numbers
Comments Below: "The new version of ASP.NET is called ASP.NET 5. It is a framework for developing...

saket singh 7/16/2015 8:42 AM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
hi Mike, great tutorial on Quartz.net , but i have One Problem , Everything is working fine as as...