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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0PopUp-DialogPopUp-Dialog
Previous
 
Next
New Post
10/4/2006 11:25 AM
 

Hello,

i try to pop-up a dialog from within a dnn portal. The destination url is a simple aspx-Page in the modules folder. However, i'm not able to display the aspx-page directly because of the dnn based url.

Is there a simple way to popup an aspx-page without creating a new module for this? Is there a way to get the complete url for the aspx-page.

Best Regards,

Ulf

 
New Post
10/5/2006 11:52 AM
 

It really shouldn't be much different than straight html.  Say you want to add a popup link to some text in a text/html module.

In Page Settings --> Advanced --> Page Header Tags enter your JavaScript

<SCRIPT language=javascript>
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);}</SCRIPT>


Then in your html, just add the link.

<A onfocus=this.blur() onclick="NewWindow(this.href,'popupwin','350','350','no','center');return false" href="MyPopUpFile.aspx">Click Here to Open Popup</a>

 

 

 
New Post
11/14/2006 9:47 AM
 

I put this in my page

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width

Now I cannot edit or delete the page or delete this script, what should I do?

DNN ver 4.3.4

 

 
New Post
11/14/2006 4:13 PM
 
Can someone tell me if this is going to have to be manually removed from my database?
 
New Post
4/16/2007 6:38 AM
 

It seems the datbase field is only 1000 characters long so it looks like delteing the contents manually is the only answer

Maybe changing it to an include statement and putting the code in a file will work


Dave DNN 4.3.5 IIS - 6 ?? SQL Server 2005
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0PopUp-DialogPopUp-Dialog


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