HomeHomeDotNetNuke Forg...DotNetNuke Forg...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
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsIFrameIFramesimultaneous data insertion and page redirection issue.simultaneous data insertion and page redirection issue.


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.