Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
bobbyg
Worker
Worker


Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Sun Feb 12, 2012 8:30 pm Reply with quote

I have looked at all the various potings regarding redirect, but have not found a solution to this. There are 2 locations that needs to be redirected to a separate page because https cannot be displayed within an iframe.

Code:
 function getPalDetails() {

      if (MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER == 'Live') {
        $api_url = 'https://api-3t.paypal.com/nvp';
      } else {
        $api_url = 'https://api-3t.sandbox.paypal.com/nvp';
      }

and

    function setExpressCheckout($parameters) {
      if (MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER == 'Live') {
        $api_url = 'https://api-3t.paypal.com/nvp';
   
      } else {
        $api_url = 'https://api-3t.sandbox.paypal.com/nvp';
       
      }
 
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1692
Location: Texas, USA

PostPosted: Mon Feb 13, 2012 12:43 pm Reply with quote

Hard to have any control over what happens inside of an iframe... Is there a way to code what you need without using nukewrap?
 
View user's profile Send private message Visit poster's website
bobbyg
PostPosted: Tue Feb 14, 2012 11:26 am Reply with quote

I was trying to use oscommerce within nukewrap, but the paypal requires https: which cannot be used within an iframe. I have to run it separately.
 
killing-hours
RavenNuke(tm) Development Team


Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx

PostPosted: Tue Feb 14, 2012 11:42 am Reply with quote

bobbyg, take a read...
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!


Since it doesn't seem like "<base" will help you...give the links a class of some sort.

Code:
<a class="httpsLink"  href="https://link.com"


Then write up a little bit of jquery/javascript to handle the link click for you.

Code:
$(document).ready(function(){


$('.httpsLink').click(function(){
   var https = $('.httpsLink').attr('href');
   document.parent.open(
    https,
    '_blank'
);
   retrun false;
});


});


NOTE*** This is an example and doesn't mean it will work. Also, keep in mind that you're RELYING on Javascript to make it work correctly.... you may need to also find some means to ensuring the user is aware of this on Javascript failure.

This also helps make my case against nukeWrap which I made here. Specifically the "longevity" of a module and future pitfalls using the "easy" way out. Only registered users can see links on this board! Get registered or login!

_________________
Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©