G
G
greedy_wizard2020-10-06 16:47:25
JavaScript
greedy_wizard, 2020-10-06 16:47:25

Why doesn't file upload work on Safari?

Tried dozens of different methods, nothing helps! This code works on chrome

$(".cd-popup1 .wpcf7-submit").on("click", function (event) {
  if ($("#email1").val() != "") {
    setTimeout(function () {
      event.preventDefault();
      location.href = 'абсолютный адрес на пдф';
    }, 3000);
  } else {
    return false;
  }
});

It is necessary that after entering the data, the PDF file opens. I read a lot of places that this is a problem with the "on("click") event
<div class="cd-popup1" id="openModal">
<div class="cd-popup-container">
<div class="andy_input_wrap">
<div class="popup_title__wrap">
<h3 class="popup_title">Sign Up To Download</h3>
</div>
<label>[text your-name placeholder "Your company name"] </label>
<label>[email* email-139 id:email1 placeholder "Your email"] </label>
[submit "SEND" class:cd-popup1-btn ]
</div>
<a href="#close" class=" close" title="Закрыть" >X</a>
</div>
</div>


Perhaps there are other methods how to implement this Please help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergski, 2020-10-06
@sergski

And if you replace location.href with window.open()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question