javascript - Internet Explorer do not open php-file (can not find) -
i have simple login formular on website login next site using ajax:
<form id="formlogin" method="post" action="login.php" role="login"> <img src="img/logologin.png" alt="" class="img-responsive" /> <div class="form-group"> <input id="user" type="username" name="username" required class="form-control" placeholder="enter username" /> <span class="glyphicon glyphicon-user"></span> </div> <div class="form-group"> <input type="password" name="password" required class="form-control" placeholder="enter password" /> <span class="glyphicon glyphicon-lock"></span> </div> <button type="submit" name="go" class="btn btn-primary btn-block">login now</button> </form>
this ajax code:
$("#formlogin").submit(function() { user = $("#user").val(); sessionid = $("#user").val() + getdatetime(); time = gettime(); logindate = getdate(); timestamp = gettimestamp(); sessiondata.sessionid = sessionid; sessiondata.logintime = time; sessiondata.logindate = logindate; sessiondata.user = user; sessiondata.timestamp = timestamp; var sessionidjson = json.stringify(sessiondata); cookies.set('user', sessiondata, {expires: 3, path: 'main.html'}); });
it used work before didnt use bootstrap, pretty sure, not reason.
other browsers (chrome,firefox) work fine except ie. internet explorer tells me there error of opening login.php file. right after logging in seems going login, jumps back. , webdevtool tells me error.
maybe had same experience it. in advance
Comments
Post a Comment