How to make Iframe From Redirect the Parent or Whole Web Page?

I am working on a webpage which I embedded an external form page into with Iframe. I detected the external form page is configured to redirected to leave a than you message within the iframed external form page but I the functionality I need is that I want the parent or whole page to redirect to a targeted page on clicking submit of the external iframed form page.

I have tried couple of solutions but not working so I guess I need to upload my code with I have attached below.

Parent Page Contain External Iframed Page:

<div class="iframe-container" style="overflow:hidden; padding-top: 56.25%; position:relative; height: 100%"> <iframe src="https://127.0.0.1/SignIn/docs/index.php/formbuilder/frontend/viewform/?form=2" style="border: 0; height: 100%; left 0; position: absolute; top: 0; width: 100%;"></iframe> </div> </div> 

External Iframed Page:

    <div class="rockfm-alert-container" style="display:none;"></div>     <form class="rockfm-form" action="" name="" method="post" data-zgfm-type="1" enctype="multipart/form-data" id="rockfm_form_2">         <input type="hidden" value="2" class="_rockfm_form_id" name="_rockfm_form_id">         <input type="hidden" value="0" class="_rockfm_wizard_st">         <input type="hidden" value="PGRpdiBjbGFzcz0icm9ja2ZtLWFsZXJ0IHJvY2tmbS1hbGVydC1zdWNjZXNzIj4mbmJzcDs8L2Rpdj4=" name="_rockfm_onsubm_smsg" class="_rockfm_onsubm_smsg">         <!--- ajax or post --->         <input type="hidden" value="1" class="_rockfm_type_submit" name="_rockfm_type_submit">         <input type="hidden" value="rocket_front_submitajaxmode" name="action">         <div class="uiform-main-form">             <div class="uiform-step-content">                 <div id="rockfm_uilwkle5gxh" data-idfield="uilwkle5gxh" data-typefield="6" class="rockfm-textbox rockfm-field ">                     <div class="rockfm-field-wrap ">                         <div class="rkfm-row">                             <div class="rkfm-col-sm-10">                                 <div class="rockfm-help-block">                                     <p style="float: left; font-size: 11px;">User ID</p>                                     <p style="float: right; ; font-size: 11px;"><a id="" style="color: #580;" href="https://google.com" target="_blank">Forgotten User ID?</a></p>                                 </div>                                 <div class="rockfm-input-container">                                     <input placeholder="" class="rockfm-txtbox-inp-val form-control" type="text" data-uifm-tabnum="0" name="uiform_fields[uilwkle5gxh]" value=""> </div>                             </div>                             <div class="rkfm-col-sm-2 rockfm-wrap-label">                                 <div class="rockfm-control-label">                                     <label class="control-label"> <span class="rockfm-label"> </span> </label>                                 </div>                             </div>                         </div>                     </div>                 </div>                 <div id="rockfm_uin4bc6vad7" data-idfield="uin4bc6vad7" data-typefield="15" class="rockfm-Coupon rockfm-field ">                     <div class="rockfm-field-wrap ">                         <div class="rkfm-row">                             <div class="rkfm-col-sm-10">                                 <div class="rockfm-help-block">                                     <p style="float: left; font-size: 11px;">Coupon</p>                                     <p style="float: right; ; font-size: 11px;"><a id="" style="color: #580;" href="https://google.com" target="_blank">Forgotten Coupon?</a></p>                                 </div>                                 <div class="rockfm-input-container">                                     <input placeholder="" class="rockfm-txtbox-inp-val form-control" type="Coupon" data-uifm-tabnum="0" name="uiform_fields[uin4bc6vad7]" value=""> </div>                             </div>                             <div class="rkfm-col-sm-2 rockfm-wrap-label">                                 <div class="rockfm-control-label">                                     <label class="control-label"> <span class="rockfm-label"> </span> </label>                                 </div>                             </div>                         </div>                     </div>                 </div>                 <div id="rockfm_uivtpbro0mm" data-idfield="uivtpbro0mm" data-typefield="20" class="rockfm-submitbtn rockfm-field ">                     <div class="rockfm-field-wrap ">                         <div class="rkfm-row">                             <div class="rkfm-col-sm-12">                                 <div class="rockfm-input-container">                                     <button data-uifm-tabnum="0" class="rockfm-txtbox-inp-val btn" type="submit" data-val-btn="Submit" data-val-subm="Sending" onclick="javascript:rocketfm.submitForm(this);return false;">Submit</button>                                 </div>                             </div>                         </div>                     </div>                 </div>                 <div class="clear"></div>             </div>         </div>         <div class="space10"></div>         <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->         <div id="blueimp-gallery2" class="blueimp-gallery">             <!-- The container for the modal slides -->             <div class="slides"></div>             <!-- Controls for the borderless lightbox -->             <h3 class="title"></h3> <a class="prev">‹</a> <a class="next">›</a> <a class="close">×</a>             <a class="play-pause"></a>             <ol class="indicator"></ol>             <!-- The modal dialog, which will be used to wrap the lightbox content -->             <div class="modal fade">                 <div class="modal-dialog">                     <div class="modal-content">                         <div class="modal-header">                             <button type="button" class="close" aria-hidden="true">&times;</button>                             <h4 class="modal-title"></h4> </div>                         <div class="modal-body next"></div>                         <div class="modal-footer">                             <button type="button" class="btn btn-default pull-left prev"> <i class="glyphicon glyphicon-chevron-left"></i> Previous </button>                             <button type="button" class="btn btn-primary next"> Next <i class="glyphicon glyphicon-chevron-right"></i> </button>                         </div>                     </div>                 </div>             </div>         </div>     </form>     <!-- Modal -->     <div class="modal fade uiform_modal_general" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">         <div class="modal-dialog">             <div class="modal-content">                 <div class="modal-header">                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>                     <h4 class="modal-title"></h4> </div>                 <div class="modal-body">                     <div class="te"></div>                 </div>                 <div class="modal-footer">                     <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>                 </div>             </div>             <!-- /.modal-content -->         </div>         <!-- /.modal-dialog -->     </div>     <!-- /.modal --> </div> 

Submit Button Code:

<div class="rockfm-field-wrap "> <div class="rkfm-row"> <div class="rkfm-col-sm-12"> <div class="rockfm-input-container"> <button data-uifm-tabnum="0" class="rockfm-txtbox-inp-val btn" type="submit" data-val-btn="Submit" data-val-subm="Sending" onclick="javascript:rocketfm.submitForm(this);return false;" >Submit</button> </div> </div> </div> </div> </div> 

Woocommerce REST API create cart and redirect to checkout

For a client I’m trying to achieve the following user flow: The client owns a woocommerce shop. I now develop an external application where a user can create their own product. When the user is finished, the external application needs to create a cart in their woocommerce shop and redirect the user to the shops checkout so the user can finish the process in the shop.

What I’ve tried: I created a new order with set_paid set to false. Then I give the user the order pay url. This works fine, but at this point we’re missing the users shipping and billing details. And there is no opportunity for upsell.

I can ofcourse edit the order-pay template, but I would prefer to use the normal checkout as is.

Is this user flow possible? Can we create a cart on an external application and let the user finish the checkout on the woocommerce shop itself?

Any help is appreciated!

Redirect to SharePoint Home Page with InfoPath ‘Cancel’ button

I have created a form in InfoPath with two buttons: ‘Submit’ and ‘Cancel’. The ‘submit’ button when clicked, submits the data to the list library and closes the form. The ‘cancel’ button when clicked, closes the form and returns to the list library. I WANT instead, to be redirected to the home page of my SharePoint site when the user clicks the ‘cancel’ button.

enter image description here

Every answer I’ve found online mentions this ” ‘&Source=http://url-of-page’ ” option that can be added to a form’s button to redirect it to another web page. BUT no one is explaining it clearly, as I don’t understand where to initiate this.

If anyone can give me a more clear set of instructions on how I can achieve this, it would be much appreciated! Even if it doesn’t use that method I mentioned.

Many thanks! 🙂

Is multiple redirect query string request safe?

We have implemented our own single sign-on on our internal and external applications. The flowchart looks like this:

sso-implementation

We are using https on both the App and the Single Sign-On, and we pass values between the SSO and the App through redirection and query strings, since the session association needs to be client-server, not server-server.

We worry that the client’s browser might cache the history of the redirections as per this answer. My question is that since our redirection with query strings is returned by the server (not in UI scripts) and the multiple redirection happens instantly, will the browser still cache the history of multiple instant redirection? If it is, are there any safety measure we can implement to prevent this?

Save and instantly redirect from NewForm to EditForm, in Online 365. Old solutions does not work for me

Do You have working methods to redirect in SharePoint Online now? I’m trying to save item and then open Edit Form after clicking ‘Save’. There were methods to do it before: link 1 link 2

but it redirects to default list view after save. Strange(!) that this code works, if there is error on page (if You don’t fill required ‘title’ and try save – it shows warning and then reditects to page needed)

   // todo: add item id, '3' is for example    var targetURL = '/products/Lists/Products/EditForm.aspx?ID=' + '3';     // For Save Button    var saveButton = jQuery("input[value='Save']");    console.log(saveButton);    saveButton.removeAttr("onclick");    jQuery(saveButton).click = null;    saveButton.click(function() {         console.log("clicked");         if (!PreSaveItem()) {            console.log("!PreSaveItem");            // return false;        }         if (SPClientForms.ClientFormManager.SubmitClientForm('WPQ2')) {            //return false;        }         var oldUrl = jQuery('#aspnetForm').attr('action');         var source = GetUrlKeyValue("Source", true, oldUrl);         var newUrl = "";         if (source) {            console.log("Source key exist");            newUrl = oldUrl.replace(source, encodeURIComponent(targetURL));        } else {            console.log("Source key not exists");            newUrl = oldUrl + "?Source=" + encodeURIComponent(targetURL);        }         var elementName = jQuery(this).attr("name");        WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(elementName, "", true, "", newUrl, false, true));         return true;     }); 

Redirect all pages to homepage via .htaccess except backend

I’ve been trying to redirect all pages of my Magento website to homepage via .htaccess – except the backend, naturally. Currently, I’m using these rules and everything is working fine so far but I want to access my backend (domain.com/office):

# Redirect the all pages to homepage  RewriteEngine On RewriteCond %{REQUEST_URI} !/$   [NC] RewriteCond %{REQUEST_URI} !.(css|fonts|gif|jpe?g?|png|ico) [NC] RewriteRule ^(.*)$   / [R=302,L] 

Can someone help me with this? I’ve been trying many rules but none of them worked well. With some rules, when I try to access my backend, I’m still redirected to homepage. With other rules, I got a ERR_TOO_MANY_REDIRECTS error message.

Thanks!