Unlock the Power of Streamlined Inbound Cargo Supply Chains!
In an era of booming cross-border trade, navigating the complexities of U.S.-Mexico freight movement is more crucial than ever. This comprehensive white paper, “Bypassing the Bottleneck,” offers invaluable insights and practical solutions for shippers facing the challenges of freight congestion along the U.S.-Mexico border.
Key Highlights:
#myIframe {
height: 1020px !important;
}
@media (min-width: 768px) {
#myIframe {
height: 980px !important;
}
}
@media (min-width: 1024px) {
#myIframe {
height: 1000px !important;
}
}
// Function to create the iframe URL
function createIframeURL() {
// Get the parent URL and create a URLSearchParams object
var parentURL = new URL(window.location.href);
var params = new URLSearchParams(parentURL.search);
// Construct the iframe URL with all parameters
var iframeURL = "https://freightwaves.dragonforms.com/loading.do?omedasite=0180MediaWhitePaperAveritt20231128";
// Loop through all parameters and append them to the iframe URL
for (const param of params.entries()) {
var key = param[0];
var value = param[1];
iframeURL += `&${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
}
// Set the iframe URL
var iframe = document.getElementById("myIframe");
iframe.src = iframeURL;
}
// Call the function on page load
createIframeURL();
window.addEventListener("message", function(event) {
console.log('Event',event.data);
// Check if the origin of the event matches the expected iframe domain
if (event.origin === "https://freightwaves.dragonforms.com") {
// Handle the message received from the iframe here
if (event.data.message === "redirect") {
console.log("Redirecting...");
// Construct the redirect URL with the email parameter
const redirectUrl = "https://bit.ly/47O6CZf";
// Perform the redirection
window.location.href = redirectUrl;
} else {
console.log("Message received, but not a redirect.");
}
} else {
console.log("Received message from unexpected origin:", event.origin);
}
}, false);
The post White Paper: Bypassing the Bottleneck: Solutions for Avoiding Freight Congestion at the U.S.-Mexico Border appeared first on FreightWaves.
Source: freightwaves - White Paper: Bypassing the Bottleneck: Solutions for Avoiding Freight Congestion at the U.S.-Mexico Border
Editor: Sponsor