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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom search module problemsCustom search module problems
Previous
 
Next
New Post
9/26/2011 11:46 AM
 
Hello,

I am creating a simple custom module for searching. I used an IFrame, with a textbox, combobox and a search button. The user then enters a word he would like to search for in the textbox and he picks the search area from the combobox, these two values are then used as query parameters so I only get the data the user is looking for directly from the database (I get the data programatically in IFRAME.ascx.vb file). So up to here i'm fairly certain everything is working, query has been tested and works fine.

Now i have a ReportsModule on the same page and i would like to send this data that i get from the database to the ReportsModule so the user can see the results... But i haven't got a clue how to begin.... i have been looking at query string parameters and IMC but I'm not getting any of it.

Any ideas, sudgestions would be greatly appreciated.
 
New Post
10/2/2011 5:03 PM
 
either approach is fine normally, but the issue it that the iframe is not a part of the page i.e. it's unaware of the URL of the hosting page and the iframe URL is not obvious to the hosting page (though it's possible to get either via javascript - as long as the iframed page is in the same domain) -this may be your best option i.e. having the iframed page execute parent.location.href=parent.location.href + "?someparameter=somevalue"

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/4/2011 4:32 AM
 
I don't quite understand... Why do I need the URL? I have sent the parameters to IFrame and got the data from the database, i just need to send the data to the reports module and show them as if i put a query in that module...
If there is an easier or more logical way for doing these please tell me.
 
New Post
10/4/2011 9:33 PM
 
an iframe is a completely different page i.e. it is not part of the same page so to communicate between them you need a sharing mechanism - as they are different pages the easiest way is via the url (i.e. you can't use session/cache as they're different sites and have different content - though if they're in the same domain you can leverage asp.net session or cache), otherwise you're looking at using javascript to pass information between the elements via the DOM

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/5/2011 4:39 AM
 
Ah I get it :)
But I don't know how to communicate via URL, if you could tell me a bit more about that. Like I said i barely started using DotNetNuke...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom search module problemsCustom search module problems


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