Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone



Clound SSD Virtual Server

Ajax Visibility & Display

Ajax Visibility & Display ความแตกต่างระหว่างการใช้งาน Visibility กับ Display คือ ในส่วนของ Visibility เมื่อมีการใช้งานจะยังคง Layout ของ Element ไว้ซึ่งจะต่างจาก Display ที่จะซ้อนในส่วนของ Layout โดยไม่เหลือตำแหน่งเดิมไว้อยู่เลย

ตัวอย่างครับการใช้งาน Visibility & Display

AjaxVisibilityDisplay.html

<html>
<head>
<title>ThaiCreate.Com Ajax Tutorial</title>
</head>
	<script language="JavaScript">
		
		function fncShow1()
		{
			document.getElementById('myTable1').style.visibility = 'visible';
		}

		function fncHide1()
		{
			document.getElementById('myTable1').style.visibility = 'hidden';
		}
		
		function fncShow2()
		{
			document.getElementById('myTable2').style.display = '';
		}

		function fncHide2()
		{
			document.getElementById('myTable2').style.display = 'none';
		}
	</script>
	
<body>

	<table width="600" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300"><strong>Visibility</strong></td>
        <td width="300"><strong>Display</strong></td>
      </tr>
      <tr>
        <td valign="top"><table id="myTable1" width="190" border="1" cellspacing="0" cellpadding="0">
          <tr>
            <td>ThaiCreate.Com</td>
            <td>ThaiCreate.Com</td>
          </tr>
          <tr>
            <td>ThaiCreate.Com</td>
            <td>ThaiCreate.Com</td>
          </tr>
        </table>
          <input name="btnShow1" id="btnShow1" type="button" value="Show" onClick="JavaScript:fncShow1();">
          <input name="btnHide1" id="btnHide1" type="button" value="Hide" onClick="JavaScript:fncHide1();"></td>
        <td valign="top"><table id="myTable2" width="190" border="1" cellspacing="0" cellpadding="0">
          <tr>
            <td>ThaiCreate.Com</td>
            <td>ThaiCreate.Com</td>
          </tr>
          <tr>
            <td>ThaiCreate.Com</td>
            <td>ThaiCreate.Com</td>
          </tr>
        </table>
          <input name="btnShow2" id="btnShow2" type="button" value="Show" onClick="JavaScript:fncShow2();">
          <input name="btnHide2" id="btnHide2" type="button" value="Hide" onClick="JavaScript:fncHide2();"></td>
      </tr>
    </table>
</body>
</html>


Screenshot

Ajax Visibility & Display








   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2009-01-31 16:08:29 / 2017-03-15 13:55:53
  Download : Download  Ajax Visibility & Display
 Sponsored Links / Related

 
Ajax Introduction
Rating :

 
Ajax innerHTML & InnerText
Rating :

 
Ajax JavaScript & Event
Rating :

 
Ajax visibility hidden & visible
Rating :

 
Ajax Display Element
Rating :

 
Ajax Disabled Element
Rating :

 
Ajax CreateElement
Rating :

 
Ajax setTimeOut
Rating :

 
Ajax responseText
Rating :

 
Ajax readyState
Rating :

 
Ajax Send Data Method POST (PHP & ASP)
Rating :

 
Ajax Send Data Method GET (PHP & ASP)
Rating :

 
Ajax Register Form (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Login (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Dropdownlist and Listmenu (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Upload file (PHP & ASP)
Rating :

 
Ajax Load Content (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Load Web Page (PHP & ASP)
Rating :

 
Ajax Loading Progress Icon
Rating :

 
Ajax List Record (PHP+MySQL & ASP+Access)
Rating :

 
Ajax List Record Paging/Pagination (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Add/Insert Record (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Edit/Update Record (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Delete Record (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Delete Record Part 2 (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Search Record (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Search Record Paging/Pagination (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Chat Room (PHP+Text & ASP+Text)
Rating :

 
Ajax Shopping Cart (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Contact Form (PHP & ASP)
Rating :

 
Ajax Image Gallery (PHP & ASP)
Rating :

 
Ajax Open Text file (PHP & ASP)
Rating :

 
Ajax Autocomplete
Rating :

 
Ajax Check Username (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Auto Fill Textbox (PHP+MySQL & ASP+Access)
Rating :

 
Ajax Realtime (PHP+MySQL & ASP+Access)
Rating :

 
Ajax jQuery
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่