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  |  

Affordable ASP.NET Hosting Service
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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