11 Ağustos 2007 Cumartesi

Practical.JavaScript.DOM.Scripting.and.Ajax.Projects


TITLE : Practical JavaScript, DOM Scripting and Ajax Projects (Paperback)
AUTHOR : by Frank Zammetti (Author) PUBLISHER : Apress publisher
ISBN : 1590598164
EDITION : 1st
PUB DATE : April 16, 2007 LANGUAGE : English
FORMAT : PDF
SIZE : 05 x 2.88 MB
----------------------------------------------

Practical JavaScript, DOM, and Ajax Projects is ideal for web developers already experienced in JavaScript who want to take their knowledge to the next level. It presents ten complete example projects for you to learn from and adapt for use in your own work. The book starts with a quick recap of the fundamentals of modern JavaScript development before moving right along to the applications. For each application, you are taken through the planning, design, and implementation stages. There's something for everyone here--a utility library, a validation framework, a GUI widget framework, a dynamic event calendar application, a drag-and-drop shopping cart, and more!
Over the course of the book, author Frank Zammetti covers JavaScript best practices, Ajax techniques, and some of the most popular JavaScript libraries, such as Prototype, Script.aculo.us, and the Yahoo YUI. One of the main premises of this book is to help you learn by example so you can then apply your knowledge to your own projects. This book will save you countless hours of development time and help further your JavaScript knowledge!

download pdf


ajax in practice


Ajax in Practice provides example-rich coverage of Ajax packed with ready-to-use code and practical recipes for common and not-so-common tasks. Ajax developers now face the move from Ajax-as-theory to Ajax-in-practice. Ajax in Practice guides web developers through the transition from learning about Ajax to successfully applying Ajax-driven techniques in real-world development scenarios. Ajax gives web developers the potential to create rich user-centered internet applications. But Ajax also adds a new level of complexity and sophistication to those applications. Ajax in Practice tackles Ajax head-on, providing countless hands-on techniques and tons of reusable code to address the specific issues developers face when building Ajax-driven solutions. After a brief overview of Ajax, this book takes the reader through dozens of working examples, all presented in an easy-to-use cookbook format. Readers will learn how to implement drag-and-drop interfaces and will discover how to create effective nagigation strategies for their applications. Unlike a traditional cookbook, though, Ajax in Practice provides a thorough discussion of each technique presented and shows how the individual components can be connected to create powerful solutions. A fun "mash-up" chapter concludes the book. Throughout Ajax in Practice, the examples chosen are interesting, entertaining, and practical.


beginning ajax with asp.net


Author(s): Wallace B. McClure, Scott Cate, Paul Glavich, Craig Shoemaker Publisher: Wrox Year: Sep 2006 ISBN: 047178544X Language: English Pages: 428 File type: PDF Size (for download): 6.8 MB

Ajax is a set of technologies that will revolutionize the way that web-based applications are designed. It revolutionizes the way that applications are used, provides users a responsive application, and provides developers with the alternatives for building their applications. We believe that this book will meet your needs regarding programming Ajax on the ASP.NET platform.
People interested in this book will be developers who are working in the ASP.NET environment and are looking to create a more responsive and modern application using technologies that are very similar to the desktop methodologies. Developers who are looking to improve the user experience of their existing applications, develop new applications, develop internal line-of-business applications, and those who want to bulk up with the latest technology that developers all over the world are talking about will find what they are looking for here.
This book is for programmers who use ASP.NET and are just starting to use Ajax technologies. This book will assist developers working on ASP.NET-based applications who want to improve their applications and skills, by providing a background in Ajax for them before delving into how to apply Ajax to their applications.
TABLE OF CONTENT: Chapter 1: Introduction to Ajax on ASP.NET Chapter
2: Introduction to DHTML Chapter
3: JavaScript and the Document Object Model Chapter
4: The XMLHttpRequest Object Chapter
5: Data Communication: XML, XSLT, and JSON Chapter
6: What Is Built into ASP.NET Chapter
7: Ajax.NET Professional Library Chapter
8: Anatomy of Ajax.NET Pro Library Chapter
9: Other Ajax Frameworks for .NET Chapter
10: Atlas Client Script Chapter
11: Atlas Controls Chapter
12: Atlas Integration with ASP.NET Services Chapter
13: Debugging
password: ganelon


The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP (Paperback)


With over 3 million users worldwide, Adobe's Dreamweaver is the most popular web development software in the world, and it just took another step forward with CS3, the new version released in 2007. Having come a long way from it's humble beginnings as a as a simple web design tool, CS3 allows you to rapidly put together standards compliant web sites and dynamic web sites with server -side languages and Ajax, and much more.

What youll learn:
* How to set up your ideal development environment, using Mac OSX/Windows, Apache (and IIS on Windows,) Apache, MySQL, and phpMyAdmin
* Creating standards compliant web sites using CS3's XHTML and CSS features
* Creating dynamic web applications using CS3's PHP and Spry Ajax server behaviors
* Building several real world web site functions, such as form validation, random quote generator, search function, user management/login pages, dynamic Ajax gallery, and much more.
* Creating an interface design in Fireworks CS3 and importing it into Dreamweaver CS3.
* How use Dreamweaver CS3's XML functionality, to consume RSS feeds, and create Spry data sets
* Using includes, templates and master detail pages.
* How to publish your site after you've created it


9 Ağustos 2007 Perşembe

Split string into array

/* ----------------------------------------------------------------
Split: Returns a zero-based, one-dimensional array containing
a specified number of substrings

Parameters:
Expression = String expression containing substrings and
delimiters. If expression is a zero-length
string(""), Split returns an empty array,
that is, an array with no elements and no
data.
Delimiter = String character used to identify substring
limits. If delimiter is a zero-length
string (""), a single-element array
containing the entire expression string
is returned.

Returns: String
---------------------------------------------------------------- */
function Split(Expression, Delimiter)
{
var temp = Expression;
var a, b = 0;
var array = new Array();

if (Delimiter.length == 0)
{
array[0] = Expression;
return (array);
}

if (Expression.length == '')
{
array[0] = Expression;
return (array);
}

Delimiter = Delimiter.charAt(0);

for (var i = 0; i < Expression.length; i++)
{
a = temp.indexOf(Delimiter);
if (a == -1)
{
array[i] = temp;
break;
}
else
{
b = (b + a) + 1;
var temp2 = temp.substring(0, a);
array[i] = temp2;
temp = Expression.substr(b, Expression.length - temp2.length);
}
}

return (array);
}


Show/Hide All Elements by Tag Name

/*
Show/Hide All Elements by Tag Name
--
By: Matt Atkins

Allows you to hide all elements on an HTML page by their tag
name. Extremely handy in getting around the "Windowless Elements"
problem in IE, which is a bug that puts certain elements, most
commonly select boxes, on top of any other element, no matter
what. As you can imagine, this causes real problems with DHTML
drop-down menus and such like. This is the simplest and quickest
fix I've come up with, I simply set this function to run
alongside the drop-down and all of the select tags vanish before
a menu drops, then I run the show function when the menu
retracts.
*/

function showAllByTag(tagName,dispType) {
var elements = document.getElementsByTagName(tagName);
var i = 0;
if (dispType == "") {
dispType = inline;
}
while (i < elements.length) {
elements[i].style.display = dispType;
i++;
}
}
function hideAllByTag(tagName) {
var elements = document.getElementsByTagName(tagName);
var i = 0;
while (i < elements.length) {
elements[i].style.display = "none";
i++;
}
}


ADO With JavaScript

/* -------------------------------------------------
ADO With JavaScript
--
Description: I have not found any sample that shows
database access with javaScript. Well, I created one.
It is very simple since Javascript has the activeXObject
that allow us to call an external object in the same
way that vbscript uses CreateObject.

By: Marcio Coelho
------------------------------------------------- */

var conn = new ActiveXObject("ADODB.Connection") ;
var connectionstring = "Provider=sqloledb; Data Source=itdev; Initial Catalog=pubs; User ID=sa;Password=yourpassword"

conn.Open(connectionstring)

var rs = new ActiveXObject("ADODB.Recordset")
rs.Open("SELECT gif, description, page, location FROM menu1", conn)

// Be aware that I am selecting from this table, but you need to pick your own table
while(!rs.eof)
{
alert(rs(0));
rs.movenext
}

rs.close
conn.close


Check if the specified Expression is a valid email address

/* ----------------------------------------------------------------
IsEmail: Returns a Boolean if the specified Expression is a
valid e-mail address. If Expression is null, false
is returned.

Parameters:
Expression = e-mail to validate.

Returns: Boolean
---------------------------------------------------------------- */
function IsEmail(Expression)
{
if (Expression == null)
return (false);

var supported = 0;
if (window.RegExp)
{
var tempStr = "a";
var tempReg = new RegExp(tempStr);
if (tempReg.test(tempStr)) supported = 1;
}
if (!supported)
return (Expression.indexOf(".") > 2) && (Expression.indexOf("@") > 0);
var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
return (!r1.test(Expression) && r2.test(Expression));
}