2016-08-23 2 views
0
내 폼에있는 버튼에 문제가

버튼을 IE에서 작동하지 않습니다 (11) 당신은 내가 만든 brandinfluencegroup.com/test에서</p> <p>페이지를 볼 수 있습니다 IE 11에</p> <p>작동하지

:이 스크립트를 기반으로 양식 http://www.html-form-guide.com/contact-form/contact-form-attachment.html

또한 내가 제안 중 하나가 내가 아래 Twitter Bootstrap Form File Element upload button

내 코드 여기 사용되는 파일 필드에 스타일을 사용합니다

Allow blocked content ActiveX

난 아무것도 누르지 않으면 : 6,

<?PHP 
require_once("./include/fgcontactform.php"); 

$formproc = new FGContactForm(); 

$formproc->AddRecipient('[email protected]'); //<<---Put your email address here 

$formproc->SetFormRandomKey('HG9hPBpn9Bn26yg'); 

$formproc->AddFileUploadField('file','pdf,doc,pages,jpg,jpeg,gif,png,bmp',6024); 

if(isset($_POST['submitted'])) 
{ 
    if($formproc->ProcessForm()) 
    { 
     $formproc->RedirectToURL("thank-you.php"); 
    } 
} 

?> 
<!doctype html> 
<html class="no-js" lang="en"> 
<head> 

<!-- ========== PAGE TITLE ========== --> 
<title>BIG | Brand Influence Group</title> 

<!-- ========== META TAGS ========== --> 
<meta name="description" content="Brand Influence Group - BIG on you"> 
<meta name="keywords" content="BIG, brand, influence, group"> 
<meta charset="utf-8"> 
<meta name="author" content="ThemesEase"> 
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 

<!-- ========== VIEWPORT META ========== --> 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> 

<!-- ========== FAVICON & APPLE ICONS ========== --> 
<link rel="shortcut icon" href="images/favicon.png"> 
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> 

<!-- ========== GOOGLE FONTS ========== --> 
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,300,100" rel='stylesheet' type='text/css'> 
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' type='text/css'> 

<!-- ========== MINIFIED VENDOR CSS ========== --> 

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> 
<link rel="stylesheet" href="dist/css/bootstrap-select.css"> 
<link rel="stylesheet" href="styles/vendor.css"> 
<link rel="stylesheet" href="styles/main.css"> 
<link rel="stylesheet" href="styles/custom.css"> 

<!-- ========== MODERNIZR ========== --> 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> 
<script src="dist/js/bootstrap-select.js"></script> 
<script type='text/javascript' src='scripts/gen_validatorv31.js'></script> 
<script type='text/javascript' src='scripts/fg_captcha_validator.js'></script> 
</head> 

<body class="dark-header animation"> 
<form class="notify-div" id='contactus' action='<?php echo $formproc->GetSelfScript(); ?>' method='post' enctype="multipart/form-data" accept-charset='UTF-8'> 
    <input type='hidden' name='submitted' id='submitted' value='1'/> 
    <input type='hidden' name='<?php echo $formproc->GetFormIDInputName(); ?>' value='<?php echo $formproc->GetFormIDInputValue(); ?>'/> 
    <input type='text' class='spmhidip' name='<?php echo $formproc->GetSpamTrapInputName(); ?>' /> 
    <div><span class='error'><?php echo $formproc->GetErrorMessage(); ?></span><span id='contactus_name_errorloc' class='error'></span><span id='contactus_email_errorloc' class='error'></span></div> 
    <input type="text" name="name" placeholder="Name"/> 
    <input type="email" name="email" placeholder="Enter your email"/> 
    <select name="message" class="selectpicker" data-hide-disabled="true" data-size="10"> 
    <option selected value="I want to...">I want to...</option> 
    <option value="Apply for a position in Brand Activation">Apply for a position in Brand Activation</option> 
    <option value="Apply for a position as Influencer">Apply for a position as Influencer</option> 
    <option value="Apply for a position as Account Executive">Apply for a position as Account Executive</option> 
    <option value="Apply for a position as Account Manager">Apply for a position as Account Manager</option> 
    <option value="Apply for a position as Accountant">Apply for a position as Accountant</option> 
    <option value="Apply for a position as Weekend warrior">Apply for a position as Weekend warrior</option> 
    <option value="Apply for a position as Cricket Coach">Apply for a position as Cricket Coach</option> 
    <option value="Apply for a position as Intern">Apply for a position as Intern</option> 
    <option value="Other...">Other...</option> 
    </select> 
    </span><span><input class="btn btn-primary" type="button" value="Upload your cv..." onclick="$(this).parent().find('input[type=file]').click();"/> 
    <input type="file" name="file" id="file" style="visibility:hidden; width: 1px;" onchange="$(this).parent().find('span').html($(this).val().replace('C:\\fakepath\\', ''))" /> 
    <span class="badge badge-important" ></span></span> 
    <button type="image" class="sr-btn white-btn" id="submit" name="submit" value="Send"><span class="bold">Say</span> <span class="italic">hello</span></button> 
</form> 
<script type='text/javascript'> 
// <![CDATA[ 

    var frmvalidator = new Validator("contactus"); 
    frmvalidator.EnableOnPageErrorDisplay(); 
    frmvalidator.EnableMsgsTogether(); 
    frmvalidator.addValidation("name","req","Please provide your name"); 

    frmvalidator.addValidation("email","req","Please provide your email address"); 

    frmvalidator.addValidation("email","email","Please provide a valid email address"); 

    frmvalidator.addValidation("message","maxlen=6048","The message is too long!(more than 2KB!)"); 

    frmvalidator.addValidation("file","file_extn=jpg;jpeg;gif;png;bmp","Upload images only. Supported file types are: jpg,gif,png,bmp"); 
// ]]> 
</script> <br/> 
<br/> 
</div> 
</div> 
</div> 
<!-- end row --> 

</div> 
<!-- end container --> 
</section> 
<!-- end section --> 

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> 
<script> 
      // (function(b, o, i, l, e, r) { 
      // b.GoogleAnalyticsObject = l; 
      // b[l] || (b[l] = 
      //  function() { 
      //   (b[l].q = b[l].q || []).push(arguments) 
      //  }); 
      // b[l].l = +new Date; 
      // e = o.createElement(i); 
      // r = o.getElementsByTagName(i)[0]; 
      // e.src = 'https://www.google-analytics.com/analytics.js'; 
      // r.parentNode.insertBefore(e, r) 
      // }(window, document, 'script', 'ga')); 
      // ga('create', 'UA-XXXXX-X'); 
      // ga('send', 'pageview'); 
     </script> 
<script src="scripts/vendor.js"></script> 
<script src="scripts/main.js"></script> 
</body> 
</html> 
+0

어떤 이벤트 처리기가 작동합니까? 각 처리기의 콘솔에 작성하여 확인할 수 있습니다. – mm759

+0

답장을 보내 주셔서 감사합니다! 나는 이것에 대해 더 많은 경험이 필요하다고 생각한다. 나는 자바 스크립트에서 주로 경험이 없으며 주로 HTML과 CSS 만 사용한다. IE에서 테스트하는 것을 의미합니까? –

+0

예, IE에서 테스트 중입니다. – mm759

답변

0

이 난 그냥 Internet Explorer를 열고 자마자, ActiveX 컨트롤을 차단하기 때문에 인터넷 익스플로러의 발생 가능성, 그것은 바는 이런 말을 보여줍니다 버튼이 작동하지 않으며 1 ~ 2 분 후에 바 메시지가 사라 지므로 잠시 후 메시지가 처음에 있었음을 알지 못할 수도 있습니다.

또한 로컬로 작업하기 때문에 이런 문제가 발생한다고 생각합니다. 사이트가 트러스트 된 도메인에있는 경우에는 발생하지 않아야합니다.

도움이 되었으면 레오.

+0

안녕하세요! 이 문제를 테스트하고 내 질문에 답할 시간을내어 주셔서 감사합니다. brandinfluencegroup.com/test로 이동하면 테스트 서버에서 문제가 발생합니다. 내 말은 ... –

+0

안녕하세요 Steph, 이미 해당 페이지로 이동했으며 입력 파일 버튼이 Internet Explorer에서 제대로 작동합니다. 11 및 Internet Explorer 10에서 문제가 발생하면 아무 것도 나타나지 않고 파일 탐색기가 제대로 표시되지 않습니다. 그럴 경우 ActiveX 컨트롤이 활성화되어 있는지 확인하고 ActiveX 컨트롤을 사용하도록 설정했는지 확인하는 것이 좋습니다.이 문제의 원인이 될 수있는 다른 것을 파악할 수 없으며 다른 컴퓨터에서이 컨트롤을 테스트해야합니다. 내말은. 사자 별자리. – Leo

+0

답변 해 주셔서 다시 한번 감사드립니다. 내 고객에게 일어나는 일 이니, 브라우저 설정을 바꾸라고 알려야합니까? –