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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnnModal, jQuery, onclick ...dnnModal, jQuery, onclick ...
Previous
 
Next
New Post
2/5/2015 11:24 AM
 

(Please move this if this in the wrong forum.)

I have a page (Page A) that has a link, and I attach an onclick event handler to the link using jQuery.  It works just fine.

On another page (Page B) I use dnnModal to popup Page A.  When I do that, the onclick event on Page A does not work in the popup.  

My guess is that there's something related to the popup skin that is preventing jQuery from attaching the onclick event.  Is that correct?  If so, how can I make this work?  (The link in question is in another module on Page A, and I don't have access to the code to attach the onclick any other way.  At least no way that I know of at this point.)




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
2/5/2015 1:21 PM
 
it's hard to say without seeing the site in question - the second page is simply hosted within an iframe so it should be fine (i.e. not affected by the hosting page) - perhaps there is some javascript which incorrectly targets the window , what do you see in the console window (when you press F12 to open developer tools)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/6/2015 3:02 PM
 
There are no error messages in the console window.

Clicking the link in the popup just proceeds, and is not intercepted by the
onclick.

(If you'd like to look at the site, I can send you a link!)



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnnModal, jQuery, onclick ...dnnModal, jQuery, onclick ...


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