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  |  

telerik -- supercharge your DNN websites
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  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  General DotNetN...  Extend It! ( Pr...  loading module content with AJAX?
Previous Previous
 
Next Next
New Post 6/9/2008 9:41 PM
User is offline Mark Hollas
200 posts
www.cambridgeeikaiwaschool.com
9th Ranked


loading module content with AJAX? 

Sorry if this is out of the scope of this forum but I would appreciate the help on this.

I am not very familiar with the workings of AJAX but I would like to know if the following can be accomplished.

I am working on a module workflow that is a link that loads content thumbnails specific to that user. We can do this quite easily using a 'ctl' parameter but that would open a page with no only the modules content correct?

What I would rather see happen is that the module loads the thumbnails within the module bounds on the page it resides. I know AJAX is ment for loading content without pageback so could this be done?

Thanks in advance for the help

Mark

 
New Post 6/10/2008 7:08 AM
User is offline Rafe Kemmis
77 posts
www.kemmis.info/blog/
10th Ranked


Re: loading module content with AJAX? 

Mark, I would check out the intro videos on asp.net ajax here: http://www.asp.net/learn/ajax-videos/

They give a pretty good overview of how to use an update panel, and they also introduce you to some of the controls in the asp.net ajax control toolkit.

 

 
New Post 6/10/2008 9:15 AM
User is offline Golden Snitch
32 posts
10th Ranked


Re: loading module content with AJAX? 

Don't navigate to other module controls using EditURL (aka the ctl query string parameter).  Either do everything in one control (using AJAX or not) or do something like the Events module does and loads the module controls into the "main" control based on it's own criteria.  See Events.ascx.vb in the Event module source code for most of the code that does this.

 
New Post 6/11/2008 6:04 PM
User is offline Snoek8
51 posts
www.mexmax-internet.com
10th Ranked


Re: loading module content with AJAX? 

You say you would like to use Ajax so I am presuming the data loading occurs after a user action like clicking a button. In that case you do not need to know anything about Ajax to make it happen in Dotnetnuke. Make sure the control does not do a redirect when the button is clicked but that it performs a postback. Then just go to the ModuleDefinition for your module and edit it´s View control. There you select "Supports partial rendering". What this does is place the entire content of your module inside an Ajax update panel. All controls that do a postback will now perform an Ajax call and your results are loaded without reloading the entire page.

Stephan
http://www.mexmax-internet.com  

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  loading module content with 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.

 


Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com

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