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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Popup within Text/HTML module (javascript redirect)Popup within Text/HTML module (javascript redirect)
Previous
 
Next
New Post
4/1/2008 11:15 AM
 

I have a hyperlink link in my Text/HTML module that directs to a secured site. I need to popup a message box that contains a warning and when the user acknowledges (clicks OK) it redirects them. Cancel cancels the action. How can I add this functionality in my module?

 
New Post
4/1/2008 9:11 PM
 

OK. I've gone as far as creating a new page with a text/HTML module. In the Advanced Settings of the module I added a javascript tag with the necessary text. This popup works for me, but the final code to do the redirect does not function. (e.g. window . location="MyURL") Does anyone know how I can do a redirect within DNN?

Jon

 
New Post
4/1/2008 9:50 PM
 

Have you tried "window.open(url)"?

 
New Post
4/1/2008 10:18 PM
 

Actually, I had it all correct except for a capital W on window; but thanks! 

For those wanting to do the same, this is what I did. I created a hidden page with a text/HTML module on it. Under the Module Settings, Advanced Settings, Header section of the module I included my javascript with a redirect. Worked great. Only problem is if you have to change anything you have to either delete/recreate the page or edit the table contents directly (brcause of the redirect).

Jon

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Popup within Text/HTML module (javascript redirect)Popup within Text/HTML module (javascript redirect)


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