Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  simultaneous data insertion and page redirection issue.
Previous Previous
 
Next Next
New Post 2/13/2008 8:59 PM
Resolved
User is offline S.Nathan
28 posts
10th Ranked


simultaneous data insertion and page redirection issue. 

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 11:01 AM
User is offline Vitaly Kozadayev
686 posts
www.continure.com
7th Ranked






Re: simultaneous data insertion and page redirection issue. 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  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.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP