DHTML Forum  

Go Back   DHTML Forum > dhtmlcentral.com > Off-topic
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09.03.2005, 06:06
wranlon wranlon is offline
Erfahrener Benutzer
 
Join Date: 14.08.2001
Location: USA
Posts: 465
Default

Thought some of you might be interested in this. I recently added a blog topic, [url="http://www.whitefrost.com/blog.jsp?record_id=49"]ASPX .NET: Code In Front[/url:cnnwioi31e], including a link to a downloadable example, on how my [url="http://www.whitefrost.com/projects/engine/"]Engine[/url:cnnwioi31e] project can be used to instrument XMLHTTP calls to the server and, in a rather kludged fashion befitting a demo, invoking a delegate to a specified or custom event handler. For those who don't care for my tongue-in-cheek ramblings, you can skip down about half-way for a basic outline on how I made the example.

The setup isn't very clean, but can be done by adding a few lines to the class for the ASPX, pasting some static HTML into the page, and adding a static HTML attribute to any element (at the moment, the downloadable demo just uses buttons) you want to use XMLHTTP instead of the default full page post.

In other words, in the demo, you click your button and your code gets invoked on the server. The client-side code does not break the default operation, so browsers that don't support XMLHTTP continue as normal.


Stephen W. Cote
wranlon@hotmail.com
http://www.whitefrost.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 03:39.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.