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...Module ForumsModule ForumsIFrameIFramesimultaneous data insertion and page redirection issue.simultaneous data insertion and page redirection issue.
Previous
 
Next
New Post
2/14/2008 12:59 AM
 

Inside iframe module in my local dnn home page on single button click iam inserting some data in database and at the same time i want to redirect it to another main page of dnn.

Right now i on single button click,i have managed to insert data in database and simultaneously redirected to another page within the iframe module and from there using a alert link i redirected it to another dnn main page.

along with data insertion in db, if simultaneously i try to redirect it to main page of my local dnn(4.7), then it gets redirected but the data does not get inserted in database.

If anyone knows solution or suggestion for this,pls reply.

 
New Post
2/15/2008 3:01 PM
 

From the description of your problem, I gather you are using one of those dynamic form modules?

When you redirect from inside an IFRAME and you want that redirection to load a new page into the main browser window, you have to instruct your browser to do that by specifying TARGET="_parent" or TARGET="_top" if you are using a link or, if using JavaScript - top.document.location.href = ... or parent.document.location.href =

Since you are using code you can't modify yourself (an assumption, of course), you'll need to set up a page that has nothing but the following in it (you can even just create an HTML page, instead of using DNN page, and upload it to your site):

<html><head><script type="text/javascript">top.document.location.href = 'mysite.com/the-page-i-really-want.html';</script></head><body></body></html>

and have your module save to DB and redirect to that page.

If you prefer to use a DNN page for that redirection, then just copy the whole code from <script... to .../script> into Page Header Tags settings of that page. BEWARE: you will not be able to navigate to that page - it'll immediately redirect you. So, if you ever need to make changes to it in the future, you can access the page settings via Admin > Pages screen.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFramesimultaneous data insertion and page redirection issue.simultaneous data insertion and page redirection issue.


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