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.0jQuery + ajax + DNN ModulesjQuery + ajax + DNN Modules
Previous
 
Next
New Post
12/3/2009 5:11 PM
 

 

I was able to get the ajax call to send successfully.  However, when I step through the AjaxWrapper() code, I get an error.  It turns out that Request.Params["FUNCTION"] is null.  I double checked the spelling, and it's not merely me misspelling "function".  When I referenced Request.Params[1] while in the debugger, I did see the data the ajax call sent over:

"{'FUNCTION': 'FunctionName', 'param0': '1' }"   
 

Is there something else I'm missing?

 
New Post
12/15/2009 3:24 PM
 

If anyone else has experience dealing with incorporating ajax calls via jQuery in a DNN module, I would be glad to hear about it.

 
New Post
12/17/2009 9:54 AM
 

 Sorry for the slow reply - I misread part of one of your posts. Which made the problem unclear to me.

Looking over it again - You have quotations around the data field
data: "({'FUNCTION': 'TestBooyah', 'param0': '1' })",
it should be
data: ({'FUNCTION': 'TestBooyah', 'param0': '1' }),

 

 
New Post
1/7/2010 5:10 PM
 

That worked.  Thanks!  Now all I have to do is actually get it to work for my purposes...

 
New Post
1/7/2010 5:26 PM
 

 One last question:  when you successfully get the result from the ajax call, how do you access the string?  I'm talking about this part of the ajax call:

 

success: function(result) {

},

 

I've tried to access the result by doing result[0] or result.d, but nothing seems to work.  I always get undefined.  If I just do an result), I'll get "[object, Object]".

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0jQuery + ajax + DNN ModulesjQuery + ajax + DNN Modules


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