|
 |
|
สอบถามการเรียกใช้ jquery.easyui.min.js ไม่ให้มันซ้อนกัน ต้องทำอย่างไร |
|
 |
|
|
 |
 |
|
เอา รูปมามันวิเคราะห์ไม่ได้หรอกครับ..
ยกเว้นเอา photoshop มาตัดรูปออก ถ้าเอารูปมาวาง
|
 |
 |
 |
 |
Date :
2014-09-03 19:20:00 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องขอโทษจริงๆ ครับ แต่ก็ต้องรบกวนหน่อยคับ
index.php
Code (PHP)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<link href="jquery-easyui-1.3.6/themes/default/easyui.css" rel="stylesheet"/>
<link href="jquery-easyui-1.3.6/themes/icon.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="demo.css">
<script src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<style type="text/css">
form label{
width: 100px;
text-align: right;
padding-right: 3px;
display: inline-block;
}
form div{
margin-top: 2px;
margin-bottom: 2px;
}
</style>
</head>
<body style="margin: 0px">
<div class="easyui-layout" data-options="fit: true" style="width: 100%; height: 350px">
<div data-options="region:'north',collapsible: false" title="ระบบเช่าหนังสือ" style="height: 70px">
<?php include_once 'menu_top.php'; ?>
</div>
<div data-options="region:'south',split:true" title="Console" style="height: 100px">
</div>
<div data-options="region:'east',split:true" title="หนังค้างส่ง" style="height: 50px; width: 150px"></div>
<div data-options="region:'west',split:true" title="Menu" style="height: 50px; width: 200px">
<?php include_once 'menu_left.php'; ?>
</div>
<div data-options="region:'center',split:true" title="Panel" style="height: 50px; width: 400px" id="content">
</div>
</div>
</body>
</html>
dataview.php
Code (PHP)
<link href="jquery-easyui-1.3.6/themes/default/easyui.css" rel="stylesheet"/>
<link href="jquery-easyui-1.3.6/themes/icon.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="demo.css">
<script src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
<table id="dg" class="easyui-datagrid" title="Cache Editor for DataGrid" style="width:100%;height:auto"
data-options="
iconCls: 'icon-edit',
singleSelect: true,
toolbar: '#tb',
url: 'datagrid_data1.json',
method: 'get',
onClickRow: onClickRow
">
<thead>
<tr>
<th data-options="field:'itemid',width:80">Item ID</th>
<th data-options="field:'productid',width:100,
formatter:function(value,row){
return row.productname;
},
editor:{
type:'combobox',
options:{
valueField:'productid',
textField:'productname',
method:'get',
url:'products.json',
required:true
}
}">Product</th>
<th data-options="field:'listprice',width:80,align:'right',editor:{type:'numberbox',options:{precision:1}}">List Price</th>
<th data-options="field:'unitcost',width:80,align:'right',editor:'numberbox'">Unit Cost</th>
<th data-options="field:'attr1',width:250,editor:'text'">Attribute</th>
<th data-options="field:'status',width:60,align:'center',editor:{type:'checkbox',options:{on:'P',off:''}}">Status</th>
</tr>
</thead>
</table>
script.js สำหรับเรียกใช้งาน
Code (JavaScript)
function load_data(){
alert("test");
$.ajax({
url:"dataview.php",
success:function(data){
$("#content").html(data);
}
});
}
|
ประวัติการแก้ไข 2014-09-03 23:31:46
 |
 |
 |
 |
Date :
2014-09-03 23:27:43 |
By :
Testprogram |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าตัวนี้ไม่ได้ โปรเจ็กจบคงไปต่อไม่ได้       
|
 |
 |
 |
 |
Date :
2014-09-04 10:31:09 |
By :
Testprogram |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
หน้า dataview ลบออก ใช้แค่หน้าหลักไม่ได้หรือครับ
ถ้าเปลี่ยนจาก ajax เป็น include ไฟล์ได้ไหม
|
 |
 |
 |
 |
Date :
2014-09-04 11:15:24 |
By :
progamer2000 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าเป้น include ได้ครับ
พอมีตัวอย่าง code เมือกด link แล้ว include เข้ามาไหมครับ รบกวนหน่อยนะครับ ขอบคุณครับ   เริ่มมีความหวังอีกนิด
|
 |
 |
 |
 |
Date :
2014-09-04 11:23:05 |
By :
Testprogram |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช้เป็นพวก ส่ง get ไปได้ไหมครับ ?
แล้วดัก switch ตามค่า get ที่ได้รับ แล้ว include
|
 |
 |
 |
 |
Date :
2014-09-04 11:29:46 |
By :
progamer2000 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วครับ เล่นแบบนี้เลย แต่ต้องดูตอนต่อไป เพราะต้องดึงข้อมูลมาจากฐานข้อมูล มาลง php แล้วส่งให้ json_encode

|
ประวัติการแก้ไข 2014-09-04 13:20:33
 |
 |
 |
 |
Date :
2014-09-04 13:17:52 |
By :
Testprogram |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|