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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCollapsible Panels Conflict w/ AJAX?Collapsible Panels Conflict w/ AJAX?
Previous
 
Next
New Post
2/11/2015 1:45 PM
 

Richard,

I completely agree that it appears to be additional instances to the jQuery code that gets added after each click that reveals a Tooltip. It is the "shomehow" part that I am stumped on. The Telerik controls do most of the work for me, so it's hard to see what exactly is happening, so I am having a hard time debugging because of the fact that it's not really my code. 

The original jQuery code (supplied by DNN) is at the bottom of the page (outside of any AJAX Panel area). The RADGrid, is encapsulated using AJAX, so any updates should only be affecting the RADGrid area. I wouldn't expect the JavaCode at the bottom of the page to run again after each AJAX Async-PostBack (which seems to be IMHO what is causing the multiple jQuery code instances).

Main issue is, I have run out of ideas and have no clue how to approach and resolve this problem.

The way I see it, I need to find a way to add the jQuery JavaScript code to the page in a manner that only runs once (ie: not during AJAX Async-PostBack). I just don't know how to approach that.


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/11/2015 2:04 PM
 
Doesn't this...

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
setupPage();
});

... *register* setupPage so that setupPage gets called for EVERY Ajax action? Therefore repeatedly calling dnnPanels?

What happens if you just take that out?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/18/2015 8:36 AM
 

Richard,

Thank you for input. I tried as you suggested and it was still not working right. I honestly got so fed up that I created my own CompositeControl that encapsulates the DNN CollapsiblePanel feature. It makes it tons easier to use since now all I have to do is drop a control on the page and place my section controls within the content tags. It's tricky on getting the jQuery code to add at the right times and not duplicate when AJAX is involved, but at least as a CompositControl, I can see and control when the jQuery code is added. So as I come across new situations that may duplicate the jQuery code, I can go into my code, test for it and prevent it from happening in the future. I guess the DNNCollapsiblePanel feature was just not meant to be used in any type of complicated page design.

Thanks again, shame that I had to go through so much effort to get the DNNCollapsiblePanels to behave correctly with AJAX but, in the long run, I suppose forcing me to make my own control to manage it was a benefit.

-Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/18/2015 9:00 AM
 
I'm pleased you have it sorted.
It sounds like something that could make a great contribution to the developer section of the Wiki.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCollapsible Panels Conflict w/ AJAX?Collapsible Panels Conflict w/ 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