client-side

Javascript Validation not working on .Net Content Pages...

I'm wondering if anyone else has experienced the following issue. On a single non-linked (to a master page) .aspx page, I'm performing simple JS validations: function validateMaxTrans(sender, args) { // requires at least one digit, numeric only characters var error = true; var regexp = new RegExp("^[0-9]{1,40...

Using JQuery in lost focus event handler to identify which row in GridView has modified text

I've got a textbox in an ItemTemplate inside of a standard ASP.NET GridView. The textbox (from DevExpress) supports a client-side event 'LostFocus'. From the LostFocus event handler, I'd like to retrieve the value of that textbox as well as the value of several other fields in that row of the grid, so that I can update one of those other...

Create a text file on client-side programatically

We have a Ruby-on-rails server-side deployment that needs to allow users to download a pre-compiled self-extracting Windows EXE file on their computer. We also need to generate a text file dynamically (based on the users id) and deploy it somewhere on the client machine where the EXE can find it. We have 2 options: Generate this tex...

Asp.net Validators not Firing

I am doing some work on a legacy project, one that has been upgraded through the years from 1.1, to 2.0, and is now set at 3.5. Currently I am having some issues with required field validators not running when I click submit. It's a pretty simple setup. I have two textboxes, I need both to be filled when a user clicks submit, I have...

Asp.net Cache Dropdown Data on Client

We would like to cache data for some dropdown lists on the client machine to reduce the transfer of slow changing info. This data will be used on multiple pages within a business app so for example a customer list of 5,000 customers is frequently used either for searching, creating a sales order, or other purposes. We've tried both full...

Blocking access to a page in Page_Load method

I have a page that do some validations in Page_Load method According this validation i need to block the access to this page. Example: protected void Page_Load(object sender, EventArgs e){ if (!IsPostBack) { if (MyValidation) { // The page is loaded an de user get access } else { // Here, i need to block th...

Testing clients for public web services

What are approaches to test custom clients for public web services? Today there are many online services which provide an API. There is a boom of little apps using those APIs. Examples: desktop/mobile clients for social networks and blogging platforms, document storage and processing centers, cloud databases, real-time data streams, GIS...

voting - stopping abuse from client side - ASP.NET MVC

so I have designed this voting thing which does not let somebody vote for the same article twice in 24 hours. However, suppose a person votes and after seeing the person was able to cast vote or that he is falling in that 24 hour window, I disable the vote-casting button (and this is all Ajax btw). But what to do when a person closes h...

Decoupling HTML from JavaScript in bookmarklet

(Can't think of a good title :(( ) Hey all, I'm developing a bookmarklet. When clicked on it creates a toolbar on the page the user is looking at. The above involves pulling various javascript and css files from my server and injecting them into the pages DOM. I don't want to encode toolbar's HTML as a string inside one of my javascr...

Why is all my content disappearing when I turn on client validation in ASP.NET MVC 2 RC2?

I am using the following partial to render the editor for the Create and Edit pages: PersonEditor.ascx <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyProj.ViewModels.PersonEditorViewModel>" %> <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript" /> <script src="../../Scripts/MicrosoftMvcValidation....

Bug? Client-side validation in ASP.NET MVC 2 causes ValidationSummary message to show even if there is no error

With client-side validation turned on in ASP.NET MVC 2 RC2, the validation summary message is visible even when I first load my Edit.aspx page. It does not show in bold red, however, just plain text. If I submit the form with an error, then the validation summary message turns bold red, and a list of errors appears below. Here is the co...

What web technology to opt for to offer interactive colouring?

A customer has asked us to a add a feature to his website allowing visitors to colour in panels in a simple line drawing. The website visitor will have a limited palette to choose from and will select a colour and click in a shape within the line drawing to colour it in as in: There will only be four or five of these line drawings. T...

What are good resources for a backend developer wanting to learn client-side programming in the browser?

I want to learn how to write the Javascript/CSS/HTML side of my applications but I want to skip the CSS kludges, bad Javascript, and non-semanitic HTML of the past and jump directly to HTML 5, CSS 3, clean Javascript libraries. I've been reading Mark Pilgrim's Dive In HTML 5 which I think is awesome and now I'd like the equivilent books ...

How far can I go with JavaScript?

I need to do as much as possible on the client side. In more details, I would like to use JavaScript to code an interface (which displays information to the user and which accepts and processes response from the user). I would like to use the web serve just to take a date file from there and then to send a modified data file back. In thi...

Mixing server & client controls, event handling

This is a recurring question on many forums, and I have a working solution, but it is ugly. I need to disable buttons after a click to prevent double-submission of a form. I do this by changing the css class, which will disable and dim the image. Because the JavaScript consists of both litteral and generated parts, and I am mixing clien...

How to store user actions/answers while taking an online exam to be retrieved if connection is down?

For an online examination system, user actions/answers to be stored and later retrieved if user connection is down. Which logic should be preferred, client side logic [cookie], or server side logic [Session/Database]? [Edit] How user answers will be stored? using specific timer interval for storing user answers? or after specific parts...

What steps do you take with VS 2008 to reduce development time with Javascript?

I am seeking your stories on how you have streamlined your client side development with Visual Studio. In particular, it seems that I need to build my site too often in order for changes to pushed down to IE effectively. What shortcuts or tools like FireBug, etc. do you use for your client side development? Do you avoid Visual Studio ...

Implementing a client side sort on a page after loading

I am developing a web-app which displays a list of products(say 10 items) for the user. The user has the option to sort the result by price, brand etc. The data is loaded from the database and it is pretty small list. How do I do sort the results by their attributes, which is constant. Enlighten me on implementing the client side sorting...

How should my application keep clients in sync with schema changes to HTML5 databases?

I'm wanting to incorporate HTML5 database storage into my web application to make it online-accessible. I've done lots of development in server-side environments with databases, and we all know that database schema additions and modifications are often necessary. I am wondering what should happen if my application uses an offline datab...

run threads on server side & show progress on client side possible???

I want to run a thread pool on server side & want to show threads work progress on client side. Is this possible. If so kindly guide me. thanx in advance ...