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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


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
723 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.

 


DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net

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