logo
down
shadow

Convert URL to other affiliate URL using jQuery


Convert URL to other affiliate URL using jQuery

By : pecaru
Date : November 19 2020, 01:01 AM
I hope this helps . Check out http://jsfiddle.net/we070pgL/1/
From your fiddle I have assumed you will use jQuery. In case you don't want jQuery, you will only need to change the jQuery selectors to getElementById()
code :
function ConvertURL(){
var URL = $("#url").val();
var Affid = $("#affid").val();

URL = URL.replace("www","dl");

var position = URL.indexOf(".com");    
URL = [URL.slice(0, position+5), "dl/", URL.slice(position+5)].join('');

var convertedURL = URL+"&affid="+Affid;

$("#output").val(convertedURL);
}
<button id="convert" onclick="ConvertURL()">


Share : facebook icon twitter icon
affiliate in iframe, jquery

affiliate in iframe, jquery


By : T.WIN
Date : March 29 2020, 07:55 AM
may help you . Does an affiliate site work when I display it in an iframe? On my website I have an ad link of a partner. I want to display it in an iframe, that is wrapped by an jquery dialog. The user should be able to use the partner site in the dialog just as a normal website and to shopping ... , YES it will no problem whatsoever
Callback URL for affiliate

Callback URL for affiliate


By : Afrifa Derrick
Date : March 29 2020, 07:55 AM
hope this fix your issue I have an affiliate website that I use, they give me parameters when they redirect visitor to me, I save this parameters on my database. , in php you can use file_get_contents
code :
$result = file_get_contents('www.advertismentsite.com/callback?=parameters');
How to use jQuery in affiliate sites?

How to use jQuery in affiliate sites?


By : birdierising
Date : March 29 2020, 07:55 AM
wish helps you Let's say I want to give my partners a simple
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org