0 رای
وضعیت موجودی موجود

قیمت قبلی: 4,470,000 ریال
قیمت: 4,070,000 ریال

 



Product details

  • Publisher ‏ : ‎ Sams; Original edition (July 8, 2008)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 367 pages
  • ISBN-10 ‏ : ‎ 0672329654
  • ISBN-13 ‏ : ‎ 978-0672329654


 

کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition

 

Editorial Reviews

About the Author

 

Phil Ballard, the author of Sams Teach Yourself Ajax in 10 Minutes, graduated in 1980 with an honors degree in electronics from the University of Leeds, England. Following an early career as a research scientist with a major multinational, he spent a few years in commercial and managerial roles within the high technology sector, later working full time as a software engineering consultant. Operating as “The Mouse Whisperer” (http://www.mousewhisperer.co.uk), Ballard has spent recent years involved solely in website and intranet design and development for an international portfolio of clients.

 

Michael Moncur is a freelance webmaster and author. He runs a network of websites, including the Web’s oldest site about famous quotations, online since 1994. He wroteSams Teach Yourself JavaScript in 24 Hours and has also written several bestselling books about networking, certification programs, and databases. He lives with his wife in Salt Lake City, Utah.

 

Excerpt. © Reprinted by permission. All rights reserved.

 

Introduction

Over the last decade or so, the World Wide Web has grown in scope from being a relatively simple information repository to becoming the first stop for many people when seeking entertainment, education, news, or business resources.

Websites themselves need no longer be limited to a number of static pages containing text and perhaps simple images; the tools now available allow the development of highly interactive and engaging pages involving animations, visual effects, context-sensitive content, embedded productivity tools, and much more.

The list of technologies available for producing such pages is broad. However, those based on Open Source licenses have become, and remain, highly popular due to their typically low (often zero) entry cost, and to the huge resource of user-contributed scripts, tutorials, tools, and other resources for these tools and applications available via the Internet and elsewhere.

In this book, we give a detailed account of how to program fluid, interactive websites using server- and client-side coding techniques and tools, as well as how to combine these to produce a slick, desktop-application-like user experience using Ajax.

The programming languages used in this book include the ubiquitous JavaScript (for client-side programming) and the immensely popular open-source PHP language (for server-side scripting, and available with the majority of web-hosting packages). The nuts and bolts of Ajax programming are described in detail, as well as the use of several advanced open-source frameworks that contain ready-written code for quickly building state-of-the-art interactive sites.


Note - The CD that accompanies this book provides all the tools required on your journey through learning to program in PHP, JavaScript, and Ajax.


What Is Ajax?

Ajax stands for Asynchronous JavaScript And XML. Although strictly speaking Ajax is not itself a technology, it mixes well-known programming techniques in an uncommon way to enable web developers to build Internet applications with much more appealing user interfaces than those to which we have become accustomed.

When using popular desktop applications, we expect the results of our work to be made available immediately, without fuss, and without our having to wait for the whole screen to be redrawn by the program. While using a spreadsheet such as Excel, for instance, we expect the changes we make in one cell to propagate immediately through the neighboring cells while we continue to type, scroll the page, or use the mouse.

Unfortunately, this sort of interaction has seldom been available to users of web-based applications. Much more common is the experience of entering data into form fields, clicking on a button or a hyperlink and then sitting back while the page slowly reloads to exhibit the results of the request. In addition, we often find that the majority of the reloaded page consists of elements that are identical to those of the previous page and that have therefore been reloaded unnecessarily; background images, logos, and menus are frequent offenders.

Ajax promises us a solution to this problem. By working as an extra layer between the user's browser and the web server, Ajax handles server communications in the background, submitting server requests and processing the returned data. The results may then be integrated seamlessly into the page being viewed, without that page needing to be refreshed or a new one being loaded.

In Ajax applications, such server requests are not necessarily synchronized with user actions such as clicking on buttons or links. A well-written Ajax application may already have asked of the server, and received, the data required by the user—perhaps before the user even knew she wanted it. This is the meaning of the asynchronous part of the Ajax acronym.

The parts of an Ajax application that happen "under the hood" of the user's browser, such as sending server queries and dealing with the returned data, are written in JavaScript, and XML is an increasingly popular means of coding and transferring formatted information used by Ajax to efficiently transfer data between server and client.

We'll look at all these techniques, and how they can be made to work together, as we work through the chapters.

Who This Book Is For

This volume is aimed primarily at web developers seeking to build better interfaces for the users of their web applications and programmers from desktop environments looking to transfer their applications to the Internet.

It also proves useful to web designers eager to learn how the latest techniques can offer new outlets for their creativity. Although the nature of PHP, JavaScript, and Ajax applications means that they require some programming, all the required technologies are explained from first principles within the book, so even those with little or no programming experience should be able to follow the lessons without a great deal of difficulty.

How To Use This Book

All the technologies—including a refresher of WWW basics—are explained from first principles, so that even non-programmers or those unfamiliar with these languages should be able to follow the development of the concepts with little problem.

The book is divided into parts, each dedicated to a particular technology or discussion topic. Within each part, the chapters each specialize in a given aspect or subtopic. It should therefore be easy to follow the instructional flow of the book by a quick look through the table of contents.

However, if you are already a competent programmer in one or more of the technologies used—in PHP for instance, or in JavaScript—then feel free to speed-read or skip the sections that you don't need.

To try out many of the examples you'll need access to a web server that supports PHP, and a means to upload files into your web space (probably FTP). Most web hosts include PHP in their hosting packages, or can do so on request at minimal or no cost.

Alternatively, the CD that accompanies this book contains everything required to set up a web serving environment on your own computer. This package is called XAMPP, and it contains everything you need to develop fully functional, interactive websites like those described in this book, ready to be deployed to a web-based server at a later date if you so choose. Look out for the boxes marked "On the CD" as you work through the book.

Conventions Used In This Book

This book contains special elements as described by the following:


Tip - These boxes highlight information that can make your programming more efficient and effective.



Note - These boxes provide additional information related to material you just read.



Caution - These boxes focus your attention on problems or side effects that can occur in specific situations.


Try It Yourself

The Try It Yourself section offers suggestions for creating your own scripts, experimenting further, or applying the techniques learned throughout the chapter. This will help you create practical applications based on what you've learned.


Note - Sections like this remind you about relevant information or tools available on the CD that accompanies the book.


A special monospace font is used on programming-related terms and language.

Setting Up Your Workspace

While you can write the code in this book using just a simple text editor, to run the examples you'll need a computer (with Windows, Mac, or Linux operating system) running a modern browser such as Internet Explorer or Firefox.


Tip - You can download Microsoft Windows Explorer from http://www.microsoft.com/ and the latest version of Firefox from http://www.mozilla.com/.


You will also need to load files on to a web server—if you already have a web host that supports PHP, you can use your web space there. Alternatively, the accompanying CD has everything you need to set up your own web server for private use, either on your own PC or another on your network.

What's on the CD

The accompanying CD contains everything you could need to get the best from this book. Included on the CD you'll find

  • XAMPP, a complete open source compilation you can use to easily install the Apache web server, PHP language, and MySQL database manager on your computer. Versions are provided for Linux, Mac, and Windows environments.

  • jEdit, a Java-based programmer's editor that's perfect for creating or modifying code. The CD includes files for Java, Mac, or Windows.

  • A selection of open source frameworks for developing sophisticated web applications. Programming examples based on some of these frameworks are presented towards the end of the book.

 

© Copyright Pearson Education. All rights reserved.

Editorial Reviews

About the Author

 

Phil Ballard, the author of Sams Teach Yourself Ajax in 10 Minutes, graduated in 1980 with an honors degree in electronics from the University of Leeds, England. Following an early career as a research scientist with a major multinational, he spent a few years in commercial and managerial roles within the high technology sector, later working full time as a software engineering consultant. Operating as “The Mouse Whisperer” (http://www.mousewhisperer.co.uk), Ballard has spent recent years involved solely in website and intranet design and development for an international portfolio of clients.

 

Michael Moncur is a freelance webmaster and author. He runs a network of websites, including the Web’s oldest site about famous quotations, online since 1994. He wroteSams Teach Yourself JavaScript in 24 Hours and has also written several bestselling books about networking, certification programs, and databases. He lives with his wife in Salt Lake City, Utah.

 

Excerpt. © Reprinted by permission. All rights reserved.

 

Introduction

Over the last decade or so, the World Wide Web has grown in scope from being a relatively simple information repository to becoming the first stop for many people when seeking entertainment, education, news, or business resources.

Websites themselves need no longer be limited to a number of static pages containing text and perhaps simple images; the tools now available allow the development of highly interactive and engaging pages involving animations, visual effects, context-sensitive content, embedded productivity tools, and much more.

The list of technologies available for producing such pages is broad. However, those based on Open Source licenses have become, and remain, highly popular due to their typically low (often zero) entry cost, and to the huge resource of user-contributed scripts, tutorials, tools, and other resources for these tools and applications available via the Internet and elsewhere.

In this book, we give a detailed account of how to program fluid, interactive websites using server- and client-side coding techniques and tools, as well as how to combine these to produce a slick, desktop-application-like user experience using Ajax.

The programming languages used in this book include the ubiquitous JavaScript (for client-side programming) and the immensely popular open-source PHP language (for server-side scripting, and available with the majority of web-hosting packages). The nuts and bolts of Ajax programming are described in detail, as well as the use of several advanced open-source frameworks that contain ready-written code for quickly building state-of-the-art interactive sites.


Note - The CD that accompanies this book provides all the tools required on your journey through learning to program in PHP, JavaScript, and Ajax.


What Is Ajax?

Ajax stands for Asynchronous JavaScript And XML. Although strictly speaking Ajax is not itself a technology, it mixes well-known programming techniques in an uncommon way to enable web developers to build Internet applications with much more appealing user interfaces than those to which we have become accustomed.

When using popular desktop applications, we expect the results of our work to be made available immediately, without fuss, and without our having to wait for the whole screen to be redrawn by the program. While using a spreadsheet such as Excel, for instance, we expect the changes we make in one cell to propagate immediately through the neighboring cells while we continue to type, scroll the page, or use the mouse.

Unfortunately, this sort of interaction has seldom been available to users of web-based applications. Much more common is the experience of entering data into form fields, clicking on a button or a hyperlink and then sitting back while the page slowly reloads to exhibit the results of the request. In addition, we often find that the majority of the reloaded page consists of elements that are identical to those of the previous page and that have therefore been reloaded unnecessarily; background images, logos, and menus are frequent offenders.

Ajax promises us a solution to this problem. By working as an extra layer between the user's browser and the web server, Ajax handles server communications in the background, submitting server requests and processing the returned data. The results may then be integrated seamlessly into the page being viewed, without that page needing to be refreshed or a new one being loaded.

In Ajax applications, such server requests are not necessarily synchronized with user actions such as clicking on buttons or links. A well-written Ajax application may already have asked of the server, and received, the data required by the user—perhaps before the user even knew she wanted it. This is the meaning of the asynchronous part of the Ajax acronym.

The parts of an Ajax application that happen "under the hood" of the user's browser, such as sending server queries and dealing with the returned data, are written in JavaScript, and XML is an increasingly popular means of coding and transferring formatted information used by Ajax to efficiently transfer data between server and client.

We'll look at all these techniques, and how they can be made to work together, as we work through the chapters.

Who This Book Is For

This volume is aimed primarily at web developers seeking to build better interfaces for the users of their web applications and programmers from desktop environments looking to transfer their applications to the Internet.

It also proves useful to web designers eager to learn how the latest techniques can offer new outlets for their creativity. Although the nature of PHP, JavaScript, and Ajax applications means that they require some programming, all the required technologies are explained from first principles within the book, so even those with little or no programming experience should be able to follow the lessons without a great deal of difficulty.

How To Use This Book

All the technologies—including a refresher of WWW basics—are explained from first principles, so that even non-programmers or those unfamiliar with these languages should be able to follow the development of the concepts with little problem.

The book is divided into parts, each dedicated to a particular technology or discussion topic. Within each part, the chapters each specialize in a given aspect or subtopic. It should therefore be easy to follow the instructional flow of the book by a quick look through the table of contents.

However, if you are already a competent programmer in one or more of the technologies used—in PHP for instance, or in JavaScript—then feel free to speed-read or skip the sections that you don't need.

To try out many of the examples you'll need access to a web server that supports PHP, and a means to upload files into your web space (probably FTP). Most web hosts include PHP in their hosting packages, or can do so on request at minimal or no cost.

Alternatively, the CD that accompanies this book contains everything required to set up a web serving environment on your own computer. This package is called XAMPP, and it contains everything you need to develop fully functional, interactive websites like those described in this book, ready to be deployed to a web-based server at a later date if you so choose. Look out for the boxes marked "On the CD" as you work through the book.

Conventions Used In This Book

This book contains special elements as described by the following:


Tip - These boxes highlight information that can make your programming more efficient and effective.



Note - These boxes provide additional information related to material you just read.



Caution - These boxes focus your attention on problems or side effects that can occur in specific situations.


Try It Yourself

The Try It Yourself section offers suggestions for creating your own scripts, experimenting further, or applying the techniques learned throughout the chapter. This will help you create practical applications based on what you've learned.


Note - Sections like this remind you about relevant information or tools available on the CD that accompanies the book.


A special monospace font is used on programming-related terms and language.

Setting Up Your Workspace

While you can write the code in this book using just a simple text editor, to run the examples you'll need a computer (with Windows, Mac, or Linux operating system) running a modern browser such as Internet Explorer or Firefox.


Tip - You can download Microsoft Windows Explorer from http://www.microsoft.com/ and the latest version of Firefox from http://www.mozilla.com/.


You will also need to load files on to a web server—if you already have a web host that supports PHP, you can use your web space there. Alternatively, the accompanying CD has everything you need to set up your own web server for private use, either on your own PC or another on your network.

What's on the CD

The accompanying CD contains everything you could need to get the best from this book. Included on the CD you'll find

  • XAMPP, a complete open source compilation you can use to easily install the Apache web server, PHP language, and MySQL database manager on your computer. Versions are provided for Linux, Mac, and Windows environments.

  • jEdit, a Java-based programmer's editor that's perfect for creating or modifying code. The CD includes files for Java, Mac, or Windows.

  • A selection of open source frameworks for developing sophisticated web applications. Programming examples based on some of these frameworks are presented towards the end of the book.

 

© Copyright Pearson Education. All rights reserved.

 

منابع کتاب کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition

بررسی های سرمقاله
درباره نویسنده
فیل بالارد، نویسنده کتاب Sams Teach Yourself Ajax in 10 Minutes، در سال 1980 با مدرک ممتاز در رشته الکترونیک از دانشگاه لیدز، انگلستان فارغ التحصیل شد. او پس از یک کار اولیه به عنوان یک دانشمند پژوهشی در یک شرکت چند ملیتی بزرگ، چند سالی را در نقش های تجاری و مدیریتی در بخش فناوری پیشرفته گذراند و بعداً به عنوان مشاور مهندسی نرم افزار تمام وقت کار کرد. بالارد که به عنوان «نجواکننده موش» (http://www.mousewhisperer.co.uk) فعالیت می‌کند، سال‌های اخیر را صرفاً در طراحی و توسعه وب‌سایت و اینترانت برای مجموعه‌ای از مشتریان بین‌المللی صرف کرده است.
 
Michael Moncur یک وب مستر و نویسنده مستقل است. او شبکه‌ای از وب‌سایت‌ها، از جمله قدیمی‌ترین سایت وب در مورد نقل قول‌های معروف را به‌صورت آنلاین از سال 1994 اداره می‌کند. او سامز به خودتان جاوا اسکریپت را در 24 ساعت آموزش دهید و همچنین چندین کتاب پرفروش درباره شبکه، برنامه‌های صدور گواهینامه و پایگاه‌های داده نوشته است. او با همسرش در سالت لیک سیتی، یوتا زندگی می کند.
 
گزیده. © تجدید چاپ با اجازه. تمامی حقوق محفوظ است.
معرفی
در حدود یک دهه گذشته، وب جهانی از یک مخزن اطلاعات نسبتاً ساده به اولین ایستگاه برای بسیاری از افراد در هنگام جستجوی سرگرمی، آموزش، اخبار یا منابع تجاری تبدیل شده است.
 
خود وب‌سایت‌ها دیگر نیازی به محدود شدن به تعدادی صفحه ثابت حاوی متن و شاید تصاویر ساده ندارند. ابزارهایی که اکنون در دسترس هستند امکان توسعه صفحات بسیار تعاملی و جذاب شامل انیمیشن ها، جلوه های بصری، محتوای حساس به زمینه، ابزارهای بهره وری تعبیه شده و موارد دیگر را می دهند.
 
لیست فناوری های موجود برای تولید چنین صفحاتی گسترده است. با این حال، موارد مبتنی بر مجوزهای منبع باز به دلیل هزینه ورودی معمولاً پایین (اغلب صفر) و به دلیل منابع عظیم اسکریپت ها، آموزش ها، ابزارها و سایر منابع برای این ابزارها و منابع کمکی توسط کاربر، بسیار محبوب شده اند و باقی می مانند. برنامه های کاربردی موجود از طریق اینترنت و جاهای دیگر.
 
در این کتاب، ما شرح مفصلی از نحوه برنامه‌نویسی وب‌سایت‌های تعاملی و روان با استفاده از تکنیک‌ها و ابزارهای کدنویسی سمت سرور و کلاینت، و همچنین نحوه ترکیب آن‌ها برای ایجاد یک تجربه کاربری نرم و نرم و شبیه به دسکتاپ با استفاده از Ajax ارائه می‌کنیم. .
 
زبان های برنامه نویسی مورد استفاده در این کتاب شامل جاوا اسکریپت فراگیر (برای برنامه نویسی سمت سرویس گیرنده) و زبان متن باز PHP بسیار محبوب (برای برنامه نویسی سمت سرور و در دسترس با اکثر بسته های میزبانی وب) است. پیچ و مهره های برنامه نویسی Ajax به تفصیل شرح داده شده است، همچنین استفاده از چندین چارچوب متن باز پیشرفته که حاوی کدهای آماده نوشته شده برای ساخت سریع سایت های تعاملی پیشرفته است.
 
توجه - سی دی همراه این کتاب تمام ابزارهای مورد نیاز در سفر شما از طریق یادگیری برنامه نویسی به زبان PHP، جاوا اسکریپت و آژاکس را ارائه می دهد.
 
آژاکس چیست؟
Ajax مخفف Asynchronous JavaScript And XML است. اگرچه به بیان دقیق، Ajax خود یک فناوری نیست، اما تکنیک های برنامه نویسی شناخته شده را به روشی غیر معمول ترکیب می کند تا توسعه دهندگان وب را قادر می سازد تا برنامه های اینترنتی با رابط های کاربری بسیار جذاب تر از آنچه که ما به آن عادت کرده ایم بسازند.
 
هنگام استفاده از برنامه های کاربردی محبوب دسکتاپ، انتظار داریم که نتایج کار ما بلافاصله، بدون سر و صدا و بدون نیاز به منتظر ماندن برای ترسیم مجدد کل صفحه توسط برنامه در دسترس قرار گیرد. برای مثال، در حین استفاده از صفحه‌گسترده‌ای مانند اکسل، انتظار داریم تغییراتی که در یک سلول ایجاد می‌کنیم بلافاصله در سلول‌های مجاور منتشر شود، در حالی که ما همچنان به تایپ کردن، پیمایش صفحه یا استفاده از ماوس ادامه می‌دهیم.
 
متأسفانه، این نوع تعامل به ندرت برای کاربران برنامه های کاربردی مبتنی بر وب در دسترس بوده است. بسیار رایج‌تر، تجربه وارد کردن داده‌ها در فیلدهای فرم، کلیک کردن بر روی یک دکمه یا یک لینک و سپس نشستن در حالی که صفحه به آرامی بارگذاری مجدد می‌شود تا نتایج درخواست را نشان دهد. علاوه بر این، اغلب متوجه می‌شویم که اکثر صفحه‌های بارگذاری‌شده از عناصری تشکیل شده‌اند که مشابه صفحه قبلی هستند و بنابراین به‌طور غیرضروری بارگذاری مجدد شده‌اند. تصاویر پس زمینه، آرم ها و منوها متخلفان مکرر هستند.
 
آژاکس به ما قول راه حلی برای این مشکل می دهد. با کار به عنوان یک لایه اضافی بین مرورگر کاربر و وب سرور، Ajax ارتباطات سرور را در پس زمینه مدیریت می کند، درخواست های سرور را ارسال می کند و داده های برگشتی را پردازش می کند. سپس نتایج ممکن است به طور یکپارچه در صفحه در حال مشاهده ادغام شوند، بدون اینکه آن صفحه نیاز به بازخوانی یا بارگذاری صفحه جدید داشته باشد.
 
در برنامه های Ajax، چنین درخواست های سرور لزوماً با اقدامات کاربر مانند کلیک کردن بر روی دکمه ها یا پیوندها هماهنگ نمی شوند. یک برنامه Ajax که به خوبی نوشته شده است ممکن است قبلاً از سرور خواسته باشد و داده های مورد نیاز کاربر را دریافت کرده باشد - شاید قبل از اینکه کاربر حتی بداند که آن را می خواهد. این معنای قسمت ناهمزمان مخفف آژاکس است.
 
بخش هایی از برنامه Ajax که "زیر سرپوش" مرورگر کاربر اتفاق می افتد، مانند سرور ارسال

نظرات کاربران درباره کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition

نظری در مورد این محصول توسط کاربران ارسال نگردیده است.
اولین نفری باشید که در مورد کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition نظر می دهد.

ارسال نظر درباره کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition

لطفا توجه داشته باشید که ایمیل شما منتشر نخواهد شد.

برچسب های مرتبط با کتاب Sams Teach Yourself Ajax, Javascript, and Php All in One Original Edition

خرید اینترنتی کتاب های زبان اصلی Ajax خرید اینترنتی کتاب های زبان اصلی کامپیوتر Programming Languages Ajax Computers book

بر اساس سلیقه شما...

  Product details Publisher ‏ : ‎  Apress; 2nd ...
8,640,000 ریال
  Product details Publisher ‏ : ‎  Packt Publi ...
2,040,000 ریال

codebazan

طراحی و اجرا: فروشگاه ساز سبدخرید