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 ...Popup window??????Popup window??????
Previous
 
Next
New Post
5/25/2008 3:20 AM
 

Hi everyone,

I'm trying to create a popup window for a button event in module of mine, i've done this through javascript but it doesn't seem to work i always get the portal in the popup window instead of the aspx page i want, can anyone help here.

Thank you.

 
New Post
5/27/2008 12:22 PM
 


Make sure to pass in portalAlias, else DNN will log you out.


****serverSideCode*****
Dim s As String = "openEmailWindow('" & PortalAlias.HTTPAlias & "','http://" & Page.Request.Url.Host & Page.Request.Url.AbsolutePath.Replace("Default.aspx", "") & "')"
ImageButton1.Attributes.Add("onClick", s)
 
****clientSideCode**** 
//portalAlias="alias=somehostname/dnnwebsite/iisSiteName"//this is required by dnn security
function openEmailWindow(portalAlias,whereAmIGoing){
 
//open MessageWindow
            newX = screen.availWidth-320;
            newY = screen.availHeight;//-155
            arg1=whereAmIGoing + "SendWCFMail.aspx?alias="+portalAlias;
            arg2="SendMail";//'_blank' would open a new popup window, but we want only one instance of the script to controll the messages
            arg3=",width=300,height=75,left="+newX+",top="+newY+",toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no,titlebar=no";

    window.open(arg1,arg2,arg3)

    return false;
}//openEmailWindow


Best regards,

Sean Gahan

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Popup window??????Popup window??????


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