Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIgood candidate for Ajax?good candidate for Ajax?
Previous
 
Next
New Post
4/3/2006 3:08 PM
 
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 3:24 PM
 
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 4:12 PM
 

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 4:43 PM
 

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 4:47 PM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIgood candidate for Ajax?good candidate for Ajax?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out