Listing 1. The body onload handler.
清单1.body内的onload处理程序。
For example, the tag has the onload and onunload attributes.
例如,标记拥有onload和onunload属性。
Thus, in Listing 4, the HTML element has an onload attribute.
因此,在清单4 中,HTML元素有一个onload属性。
The onload event is fired when the loading of a page is completed in the Web browser.
onload事件在Web浏览器完成加载某个页面时触发。
The onload attribute of the tag tells the browser to call the plot function when the page is loaded.
标记的onload属性告诉浏览器在载入页面时调用plot函数。
Next, an event similar to onload on the browser side is established, except this one is on the server side.
接下来,建立了类似浏览器端的onload的事件,只不过这个位于服务器端。
You can use the onload event handler to test that specific fields (on which the update panel depends) are populated.
您可以使用onload事件处理程序测试该特定字段(更新面板所依赖的字段)是否已填充。
This tag is loaded early in the loading process, but it won't be executed until the body onload function is called.
此标记在加载过程的早期加载,但它在body内的onload函数调用之后才会执行。
You activate the code by adding an onload method to the tag, which starts the code right after the page finishes loading.
可以通过向标记添加onload方法来激活代码,此方法会在页面加载之后立即启动代码。
By using the onload event, your DOM related behavior is only applied after a whole page, including all of its assets, is loaded.
使用onload事件的话,你的DOM相关代码只会在你整个页面,包括页面上的元素都加载完成后才执行。
This function is also invoked once the page is loaded in the browser because the onload attribute of the tag contains the validateText() call.
每次页面加载到浏览器中时也将调用此函数,因为标记的onload属性包含validateText() 调用。
The first block contains the event handler to initialize the application (onload) and the initialization of the database, as shown in Listing 3.
第一段包含初始化应用程序的事件处理函数(onload)和数据库初始化,如清单3所示。
Think of it as a user-specified onLoad attribute invocation.
可把它视为特定于用户的 onload属性调用。
onLoad gets called when the class is loaded from the database.
onLoad在类从数据库中加载时被调用。
In this case, this mechanism results in invoking the method onLoad.
在这个例子中,这个机制导致调用onLoad方法。
You can run this by putting it into the onLoad handler of your page's body element, like this
现在就可以通过将其放入页面body元素的onLoad处理程序来运行它,如下所示
The only downside is you'll need to run this method on your page's onLoad event, on the body tag.
惟一的缺点是您需要在页面的body 的onLoad事件上运行此方法。
When the page is first loaded (onLoad event), the request handler is registered with the Ajax engine.
第一次加载此页面时(onLoadevent),请求处理程序使用Ajax引擎进行注册。
The result is that the methods onLoad and onview are invoked automatically by the framework when the widget is placed onto the page.
结果是当把小部件放到页面上之后,框架将自动调用onLoad和onview方法。
The code snippet shown in Listing 1 for the onLoad method specifies that this method initializes and loads all dependencies that are required for the operation of the iWidget.
清单1 中显示了onLoad方法的代码片段,它指定该方法初始化和加载 iWidget操作所需的所有依赖项。
Considering the sample application, the implementation of the onLoad method ensures that the NotificationService is injected into the Person entity each time it is retrieved from the database.
对于该示例应用来说,onLoad方法的实现保证了每次从数据库中加载person实体后都将NotificationService注入其中。
Considering the sample application, the implementation of the onLoad method ensures that the NotificationService is injected into the Person entity each time it is retrieved from the database.
对于该示例应用来说,onLoad方法的实现保证了每次从数据库中加载person实体后都将NotificationService注入其中。
应用推荐