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.0Java_Script Window.OpenJava_Script Window.Open
Previous
 
Next
New Post
3/20/2008 9:05 AM
 

I'm having prolems getting a child ASPX page to open. The code below displays a window but the contents are of the parent. If I change the 'recallpopup.aspx' to an actual URL such as http://microsoft.com then it works.  If I remove the window.open and replace it with an

 
New Post
3/20/2008 9:16 AM
 

OK - What's the proper method/manner/Etiquette for posting code examples in this forum?  I'm tired of having the example stripped out and not displayed due to whatever. 

 
New Post
3/20/2008 9:49 AM
 

OK One More Try with posting the code sample. Forgive the goofy looking code. I 'm hoping that it doesn't get stripped out again. As a test, I tried this outside of DNN in a fresh development website and it works fine. So I'm guessing that the path structure is what's hosing me up. The child 'recallpopup.aspx_X' resides at the same level as the parent. I have tried numerous path's but haven't hit on the correct one yet. When run, this code displays the parent inside the child. As stated above if I change the aspx file to a URL such as Dotnetnuke.com then it works fine. Any enlightenment will be appreciated.  THANKS!

BUTTON_CLICK EVENT
                      DimM strScript As String = "<script_type='text/java*scripter'>" & _
  "window.open('recallpopup.aspx_X','mywindow','width=1000,height=600')" & _
  "</scriptING>"

            If_ (Not _Page.ClientScript.IsStartupScriptRegistered("clientScript")) Then
                _Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "clientScript", strScript)
            End_ If

EVENT ENDS

 
New Post
3/20/2008 10:04 AM
 

    You need set the fullpath to your open page. For example , if recallpopup.aspx lies under desktopmodules/yourmodule/ directory, Try below code.

      Dim aspxFile As String = ""
      aspxFile = "http://" & DotNetNuke.Common.Globals.GetDomainName(Request) & "/desktopmodules/yourmodule/recallpopup.aspx" 
      DimM strScript As String = "<script_type='text/java*scripter'>" & _
  "window.open('"&aspxFile &",'mywindow','width=1000,height=600')</script>"   
      Then you can register your script.

     


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
3/21/2008 7:45 AM
 

Excellent!

That corrected it.

Thanks so much!

Gordon

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Java_Script Window.OpenJava_Script Window.Open


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