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  |  

AspDotNetStoreFront
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


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.

 


Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com

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