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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ajax in dotnetnukeajax in dotnetnuke
Previous
 
Next
New Post
8/16/2008 8:26 AM
 

 hi dotnetnuke community ,

    1. i am using dotnetnuke version 4.8.4 using asp.net with c#.

    2. i need to use ajax in my module.

    3. how to do?

    4. Module Description: group of images are loaded on right side. when i click the particular image . the clicked image will load on leftside.this is my module         concept.this module is worked fine.

    5. my issue : when i clicked the particular rightside image , before loading the selected/clicked image will take browser refresh then show on leftside.
   
   
    6. wanted : For every selected/clicked image will not refresh the browser. just click and display .

       i discussed my friend:- we r told use ajax concept. but i dont know  how to implement the ajax in dotnetnuke?

    any idea ?

    reply pls..

    thanks

             beginner developer

    

   


   

   

 
New Post
8/16/2008 11:19 AM
 

Here are some steps.

If you are creating a PA for your module, then make sure user control (ascx file) has the following tag turned on

 

If you've already installed your module, go thru Host/Module Definitions and update your user control and make sure the Supports Partial Rendering flag is checked.

On your ascx page, make sure you encapsulate your control in a regular Panel (yes, you can use tables if you so desire - so choice is yours)...
On the code behind for your page, add some logic like the following in the page load event.

If Framework.AJAX.IsInstalled Then
                upFeedbackCategories = Framework.AJAX.WrapUpdatePanelControl(tblFeedbackCategories, True)
                 Framework.AJAX.WrapUpdatePanelControl(tblCurrentform, True)
End If

Note that there are two examples provided above, both are using tables but one allows me to reference which table is being modified while the other is simply an AJAX enabled table. The reason for this is that in my case I wanted to be able to refresh certain areas of the page while leaving other areas/sections the same. If you get a reference to the updatepanel, you can do that without any problems.

Now, with your images, if they are created dynamically, you'd have to hook click events to the images and create the neccessary events in the code behind. If they are hard coded on your page, you could simply hook the click events to each of the images and then process it appropriately. In your case, I'd process the click event, update the left side panel/table and then issue a panel.Update() call - this refreshes the UpdatePanel without refreshing the entire page.


Try this out and let me know if something doesn't make sense.

Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
8/16/2008 3:48 PM
 

 

Hi Sanjay,
 
I was looking for DNN/AJAX information and saw this post. Is it possible to use AJAX to communicate with the DNN data provider infrastructure? Currently I use MS components like ObjectDataSource and GridView. Would you have to call a web service first that then called a provider function.
 
Thanks,
 
G.M.
 
New Post
8/18/2008 1:24 PM
 

George - I'm not sure why it would not work. If you're calling something that is unique only to the dataprovider class itself, then wouldn't you have a circular reference in your project since the typically your dataprovider project references your module project but in your case the module class would need to reference the dataprovider class too...

I've done stuff like calling sprocs which return data via the dataprovider classes with AJAX (doing it right now with the Feedback module too) and haven't encountered any errors...

Maybe I'm totally misunderstanding your question - only other thought I can think of is if you're trying to use AJAX outside DNN and wondering whether you can use AJAX to talk to a DNN dataprovider - but I'll let you explain if this is the case..

Sanjay

 


AcuitiDP - Oracle Data Provider for DotNetNuke
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ajax in dotnetnukeajax in dotnetnuke


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