Forums

 
  Support Forum  Modules  Engage: Tell-a-...  Pop up from another link?
Previous Previous
 
Next Next
New Post 7/2/2010 1:29 PM
Resolved
  Joe Craig
107 posts
5th Level Poster


Pop up from another link? 

Is it possible to make the Tell a Friend module basically invisible, but have a link on the page that pops it up?

What I want to do is make this part of a set of links, one to Tell a Friend.

 
New Post 7/2/2010 1:32 PM
  Brian Dukes
502 posts
3rd Level Poster


Re: Pop up from another link? 

There's a setting within Tell-A-Friend to display as a link instead of the whole form.  Do you need something more than what that provides?


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 7/2/2010 3:20 PM
  Joe Craig
107 posts
5th Level Poster


Re: Pop up from another link? 

Yes.  I'd like to be able to place a link in a text/html module that pops it up when clicked.

 
New Post 7/2/2010 4:06 PM
  Brian Dukes
502 posts
3rd Level Poster


Re: Pop up from another link? 

 Okay.  Well, to start with, you can hide that link with CSS (target the class taf-anchor).

Then, you'll need to have your link fire some JavaScript when it is clicked, so that it calls the modal method of the form (which has the CSS class taf-form-wrap).  That could look something like this:

<a href="#" class="friends-link">Tell Your Friends!</a>
<script type="text/javascript">
    (function ($) {
        $(function () {
            $('.friends-link').click(function (evt) {
                evt.preventDefault();
                $('.taf-form-wrap').modal({ persist: true });
            });
        });
    })(jQuery);
</script>

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 7/6/2010 9:24 AM
  Joe Craig
107 posts
5th Level Poster


Re: Pop up from another link? 

Perfect!  Thanks.

 
Previous Previous
 
Next Next
  Support Forum  Modules  Engage: Tell-a-...  Pop up from another link?

Purchase

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Test Drive!

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Online Support

Powered by DotNetNuke