Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Popup window??????
Previous Previous
 
Next Next
New Post 5/25/2008 1:20 AM
User is offline Mazen
26 posts
10th Ranked


Popup window?????? 

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 10:22 AM
User is offline sean.gahan
8 posts
seangahan.net
10th Ranked


Re: Popup window?????? 


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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Popup window??????
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP