« Home « Chủ đề lập trình flash

Chủ đề : lập trình flash


Có 40+ tài liệu thuộc chủ đề "lập trình flash"

Beginning Ajax with ASP.NET- P10

tailieu.vn

Two popular types of XML processing exist — the Document Object Model (DOM) and the Simple API for XML (SAX). <?xml version=”1.0” encoding=”UTF-8” ?>. xsi:noNamespaceSchemaLocation=”MenuSchema.xsd”>. <cost>4.99</cost>. <xsl:stylesheet version=”1.0” xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”. xmlns=”http://www.w3.org/1999/xhtml”>. <xsl:template match=”/item”>. <xsl:apply-templates />. </xsl:template>. <xsl:template match=”item”>. <xsl:value-of select. <xsl:template match=”cost” />. </xsl:stylesheet>. The <xsl:template>. <xsl:template match=”item” />. The XSLT <xsl:value-of>. <xsl:value-of select=”item” />. The XSLT <xsl:for-each>. <xsl:for-each select=”item” />....

Beginning Ajax with ASP.NET- P11

tailieu.vn

What Is Built into ASP.NET. ASP.NET 2.0 contains an incredible amount of enhancements over ASP.NET 1.0 and 1.1. ASP.NET 2.0 contains a technology called Asynchronous Client Script Callbacks, or simply callbacks for a shortened name. Server controls included with ASP.NET V2.0 that support asynchronous callback functionality. Enabling your pages to support asynchronous behavior using callbacks in ASP.NET V2.0. Out-of-the-Box Controls....

Beginning Ajax with ASP.NET- P12

tailieu.vn

System.Threading.Thread.Sleep(2000);. The server-side methods in this example are extremely simple and would not normally have any problems or generate any exceptions, but in a normal application where complexity is much higher, this is a very real consideration. Handling Errors in the Asynchronous Process. In the same way that you defined a JavaScript method that is called on completion of the...

Beginning Ajax with ASP.NET- P13

tailieu.vn

JavaScript code, which collects and prepares the form data to post to the server for the callback to the server to be correctly interpreted and trapped by the ASP.NET runtime engine. This code should look familiar, and is the same method used to obtain a callback event reference in the initial page-centric examples detailed previously in the discussion of the...

Beginning Ajax with ASP.NET- P14

tailieu.vn

Notice the number of parameters that you’re passing into the ImageSwitcher.ChangeImage() method. The server-side method accepts only three, so how can this work? Remember that this is actually a JavaScript proxy object that is created by the Ajax.NET Pro library for you to use. callback is the name of the method that you want the response to be sent to....

Beginning Ajax with ASP.NET- P15

tailieu.vn

prototypeJs + “\”></script>”);. coreJs + “\”></script>”);. “<script type=\”text/javascript\”>AjaxPro.token. CurrentAjaxToken + “\”;</script>”);. The only thing you’ve done so far in the Web.Config is to wire up the Ajax Pro page handler. This is processed by the AjaxPro.AjaxSettingsSectionHandler , found in the /Configuration/. Fortunately, ASP.NET has framework calls that make it really easy to add custom sections to your Web.Config file. Listing...

Beginning Ajax with ASP.NET- P16

tailieu.vn

MochiKit is described as (taken from the web site itself) a suite of JavaScript libraries that “make JavaScript suck less.” The aim of the MochiKit framework is to make programming in JavaScript a lot easier and, like many of the other client-side-only libraries, provide a layer of abstraction between raw coding details that are specific to each browser. These allow...

Beginning Ajax with ASP.NET- P17

tailieu.vn

Switch back to the design view and double-click the btnLongRequest button. This action will switch you to the code window and wire up a button click event method.. Notice that you are not setting the page’s HiddenFormPostBack property. The ComfortASP.NET Manager control is responsible for notifying the application that this page is Ajax-enabled.. Now run the page to demonstrate its...

Beginning Ajax with ASP.NET- P18

tailieu.vn

MagicAjax is a framework that will make any .NET developer feel comfortable. MagicAjax also provides hooks for you to call code written in your code-behind that is not a part of the traditional ASP.NET Event Postback pattern.. Anthem.NET. URL: http://anthem-dot-net.sourceforge.net. Although the Anthem.NET framework features panels and a changed HTML architecture, you also have the option of using custom controls...

Beginning Ajax with ASP.NET- P19

tailieu.vn

If the error is present, then the error message is displayed to the user.. value=”Throw Unhandled Exception on Server” />. You can also choose between methods that simply change the HTML on your pages or work directly with returned data to the client. Throw in support for custom controls, and Anthem.NET may be the best of both worlds.. While Atlas...

Beginning Ajax with ASP.NET- P20

tailieu.vn

The code for the web service is:. In this example code, the web service accepts the custom business object and then returns the value.. There is nothing that would stop the web service from using the properties of the business object that is passed or the web service from returning a string as opposed to the custom business object.. Interrogation...

Beginning Ajax with ASP.NET- P21

tailieu.vn

The new class takes over attributes and behavior of the parent or base classes. In the following example, you will see a class created called Animal.Generic . Then the code creates a class title Animal.Cat that inherits from the Animal.Generic class:. <script language=”javascript”>. Type.registerNamespace(“Animal”);. Animal.Generic = function(Name, Address). Type.registerClass(“Animal.Generic”, null, Web.IDisposible);. Animal.Cat = function(Name, Address, Parents). Animal.Cat.initializeBase(this, [Name, Address]);. Type.registerClass(‘Animal.Cat’,...

Beginning Ajax with ASP.NET- P22

tailieu.vn

This will be the location where the GridView is placed when the data is returned to the web client. <atlas:TimerControl runat=”server” ID=”tc” Interval=”5000” OnTick=”tc_Tick”/>. <atlas:UpdatePanel ID=”up” runat=”server” Mode=Conditional>. <asp:Label ID=”lblInv” runat=”server” AssociatedControlID=”lblNum” />:. <asp:Label ID=”lblNum” runat=”server” />. <atlas:ControlEventTrigger ControlID=”tc” EventName=”Tick” />. Interval — The interval is the number of milliseconds before the OnTick event is called. in the example shows...

Beginning Ajax with ASP.NET- P23

tailieu.vn

<textBox targetElement=”textboxRequired”>. <requiredFieldValidator errorMessage=”You must enter some text.” />. <typeValidator type=”Number” errorMessage=”You must enter a valid number.” />. errorMessage=”You must enter a number between 10 and 20.” />. associatedControl=”textboxRequired” />. <validationGroup id=”formGroup” targetElement=”formGroup”>. <reference component=”textboxValue” />. <reference component=”textboxRequired” />. <label targetElement=”lblValid” visibilityMode=”Collapse”>. property=”visible” />. <label targetElement=”lblInValid”>. property=”visible” transform=”Invert” />. property=”text” transform=”onValidGroup” />. Figure 11-6 shows the output of the group...

Beginning Ajax with ASP.NET- P24

tailieu.vn

var profObj = Sys.Profile;. propArray = Sys.Profile.properties;. document.getElementById(“txtName”).value = Sys.Profile.properties.Name;. document.getElementById(“txtAddress”).value = Sys.Profile.properties.Address;. document.getElementById(“txtCity”).value = Sys.Profile.properties.City;. document.getElementById(“txtAddressState”).value = Sys.Profile.properties.AddressState;. document.getElementById(“txtZipCode”).value = Sys.Profile.properties.ZipCode;. Sys.Profile.load(). This done by setting the value of the text field to the profile property value.. It appears that the profile properties are “early bound.” This might get some IntelliSense support in a future version of Visual Studio...

Beginning Ajax with ASP.NET- P25

tailieu.vn

Clicking on the Submit Value button should yield an alert box similar to that shown in Figure 13-7.. Figure 13-7. You will set a breakpoint early in the script’s execution to see what is going on within the code.. Leave the Internet Explorer browser instance running, and click on the OK dialog box button if it is still displayed.. Switch...

Beginning Ajax with ASP.NET- P26

tailieu.vn

This section does not attempt to provide a detailed examination of the features and functionality of the Venkman debugger, because this is beyond the scope of this chapter. Detailed information and tutorials are available from the link shown in the preceding Note.. The Man in the Middle. However, at this point, one area remains largely unaddressed — that of the...

Beginning Ajax with ASP.NET- P27

tailieu.vn

current The current method returns a node set that contains the current node as its only member.. element-available The element-available method returns a true only if the expanded-name is the name of an instruction.. function-available The function-available method returns true if the function is available in the function library.. generate-id The generate-id method returns a string that identifies the node...

Beginning Ajax with ASP.NET- P28

tailieu.vn

Sys.BindingDirection enumeration, 302 transformations, 302. Ajax.NET Pro, 167–169 Atlas, 257–262 JavaScript, 36 Date class, 267. ASP.NET (server-side) breakpoints, 331–332 ease of, 329–330. Visual Studio .NET Atlas, 281–283. delete keyword (JavaScript DetailsView control (ASP.NET), 132 development history. Ajax, 1, 5–7 ASP.NET, 2–5. Anthem.NET server-side framework, 242–244 MagicAjax server-side framework, 226–231 directions for data binding, 302. distinct-values((item1, item2. document.getElementById() function (JavaScript), 21–22....

Beginning Ajax with ASP.NET- P29

tailieu.vn

preparing applications to use Ajax.NET Pro library preserve-space element (XSLT), 365 processing. Ajax, 6 ASP.NET, 5. references to Ajax.NET Pro library, 160–161 reflection, 176–177. return keyword (JavaScript), 19 return values of JavaScript functions, 34 reverse((item1, item2. ASP.NET, 4 defined, 2. seconds-from-duration(datetime duration) function (XSLT), 368 seconds-from-time(time) function. server-side ASP.NET debugging, 329–332 server-side frameworks. Anthem.NET. architectural distinctions, 203–207 ComfortASP.NET. server-side frameworks....