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...Getting StartedGetting StartedHow to detect clicking the "Ok" button in dnnAlert DialogHow to detect clicking the "Ok" button in dnnAlert Dialog
Previous
 
Next
New Post
8/1/2013 3:20 AM
 

Having a hard time to detect the "Ok" confirmation button click using Firebug in FF22 as shown here (initially click the "See this Alert!" button and the next dialog window has the "Ok" button I'm interested in).

Wonder if anyone has an idea how to do that preferably with jQuery.


English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
8/1/2013 5:02 AM
 
Greg,

the code for that can be found on the page: Pattern and Usage, "jQuery" tab.

Another source of information for this function is here: dnnAlert jQuery Plugin

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
8/1/2013 7:05 AM
 
Michael,

Thanks for your input, but what I try to achieve is something like this (don't know if the forum editor will let my code through):

 <script type="text/javascript">
    jQuery(function ($) {
        $('a.dnnPrimaryAction').click(function (event) {
            event.preventDefault();
            $.dnn {
                text: '<div>dnnAlert1 Text</div>',
                width: 200
                      });
        });
    });
</script>   

<script type="text/javascript">    
    jQuery(function ($) {
    $('button.dnnPrimaryAction').click(){
        $.dnnAlert{(text: '<div>dnnAlert2 Text</div>')};
    });
</script>

 In a nutshell I just need two dnnAlerts one after another, but I don't know if my syntax is right.

Btw, Micheal it's funny for you to reply to my post here as I would like to implement those two dnnAlerts to control the data presentation in your own module of helferein Form.

 Any further insight into my code will be appreciated.

English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
8/1/2013 2:01 PM
 

Ok, so after some experimenting what I came up with is as follows should anyone need such a solution:

<script type="text/javascript">
    jQuery(function ($) {
        $('a.dnnPrimaryAction').click(function(event) {
        event.preventDefault();
            $.dnn {
                text: '<div style="font-size:12px;color:black;">dnnAlert 1</div>',
                width: 200    
            });
            $('button.dnnPrimaryAction').click(function(){
                $.dnn {text: '<div>dnnAlert 2</div>', width:400});
            });
        });
    });
</script>

At least this is what works for me.
 


English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedHow to detect clicking the "Ok" button in dnnAlert DialogHow to detect clicking the "Ok" button in dnnAlert Dialog


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