|
|
#1 |
|
New Member
![]() Join Date: Mar 2009
Posts: 3
|
Ok so this problem i'm having is a show stopper, I have a website built through website tonight, which some of you may be familiar with, and know that you can't access the raw code.
Well, I bought into an affiliate script "Affiliate Script Pro" Which has been uploaded on http://jumboviews.net Then the actual site i'm letting affiliates market is http://jumboviews.com The site have have to add this code to is hxxp://jumboviews*com So, with website tonight, I can't edit the raw code, and here is the code the affiliate script provided me with to integrate paypal with them: Code:
<script type="text/javascript" src="http://jumboviews.net/templates/js/globals.php"></script> <script type="text/javascript" src="http://jumboviews.net/templates/js/afpro_cookie.js"></script> <script type="text/javascript" src="http://jumboviews.net/templates/js/afpro_trackingform.js"></script> the second snippet of code looks like this below Code:
<body onload="afproDocumentLoad();"> And of course the 3rd step for setting up integration is setting up an IPN with Paypal, the URL looks like this Code:
http://jumboviews.net/callbacks/callback_paypal_ipn.php I'm really stuck guys, I would greatly, GREATLY appreciate your help! Thanks! P.S. if I was not clear on what's wrong, please inform me, so you can better help my situation! This problem is a show stopper for my business! All help is GREATLY appreciated! |
|
|
|
|
|
#2 |
|
Super Moderator
![]() Join Date: Jun 2008
Posts: 493
|
To execute the afproDocumentLoad() function use something like Mootools DomReady:
http://mootools.net/docs/Utilities/DomReady Include the Mootools Scripts at the top of your page and then use something along the lines of the following to execute the function: Code:
window.addEvent('domready', function() {
afproDocumentLoad();
});
JC |
|
|
|
|
|
#3 | |
|
New Member
![]() Join Date: Mar 2009
Posts: 3
|
Quote:
Can you be alittle more detailed plz? |
|
|
|
|
|
|
#4 |
|
Super Moderator
![]() Join Date: Jun 2008
Posts: 493
|
The line
Code:
<body onload="afproDocumentLoad();"> You cannot modify your body tag so you need an alternative method to execute the function. You could just include the following in the top of you page: Code:
<script type="text/javascript"> afproDocumentLoad(); </script> Code:
<script type="text/javascript">
window.addEvent('domready', function() {
afproDocumentLoad();
});
</script>
Don't forget you will need to include the mootools.js on your page also. HTH, JC |
|
|
|
|
|
#5 | |
|
New Member
![]() Join Date: Mar 2009
Posts: 3
|
Quote:
Do you have Skype, AIM, or MSN? If you do add me on any of the following Skype: JumboViews Aim: FarmerFtw MSN: johnboat11@hotmail.com Thanks again! |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|