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  |  

DotNetNuke Marketplace
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
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.
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Popup window opening the same window that called it
Previous Previous
 
Next Next
New Post 5/23/2008 8:44 AM
Resolved
User is offline cs6505
18 posts
10th Ranked


Popup window opening the same window that called it 

Is there a way to create a popup window in DNN? In one of my modules, I am using the following

 

function PopUpNewCampaign()'NewWindow.aspx','NewWindow', 'height=225,width=500');

and added the function call to the attributes of the button. This part does work. The problem is that the window it opens up is the exact same page that called it in the first place.

Any help or ideas is greatly appreciated.

thanks,

Chris

{

window.open(

}

 
New Post 5/23/2008 8:38 PM
User is offline Bob Zagars
13 posts
www.zagarsandevans.com
10th Ranked


Re: Popup window opening the same window that called it 

Chris,

 

I used this code in my code behind and it worked.  Currently after I got AJAX working on my control I now have to find another method of PostBack.  There might be something better than this but it works.

 

 

Dim strRequest As String = Request.Url.ToStringDim pagePath As String = strRequest.Substring(0, strRequest.IndexOf("?") - 13) & "/DesktopModules/<YOUR MODULE>/NewWindow.aspx"

 

 

 

 

Dim popupScript As String = "<script language='javascript'>" & _"window.open('" & pagePath & "', '_blank', " & _"'width=500, height=225')" & _"</script>"

Page.ClientScript.RegisterStartupScript(

Me.GetType(), "PopupScript", popupScript)

 

 
New Post 5/25/2008 8:12 AM
User is offline cs6505
18 posts
10th Ranked


Re: Popup window opening the same window that called it 

Bob,

Thanks for the code. I plugged it in and it worked first time! Awesome!!!

thanks,

Chris

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Popup window opening the same window that called it
 


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.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com

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