jQuery examples?

Dec 19, 2010 at 4:06 AM

Michael or anyone else, do you have an example of using jQuery or Javascript to call webservices through iWeb? The example I see here is using DotNetNuke's core javascripts, which is cumbersome for our development patterns.

Here's the example I see: 

    DotNetNuke.Modules.IWeb.WebService.GetUser(PortalID,UserID,Username,Password,ModuleID,WebPageCall,Encrypted,SucceededCallback);

Would it be possible to do something more "traditional," like:

$.ajax({
  url: '/desktomodules/webservice.asmx/command?name1=value1',
  success: function(data) {
    //read the data object (json) how you want to

  }
});
Coordinator
Dec 19, 2010 at 4:30 AM

I have no JQuery examples.

Dec 19, 2010 at 4:52 AM

Thanks anyway, I appreciate it.

Do you know if it's possible to access the webservice directly and still maintain the security benefits of this module? 

Coordinator
Dec 19, 2010 at 3:16 PM

Yes you can call the web service methods directly. See: http://www.adefwebserver.com/DotNetNukeHELP/Misc/Dotnetnuke_Secure_AJAX_webservices.htm