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.0ClientAPI/AjaxClientAPI/Ajax
Previous
 
Next
New Post
6/18/2007 11:00 AM
 

I am building a custom DNN module with Ajax features targeting DNN version 4.5.2 and later.

The code that I am converting to this new module uses a timer in javascript to do a callback to the server. It seems to me that this would fall under ClientAPI.

My situation is that doing a google search on "DotNetNuke ClientAPI" or "DotNetNuke Ajax" returns results from various stages and versions of DotNetNuke, ClientAPI, and Ajax. It is really hard to determine if the latest version of DNN does things an entirely different way than some of these code samples I find.

How do I implement the javascript callback to the server using the latest features of DNN version 4.5.2 or later? Source code would even be better.

 
New Post
6/18/2007 2:16 PM
 

Probably the easiest thing to do is look at the module from this blog.


 
New Post
6/18/2007 4:12 PM
 

Jon,

That's one of the articles that I already looked. I just downloaded and installed it. I'm using DNN 4.5.3. But it gave me an error:

Error: HelloAjax is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/DotNetNuke_2/DesktopModules/MyCompany - HelloAJAX/HelloAJAX.ascx' does not exist. ---> System.Web.HttpException: The file '/DotNetNuke_2/DesktopModules/MyCompany - HelloAJAX/HelloAJAX.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in D:\Projects\DotNetNuke_04.05.03_Source\Library\Components\Skins\Skin.vb:line 456 --- End of inner exception stack trace ---

That's were I questioned if it was worth trying to debug and fix something that wasn't built to work with this version.

I see in your code you use

  DotNetNuke.Framework.AJAX.RegisterPostBackControl(btnPostBack);

 However I'm trying to use javascript to call the callback. How would I go about doing that?

Great work by the way! 

 

 

 

 
New Post
6/19/2007 6:18 AM
 

Check out these tutorials:
http://www.adefwebserver.com/DotNetNukeHELP/Misc/Dotnetnuke_AJAX_modulei.htm

They should help get you started.
 
New Post
6/19/2007 9:40 AM
 

nickka2 wrote

Jon,

That's one of the articles that I already looked. I just downloaded and installed it. I'm using DNN 4.5.3. But it gave me an error:

Error: HelloAjax is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/DotNetNuke_2/DesktopModules/MyCompany - HelloAJAX/HelloAJAX.ascx' does not exist. ---> System.Web.HttpException: The file '/DotNetNuke_2/DesktopModules/MyCompany - HelloAJAX/HelloAJAX.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in D:\Projects\DotNetNuke_04.05.03_Source\Library\Components\Skins\Skin.vb:line 456 --- End of inner exception stack trace ---

That's were I questioned if it was worth trying to debug and fix something that wasn't built to work with this version.

I see in your code you use

  DotNetNuke.Framework.AJAX.RegisterPostBackControl(btnPostBack);

 However I'm trying to use javascript to call the callback. How would I go about doing that?

Great work by the way! 

 

 

 

I just tried installing it again, and it worked fine.  How did you install the module, and did you use the one labeled Install (HelloAJAX.zip NOT HelloAJAXSource.zip)? 

Also, what code are you referring to?  That module does not call that method.


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ClientAPI/AjaxClientAPI/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