|
|
|
ปัญหา'JavaScript:form2.submit();' ใช้กับ fancybox ไม่ขึ้น |
|
|
|
|
|
|
|
Code (PHP)
<!-- Add jQuery library -->
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="js/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox -->
<link rel="stylesheet" href="css/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery.fancybox.pack.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('.link').fancybox({ //เปลี่ยนเป็นใช้ class แทนครับ
'width' : '45%',
'height' : '20%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
onClosed : function() {
parent.location.reload(true);
}
});
});
</script>
echo"<form action='processedit.php' method='POST' name='form2' id='form2' enctype=\"multipart/form-data\">";
echo"<a class='link' href='http://www.sanook.com'>แก้ไขข้อมูล</a>";
echo"<a class='link' href='http://wwwhunsa.com' >ยกเลิก</a>";
}
echo"</form><br><br>";
|
|
|
|
|
Date :
2014-01-23 14:21:17 |
By :
pantatonic |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|