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.0To open a pop up window & send the data back to parent windowTo open a pop up window & send the data back to parent window
Previous
 
Next
New Post
2/19/2007 2:42 PM
 

Hello,

I want to open a pop up window from a module using a link & then pass some data back to the parent window (which is nothing but a module having a user control). How to achieve this in module in DNN?

Please suggest.

Thanks,

-Awaneesh

 
New Post
2/20/2007 3:47 AM
 

Quite easy :)

You open an .aspx page in the popup, and use this kind of client logic to return the values:

http://www.webreference.com/js/tutorial1/opener.html

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/20/2007 9:04 AM
 

You may have a issue referencing the particular module you want to send the data back to. Remember a administrator can place multiple instances of your module on the same page.

This may contain the code you need:

http://webcontrols.dotnetnuke.com/clientapi/CallbackWithElements.aspx

DotNetNuke provides multiple controls that you can use and borrow code from that provide a solution:

http://webcontrols.dotnetnuke.com/

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/20/2007 9:24 AM
 
AdefWebserver wrote

You may have a issue referencing the particular module you want to send the data back to. Remember a administrator can place multiple instances of your module on the same page.

This may contain the code you need:

http://webcontrols.dotnetnuke.com/clientapi/CallbackWithElements.aspx

DotNetNuke provides multiple controls that you can use and borrow code from that provide a solution:

http://webcontrols.dotnetnuke.com/

 

Well actually if you are returning a value to a particular control (e.g. textbox, hidden field...) you shouldn't have this problems because the same control (with the same given name....e.g. Textbox1) in 2 different instances of the same module (on the same page) will be named differently because of the naming container (INamingContainer)... all you need to do is pass the id of the target control to the popup and have him get that control from the opener property (window.opener) and you should be ok.

 

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0To open a pop up window & send the data back to parent windowTo open a pop up window & send the data back to parent window


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