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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIHow to popup a window and get postback values?How to popup a window and get postback values?
Previous
 
Next
New Post
3/17/2006 12:05 PM
 

Hi all,

I have a question. I need to popup a window from a custom module to list all the cities for users to choose destination city. And also it contains a OK button to postback to the parent page. I create another custom module to pull up the cities info and add a new page to contain the module but I have no idea how to talk to the parent page. Is there any way to do it without complecated javascript? And I really hate coding with javascript.

Many thanks in advance!

 
New Post
3/17/2006 5:43 PM
 

Parent page (your module code)

function showCities()
{
  window.open("selectcity.aspx", null,"status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,fullscreen=no");
}

function selectCity(id)
{
  alert('you selected ' + id);
}
Inside your selectcity.aspx page
function submitSelection(id)
{
   window.opener.selectCity(id);
   window.close();
}

In other words you can access a function on the calling page directly through the window.opener object. Hopefully this wasn't too much javascript


 
New Post
4/8/2006 1:14 AM
 

How do I use a linkbutton within DNN to open a new popup window to another site and handle the linkbutton_click event.  Another word I want to record the user's action.  I've tried to add an 'onClick' attribute with this value: " window.open('www.hooya.com','_blank');".  When the new window opened up it url is http://localhost/DotNetNuke/Laboratory/Popup/tabid/54/www.hooya.com instead of www.yooha.com.  How do I open a new popup window to www.yooha.com and record the user's action?  Your help is much appreciated.  Thanks

 
New Post
9/9/2008 11:41 AM
 

Could you give us a complete example code ?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIHow to popup a window and get postback values?How to popup a window and get postback values?


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