Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  good candidate for Ajax?
Previous Previous
 
Next Next
New Post 4/3/2006 1:08 PM
User is offline Kyle Parker
131 posts
9th Ranked


good candidate for Ajax? 
Jon,
 
I'm trying to get my head around this AJax stuff........
 
I'm currently working on a DNN 3.2.2 project that sells theater tickets online.  I've got the modules mostly completed, but I just can't help myself wanting to use the latest stuff.  One of my modules displays a seating diagram for 200 theater seats as buttons that indicate the seat's status; available, unavailable, or selected by the current user.  I think that this module would benefit from Ajax, but just can't figure out the direction to take.
 
Does this sound like a good candidate for Ajax?  Can you suggest any examples that would be similar?
 
Thanks!
 
New Post 4/3/2006 1:24 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: good candidate for Ajax? 
One possible use is if you want real-time updating of the theater theater as the seats become filled (something along the lines of BloodyFlux's UsersOnline module).  However, if you are simply trying to undestand what AJAX does for you I'd suggest thinking about what you could do if you could automagically invoke a method on the server, from the client.  This could be something cool, or it could be something boring, like updating data from a page.
 
New Post 4/3/2006 2:12 PM
User is offline Kyle Parker
131 posts
9th Ranked


Re: good candidate for Ajax? 

Where do I put my server side code? 

Would it go here:

Public Function RaiseClientAPICallbackEvent(ByVal eventArgument As String) As String Implements DotNetNuke.UI.Utilities.IClientAPICallbackEventHandler.RaiseClientAPICallbackEvent

So, if a user clicks a "seat" button it would pass it's current status, then in the RaiseClientAPICallbackEvent I could save that selection to the database?

 
New Post 4/3/2006 2:43 PM
User is offline Kyle Parker
131 posts
9th Ranked


Re: good candidate for Ajax? 

The BloodyFlux looks pretty cool, I wish the source was available.

I guess that the client polls the server for updates based on a timer event?

 

 
New Post 4/3/2006 2:47 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: good candidate for Ajax? 

Yes, I suggest looking at the HelloAjax sample module I provide in the download section.  I also recommend reviewing the ClientAPI Client Callback document there as well (if you haven't already).

Yes, the seat could be reserved to the database, additionally you could continuously poll for the current seat availablility by sending down a delimited list of seats and their statuses...


 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  good candidate for Ajax?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP